[uClinux-dev] Re: kswapd consumes 63% of cpu resources with ramfs
johan.transez at traficon.com
Thu Mar 20 05:02:02 EST 2003
>Date: Thu, 20 Mar 2003 08:25:55 +1000
>From: David McCullough <davidm at snapgear.com>
>To: uclinux-dev at uclinux.org
>Cc: jean.pihet at mind.be, Peter Vandenabeele <peter.vandenabeele at mind.be>
>Subject: Re: [uClinux-dev] kswapd consumes 63% of cpu resources with ramfs
>Reply-To: uclinux-dev at uclinux.org
>Wow, 64Mb ;-) It doesn't look like a free memory problem even though
>the only reason I can see that kswapd would be active is low memory
>scenarios. Do you have any short lived apps that use a lot of memory
>and then free it ?
Whe don't have short lived apps.
Our application is capturing compressed video and writes the files to the
The files are overwritten in an circular way. The oldest files get
overwritten by the app.
>I have seen kswapd disabled, but I believe it performs a useful
>function freeing unused buffers etc.
>If you want to try disabling it, just add a return(0) before the
>"Kswapd main loop" comment in linux-2.4.x/mmnommu/vmscan.c.
>Buffers etc will still get released when kmalloc runs out of memory so
>it may fix your problem completely, even if the systems appears to be
>eating all of memory most of the time, it may be worth a try,
I have done this, I will test it and see what it does.
Thanks for your help!!
More information about the uClinux-dev