Re: kernel 2.6.22: what IS the VM doing?

2007-09-14 Thread Sami Farin
On Wed, Sep 05, 2007 at 18:48:51 -0400, Rik van Riel wrote: > Sami Farin wrote: >> On Wed, Sep 05, 2007 at 12:24:26 -0400, Rik van Riel wrote: >> ... *shrug* >>> The attached patch should make sure kswapd does not free an >>> excessive number of pages in zone_normal just because the >>> pages

Re: kernel 2.6.22: what IS the VM doing?

2007-09-14 Thread Sami Farin
On Wed, Sep 05, 2007 at 18:48:51 -0400, Rik van Riel wrote: Sami Farin wrote: On Wed, Sep 05, 2007 at 12:24:26 -0400, Rik van Riel wrote: ... *shrug* The attached patch should make sure kswapd does not free an excessive number of pages in zone_normal just because the pages in zone_highmem

Re: kernel 2.6.22: what IS the VM doing?

2007-09-05 Thread Rik van Riel
Sami Farin wrote: On Wed, Sep 05, 2007 at 12:24:26 -0400, Rik van Riel wrote: ... *shrug* The attached patch should make sure kswapd does not free an excessive number of pages in zone_normal just because the pages in zone_highmem are difficult to free. It does give kswapd a large margin to

Re: kernel 2.6.22: what IS the VM doing?

2007-09-05 Thread Sami Farin
On Wed, Sep 05, 2007 at 12:24:26 -0400, Rik van Riel wrote: ... >> *shrug* > > The attached patch should make sure kswapd does not free an > excessive number of pages in zone_normal just because the > pages in zone_highmem are difficult to free. > > It does give kswapd a large margin to continue

Re: kernel 2.6.22: what IS the VM doing?

2007-09-05 Thread Rik van Riel
Sami Farin wrote: On Tue, Sep 04, 2007 at 21:37:35 -0400, Rik van Riel wrote: Is the system trying to evict pages like crazy when your system becomes unusable? I think so.. If so, I wonder if kswapd is simply doing the wrong thing and trying to evict data from all zones, simply because the

Re: kernel 2.6.22: what IS the VM doing?

2007-09-05 Thread Sami Farin
On Tue, Sep 04, 2007 at 21:37:35 -0400, Rik van Riel wrote: > Sami Farin wrote: >> Using SMP kernel 2.6.22.6pre-CFS-v20.5 on Pentium D (IA-32). >> I think this bug (or whatever you want to call it) got triggered >> when you first allocate several megabytes of memory in a kernel module >> and then

Re: kernel 2.6.22: what IS the VM doing?

2007-09-05 Thread Sami Farin
On Tue, Sep 04, 2007 at 21:37:35 -0400, Rik van Riel wrote: Sami Farin wrote: Using SMP kernel 2.6.22.6pre-CFS-v20.5 on Pentium D (IA-32). I think this bug (or whatever you want to call it) got triggered when you first allocate several megabytes of memory in a kernel module and then free

Re: kernel 2.6.22: what IS the VM doing?

2007-09-05 Thread Rik van Riel
Sami Farin wrote: On Tue, Sep 04, 2007 at 21:37:35 -0400, Rik van Riel wrote: Is the system trying to evict pages like crazy when your system becomes unusable? I think so.. If so, I wonder if kswapd is simply doing the wrong thing and trying to evict data from all zones, simply because the

Re: kernel 2.6.22: what IS the VM doing?

2007-09-05 Thread Sami Farin
On Wed, Sep 05, 2007 at 12:24:26 -0400, Rik van Riel wrote: ... *shrug* The attached patch should make sure kswapd does not free an excessive number of pages in zone_normal just because the pages in zone_highmem are difficult to free. It does give kswapd a large margin to continue putting

Re: kernel 2.6.22: what IS the VM doing?

2007-09-05 Thread Rik van Riel
Sami Farin wrote: On Wed, Sep 05, 2007 at 12:24:26 -0400, Rik van Riel wrote: ... *shrug* The attached patch should make sure kswapd does not free an excessive number of pages in zone_normal just because the pages in zone_highmem are difficult to free. It does give kswapd a large margin to

Re: kernel 2.6.22: what IS the VM doing?

2007-09-04 Thread Rik van Riel
Sami Farin wrote: Using SMP kernel 2.6.22.6pre-CFS-v20.5 on Pentium D (IA-32). I think this bug (or whatever you want to call it) got triggered when you first allocate several megabytes of memory in a kernel module and then free them, and then run e.g. X and when memory gets tight, you end up

Re: kernel 2.6.22: what IS the VM doing?

2007-09-04 Thread Rik van Riel
Sami Farin wrote: Using SMP kernel 2.6.22.6pre-CFS-v20.5 on Pentium D (IA-32). I think this bug (or whatever you want to call it) got triggered when you first allocate several megabytes of memory in a kernel module and then free them, and then run e.g. X and when memory gets tight, you end up

kernel 2.6.22: what IS the VM doing?

2007-08-30 Thread Sami Farin
Using SMP kernel 2.6.22.6pre-CFS-v20.5 on Pentium D (IA-32). I think this bug (or whatever you want to call it) got triggered when you first allocate several megabytes of memory in a kernel module and then free them, and then run e.g. X and when memory gets tight, you end up with this situation...

kernel 2.6.22: what IS the VM doing?

2007-08-30 Thread Sami Farin
Using SMP kernel 2.6.22.6pre-CFS-v20.5 on Pentium D (IA-32). I think this bug (or whatever you want to call it) got triggered when you first allocate several megabytes of memory in a kernel module and then free them, and then run e.g. X and when memory gets tight, you end up with this situation...