lkml.org 
[lkml]   [2005]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel cached memory
Robert Hancock wrote:
> John Pearson wrote:
>
>> Wouldn't having (practically) all your memory used for cache slow down
>> starting a new program? First it would have to free up that space, and
>> then
>> put stuff in that space, taking potentially twice as long.
>
>
> If the cache pages are clean (not been modified since they were read
> from the disk), then evicting that data will not take very long. If the
> program you are just starting is not in the cache, then the time taken
> to load it from disk will dwarf the time needed to evict cached pages.
> And there's also the possibility that the cache contains the data you
> are loading, which definitely will speed things up..
>
The problem lies with data write evicting program pages in many cases.
You are right that they don't need to be written, but they do need to be
read back, so when I unhide a window there's a large delay while the
underlying program is read back in. If the pages are dirty, then there's
the delay while they are written.

It's exactly the benefit from having cached pages which is lost.

I would love more control in this area, but short of maintaining a patch
I don't see it happening.

--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
-
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-07-26 17:05    [W:0.037 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site