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/