linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Memory-related hangup (2.4.2-ac3)
@ 2001-03-03  0:31 Byron Stanoszek
  0 siblings, 0 replies; only message in thread
From: Byron Stanoszek @ 2001-03-03  0:31 UTC (permalink / raw)
  To: linux-kernel

Is there a reason why the kernel appears to hang temporarily for 3-5 minutes
under this circumstance:

gandalf:~> free
             total       used       free     shared    buffers     cached
Mem:        126700     125024       1676          0        964      61640
-/+ buffers/cache:      62420      64280
Swap:        97648      97648          0


The system seems to favor the cache, but leaves no room for processes to use
the remaining 64MB of ram. This happened while running netscape after viewing
a couple of pages with a lot of images on them.

Older kernels would happily allow processes to eat up cache space when memory
was low. In fact, I used to be able to use 32MB of swap without any problems
(even when netscape had more memory allocated to it than this now).

Lately with 2.4 kernels I had to add another 64MB swap file to the existing 32,
and the performance seems no different than without it, when compared to the
old way of letting netscape just use all 125MB if it wants to (and sacrifice
cached files, which aren't important in this case).

Is there a setting I can control to force the kernel to give up cache when
memory is low without hanging the machine? I personally don't think 50% process
memory + 50% cache is an ideal solution--especially when running stuff that
really wants >= 150MB (RAM + swap).

Actually I'd prefer having cache use half the remaining RAM not taken up by
processes, instead of half the total RAM on the system. Any suggestions?

Regards,
 Byron

--
Byron Stanoszek                         Ph: (330) 644-3059
Systems Programmer                      Fax: (330) 644-8110
Commercial Timesharing Inc.             Email: byron@comtime.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-03-03  0:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-03  0:31 Memory-related hangup (2.4.2-ac3) Byron Stanoszek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).