Re: [patch] my latest oom stuff

Benjamin C.R. LaHaise (blah@kvack.org)
Mon, 26 Oct 1998 13:17:38 -0500 (EST)


On Mon, 26 Oct 1998, Rik van Riel wrote:

> On Mon, 26 Oct 1998, Andrea Arcangeli wrote:
> > On Mon, 26 Oct 1998, Andrea Arcangeli wrote:
> >
> > >>Could you try the above simple approach?
> > >Sure.
> > Seems to works fine here.
>
> > + * Do the pageout for at most one jiffy.
> > */
> > + start =jiffies;
> > do {
> > do_try_to_free_page(0);
>
> > + if (free_memory_available() == 2 && buffer_under_max()
> > + && pgcache_under_max())
> > break;
> > + } while (jiffies == start);
>
> > Note also the fix to kswapd that now stop only if the buffer and page
> > cache are under max.
>
> I like this patch; I see now where Linus and you are
> going. I guess I was just to frustrated with my switching
> my keyboard to dvorak last night to properly think :)

Ummmm, this is Bad. Remember, some CPUs out there are pretty slow and
won't be able to get much done if an arbitrary time limit is imposed
(68020s and 386SXs are good examples).

-ben

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/