Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Possible command to boost to laptop performance
- Date: Thu, 04 Nov 2010 11:21:37 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Possible command to boost to laptop performance
- References: <4CCF948D.6020707@example.com> <AANLkTi=oqGNRxz20OwaJ=yx10_G0txFE7ThSMZDw5HJX@example.com> <4CD15049.8080503@example.com> <AANLkTimUVaxD8XZFz8dLKx4hdmsfgujTRvdM-L1RqD_J@example.com>
Josh Glover writes: > On 3 November 2010 13:06, Edward Middleton > <edward.middleton@example.com> wrote: > > > On 11/03/2010 07:04 PM, Marty Pauley wrote: > > > >> I would have thought it would perform _worse_ just after you flush all > >> the cache, since the cache is there to improve performance. > > > > If your applications have exhausted all available memory and are running > > on swap, more aggressive culling of the cache might improve performance ;) > > I thought the kernel was smart enough to back off the caching as > memory pressure on the system increased. It's not a question of "smart", it's a question of "dumb enough to be genius". The idea is that you populate memory with slabs of anything you think might be useful (next pag(s)e of a file just read, typically, or perhaps something mmap'ed but not yet accessed) at the lowest possible priority. If you run out of memory, the cache automatically gets reduced: it's just low-priority allocation. So the cache needs no culling, and backing off is similarly unnecessary. All the interesting questions of cache management, then, are on the front end: what's likely to be useful? I suppose that if the kernel makes very bad decisions about what to put in the cache, flushing it might make room for more pages from the most recently accessed resources, and this locality might do a better job of populating the cache.
- Follow-Ups:
- Re: [tlug] Possible command to boost to laptop performance
- From: Dave M G
- References:
- [tlug] Possible command to boost to laptop performance
- From: Dave M G
- Re: [tlug] Possible command to boost to laptop performance
- From: Marty Pauley
- Re: [tlug] Possible command to boost to laptop performance
- From: Edward Middleton
- Re: [tlug] Possible command to boost to laptop performance
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Possible command to boost to laptop performance
- Next by Date: Re: [tlug] Possible command to boost to laptop performance
- Previous by thread: Re: [tlug] Possible command to boost to laptop performance
- Next by thread: Re: [tlug] Possible command to boost to laptop performance
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links