lkml.org 
[lkml]   [1998]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] my latest oom stuff
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/

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