update re: fork() failures in 2.1.101
A message that is not in the archive (sent off-list or not yet received): [email protected]
[Paul get's "cannot fork" errors after 60 or more hours of
uptime. This suggests fragmentation problems.]
Quoted 7 lines · Paul Kimoto
Quoted 3 lines
Hmm, the 'cannot fork' issue only starting after some days of uptime... This suggests fragmentation. Is your box very heavily loaded, or just lightly (VM-wise)?
Light, I think; I have 48MB of RAM and usually end up with 8--16MB in swap. In normal operation I don't have to wait much for paging except for larger programs (netscape, xemacs, or big compilations).
Ahh, I think I see it now. The fragmentation on your system persists because of the swap cache. The swap cache 'caches' swap pages and kinda makes sure they are reloaded to the same physical address.
Stephen, Ben: should we disable the swap cache when fragmentation is high?
Rik.
+-------------------------------------------------------------------+ | Linux memory management tour guide. [email protected] | | Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ | +-------------------------------------------------------------------+
Hi,
Quoted 2 lines · Rik van Riel
[Paul get's "cannot fork" errors after 60 or more hours of
uptime. This suggests fragmentation problems.]
Kernel version?
Quoted 3 lines
Ahh, I think I see it now. The fragmentation on your system persists because of the swap cache. The swap cache 'caches' swap pages and kinda makes sure they are reloaded to the same physical address.
No. As it stands right now, the "caching" component of the swap cache is an *on disk* cache of resident pages. Once the pages are swapped out they are paged back in anywhere appropriate. That part of the fragmentation does not persist.
The real problem is not swapper, I suspect, but the various consumers of slab cache (especially dcache). The slab allocator has some really nasty properties; just one single in-use object will pin an entire slab (up to 32k) into memory. If the slabs become small, then it will be 4k pages which get so pinned, and at that point we cannot allocate any stack pages. There are a number of ways we may tackle this in 2.1, but disabling the swap cache won't help at all.
--Stephen