[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New patch (was Re: [PATCH] swapin readahead v3 + kswapd fixes)
On Tue, 22 Dec 1998, Andrea Arcangeli wrote:
> On Tue, 22 Dec 1998, Rik van Riel wrote:
>
> >- kswapd should make sure that there is enough on the cache
> > (we should keep track of how many 1-count cache pages there
> > are in the system)
> >- realtime tasks shouldn't go around allocating huge amounts
> > of memory -- this totally ruins the realtime aspect anyway
>
> What about if there is netscape iconized and the realtime task want to
> allocate some memory to mlock it but has to swapout netscape to do that?
When the realtime task is still setting up it's resources, it's
not yet busy with it's real task and shouldn't be considered RT
yet -- but I agree with your general idea that tasks should be
able to swap_out() too in emergencies...
> >> (and this will avoid also tasks other than kswapd to
> >> sleep waiting for slowww SYNC IO).
> >
> >Some tasks (really big memory hogs) are better left sleeping
> >for I/O because they otherwise completely overpower the rest
> >of the system. But that's a slightly different story :)
>
> The point here is that `free` get blocked on I/O because the
> malicious process is trashing VM.
No, the idea is that the big task is swap_out()ing itself
when it exceeds it's RSS limit _and_ the systemwide RSS
'thrash' limit is exceeded.
With the current (independant swap cache freeing) scheme,
RSS limits are fairly unobtrusive and only give noticable
overhead when the rest of the system would have been
bothered anyway.
cheers,
Rik -- the flu hits, the flu hits, the flu hits -- MORE
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org