lkml.org 
[lkml]   [2003]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: How do I make this thing stop laging? Reboot? Sounds like Windows!
From
Date
On Thu, 2003-06-19 at 06:00, Helge Hafting wrote:
[...]
> Good point.
> The question is still what to pull in. Stuff in swap
> is one option. It has been used before, and might
> be needed again.
>
> Contents of memory mapped files (executables and others) are another.
> We can't know what we will need next, but at least the already opened
> files ought to be as likely as swap.
>
> Pulling other files into cache is a third option. Going for open
> files (readahead) or recently used ones might be smart.
>

How about a hint from userspace? A window manager could say "this is my
working set", and you could try to pull files/maps/swap in for that
working set first. The window manager could keep an LRU based on
windows getting focus, or something like that, to keep the working set
up to date. The hint is, of course, open to abuse, so care would have
to be taken, but my window manager could get most of this correct just
based on window input. Things like xmms would be harder, since I rarely
actually interact with it, but it's also less likely to be swapped out,
because it's always running.

Or, you could start swapping in based on interactive bonus in the
scheduler, but that requires sharing the information with the MM and
trusting the bonus' are correct.

Daniel
--
Daniel Gryniewicz <dang@fprintf.net>

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

\
 
 \ /
  Last update: 2005-03-22 13:36    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site