Re: Very bad behavior of kswapd

2001-04-18 Thread David S. Miller
Rik van Riel writes: > > Watch top: when this program needs the memory that kswapd keep > > in cache they go both at 100% cpu (on SMP) but still the size of > > the program only grows at about 100KB/s, why is kswapd releasing > > it so slowly and taking so much CPU ? > > Because kswapd sti

Re: Very bad behavior of kswapd

2001-04-18 Thread Rik van Riel
On Wed, 18 Apr 2001, Laurent Chavet wrote: > Try this (my example I've 2GB of ram) > > turn all your swap off > > dd about 15% of the size of your RAM: > dd if=/dev/zero of=/local/test count=300 bs=100 > > Run this program with SIZE about 95% of your RAM: > > #include > #include > #include

Very bad behavior of kswapd

2001-04-18 Thread Laurent Chavet
Try this (my example I've 2GB of ram) turn all your swap off dd about 15% of the size of your RAM: dd if=/dev/zero of=/local/test count=300 bs=100 Run this program with SIZE about 95% of your RAM: #include #include #include #define SIZE (1900 * 1024 * 1024) int main() { int i; char