Re: where did all my memory go?

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Wed, 16 Feb 2005 14:03:14 -0800
On Wed, Feb 16, 2005 at 01:55:26PM -0800, Sean McNeil wrote:
>
> I am not disputing this, but it was only a quick glance through the
> documentation that Steve pointed to that I think I understand, but again
> wonder a little as to why.
> 
> What I seem to be getting from the documentation is that cache and buf
> pages are being actively used within the system for one reason or
> another.  It would appear that disk cache pages that have either aged
> past a point or otherwise determined as reusable are placed on the user
> space inactive queue.  Am I starting to get it?
> 

Yes, you are beginning to grasp the idea.  Consider the number of
times you may use ls during a session.  Do you really want to read
the ls command from disk every time you issue the command?

Another way to understand why you want to leave things in the inactive
state is to reboot your system, and then do

time find /usr/src -type f | xargs grep SomeNonsenseString
time find /usr/src -type f | xargs grep SomeNonsenseString

Which command do you think will finish in the least time?

-- 
Steve
Received on Wed Feb 16 2005 - 21:03:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:28 UTC