public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Gryniewicz <dang@fprintf.net>
To: linux-kernel@vger.kernel.org
Subject: Re: How do I make this thing stop laging?  Reboot?  Sounds like  Windows!
Date: 19 Jun 2003 11:54:40 -0400	[thread overview]
Message-ID: <1056038080.2050.6.camel@athena.fprintf.net> (raw)
In-Reply-To: <3EF189D2.6080207@aitel.hist.no>

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>


  parent reply	other threads:[~2003-06-19 15:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-18  0:30 How do I make this thing stop laging? Reboot? Sounds like Windows! rmoser
2003-06-18  8:22 ` Helge Hafting
2003-06-18  9:22   ` Karl Vogel
2003-06-18  9:44     ` Oliver Neukum
2003-06-18 10:23     ` Anders Karlsson
2003-06-18 15:08       ` Gianni Tedesco
2003-06-18 16:43     ` Joe
2003-06-18  9:30   ` Yaroslav Rastrigin
2003-06-18 11:02     ` Helge Hafting
2003-06-18 12:17       ` Mike Galbraith
2003-06-19  8:04   ` H. Peter Anvin
2003-06-19 10:00     ` Helge Hafting
2003-06-19 10:02       ` Nick Piggin
2003-06-19 15:54       ` Daniel Gryniewicz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-06-18  9:56 Karl Vogel
2003-06-18 16:53 ` Oliver Neukum
2003-06-18 10:43 Karl Vogel
2003-06-18 10:49 Karl Vogel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1056038080.2050.6.camel@athena.fprintf.net \
    --to=dang@fprintf.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox