[lkml]   [2001]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: new OOM heuristic failure (was: Re: VM: qsbench)
> Ok. I re-checked the code and found out this approach cannot stand. 

> the list scan _is_ already exited early when priority is low:

Sorry for followup on my own mail, but there is another thing that
comes to my mind:

swap_out is currently in no way priority-dependant. But it could be
(the parameter is there). How about swapping more pages in tighter
memory situation? The basic idea is that if there is a rising need for
mem it cannot be wrong to do a bit more than under normal
circumstances. One could achieve this simply by:

int counter, nr_pages = SWAP_CLUSTER_MAX;


int counter, nr_pages = SWAP_CLUSTER_MAX * DEF_PRIORITY /

in swap_out.
The idea behind is to reduce the overhead in finding out if swapping
is needed by simply swapping more everytime we already gone "the long
way to knowing".


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:0.039 / U:0.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site