All of lore.kernel.org
 help / color / mirror / Atom feed
* ext3 leaking buffer_heads
@ 2009-03-23 19:56 Don Porter
  2009-03-23 22:00 ` Eric Sandeen
  0 siblings, 1 reply; 5+ messages in thread
From: Don Porter @ 2009-03-23 19:56 UTC (permalink / raw)
  To: linux-ext4

Hi,

It appears that the ext3 journal code has a slow leak of buffer_head 
structs.  Try this simple script:

perl -e 'while(1){ `sync`; }'

and monitor the count of allocated buffer_head structs in 
/proc/slabinfo, and it seems to increase without bound.  Even after this 
script is killed and the machine is left idle for several minutes, the 
count of buffer heads doesn't substantially decrease.

Looking around at various machines I have access to, the count of 
allocated buffer_heads roughly correlates with uptime when using ext3.  
This is a slow leak - one would likely have to run this script for a day 
or more to drain enough lowmem to cause problems.

Other info:  I have only tried this on x86 machines, but I have tried 
both 2.6.22.6 and 2.6.28.8, and both have the problem.  I am running 
Ubuntu 7.10 on top of these kernels, but the kernels were built directly 
from kernel.org tarballs.

Any advice or help with this issue is greatly appreciated. 

Thanks,
Don

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-25  7:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23 19:56 ext3 leaking buffer_heads Don Porter
2009-03-23 22:00 ` Eric Sandeen
2009-03-24 22:43   ` Don Porter
2009-03-25  0:46     ` Theodore Tso
2009-03-25  7:04       ` Don Porter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.