Re: [PATCH 00/34] mm: Page Replacement Policy Framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 23, 2006 at 10:15:47AM -0800, Linus Torvalds wrote:
> 
> 
> On Thu, 23 Mar 2006, Marcelo Tosatti wrote:
> > 
> > IMHO the page replacement framework intent is wider than fixing the     
> > currently known performance problems.
> > 
> > It allows easier implementation of new algorithms, which are being
> > invented/adapted over time as necessity appears.
> 
> Yes and no.
> 
> It smells wonderful for a pluggable page replacement standpoint, but 
> here's a couple of observations/questions:
>  a) the current one actually seems to have beaten the on-comers (except 
>     for loads that were actually made up to try to defeat LRU)
>  b) is page replacement actually a huge issue?
> 
> Now, the reason I ask about (b) is that these days, you buy a Mac Mini, 
> and it comes with half a gig of RAM, and some apple users seem to worry 
> about the fact that the UMA graphics removes 50MB or something of that is 
> a problem.

Data point:

I run into swap all the time on my 1gig machine.  There are a few reasons for
this.

* Applications are incredibly bloated.  Just running a bunch of gnome apps
  sucks down 1000 megs almost instantly.  However, these apps don't seem to use
  most of the space they bloat into, so after a bit of fighting for VM the
  chaff gets forced out and they run fine.

* Apps are also incredibly buggy.  Eg. Firefox seems to leak up to 50 megs per
  second in some workloads, so I run it for a day or two and my machine tends
  to go heavily into swap.

* VM system prefers disk cache over applications.  Eg. updated runs at 
  3am and indexes all my files.  Since the applications were idle, the 
  VM decides to page out all my executables and fill my ram with page 
  cache which is only used once.  In the morning, my machine spends a few
  minutes paging everything back in.

* Similarly, I have a 2gig machine available, and it's also showing about 512MB
  swapped out and also 500MB free.

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux