Re: Slow, persistent memory leak in 2.6.20

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Fred Tyler <fredty8@...>
Cc: <linux-kernel@...>
Date: Sunday, August 26, 2007 - 12:58 pm

On Aug 26 2007 12:49, Fred Tyler wrote:

Note that not all kernels have the 'drop_caches' control file.
So there is not much you can do there.


Well if it helps, you can accelerate the 'problem', by issuing, for example:

(1)
	dd_rescue /dev/sda /dev/null -m $[4*1048576*1024]

for reading 4 GB from disk straight and populating 'buffers'.

(2)
	cat /some/big/big/big/file >/dev/null

for reading X GB from disk and populating 'cache'.

and then you'll see.  Also note that a kernel leak will eventually lead 
to very low buffers/cached values (the ones to the far right) even when 
large amounts of data are read (using either dd_rescue/cat as mentioned 
above), because, of course, the leak clogs up memory.

             total       used       free     shared    buffers     cached
Mem:        775792     493724     282068          0          8     308416
-/+ buffers/cache:     185300     590492
Swap:       795136         60     795076




If you see an Out Of Memory notice in dmesg, you'll know there is a 
leak even if everything was shut down.


	Jan
-- 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Slow, persistent memory leak in 2.6.20, Fred Tyler, (Sun Aug 26, 10:39 am)
Re: Slow, persistent memory leak in 2.6.20, Jesper Juhl, (Sun Aug 26, 6:16 pm)
Re: Slow, persistent memory leak in 2.6.20, Fred Tyler, (Sun Aug 26, 11:51 am)
Re: Slow, persistent memory leak in 2.6.20, Jan Engelhardt, (Sun Aug 26, 11:52 am)
Re: Slow, persistent memory leak in 2.6.20, Fred Tyler, (Sun Aug 26, 12:16 pm)
Re: Slow, persistent memory leak in 2.6.20, Denys Vlasenko, (Sun Aug 26, 1:03 pm)
Re: Slow, persistent memory leak in 2.6.20, Fred Tyler, (Sun Aug 26, 1:41 pm)
Re: Slow, persistent memory leak in 2.6.20, Jan Engelhardt, (Sun Aug 26, 1:44 pm)
Re: Slow, persistent memory leak in 2.6.20, Jan Engelhardt, (Sun Aug 26, 12:30 pm)
Re: Slow, persistent memory leak in 2.6.20, Fred Tyler, (Sun Aug 26, 12:58 pm)
Re: Slow, persistent memory leak in 2.6.20, Jan Engelhardt, (Sun Aug 26, 1:42 pm)
Re: Slow, persistent memory leak in 2.6.20, Fred Tyler, (Sun Aug 26, 12:49 pm)
Re: Slow, persistent memory leak in 2.6.20, Jan Engelhardt, (Sun Aug 26, 12:58 pm)
Re: Slow, persistent memory leak in 2.6.20, Fred Tyler, (Sun Aug 26, 11:40 am)
Re: Slow, persistent memory leak in 2.6.20, Alexey Dobriyan, (Sun Aug 26, 11:32 am)