Re: free memory keeps going down on 5.4-release

2006-11-06 Thread Jonathan Horne
On Monday 06 November 2006 11:08, Roselyn Lee wrote:
 Hi,

 We're running freebsd 5-4 release and notice that an idle system's free
 memroy keeps decreasing.  The system has 1 GB memory and the free mem
 starts at ~700M and goes down steadily until it hits 2M and stays there. 
 After that bringing up more apps on the system doesn't seem to make the
 free memory any smaller.  I checked top and vmstat -m, vmstat -z and can't
 see where all that memory is going.  Does freebsd use memory for disk
 caching that is not accounted for in these stats?

 Thanks in advance for any help.

 Roselyn


not to worry, the less free memory, the better.  the memory that you cannot 
see where it goes, is likely cached for application, and would be freed if 
something else really needed it.  the less free memory you see, the quicker 
your server can react to a request.

unless your server is getting into significant swap usage, i would consider 
little to no free memory available a good thing.

cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: free memory keeps going down on 5.4-release

2006-11-06 Thread Dan Nelson
In the last episode (Nov 06), Roselyn Lee said:
 We're running freebsd 5-4 release and notice that an idle system's
 free memroy keeps decreasing.  The system has 1 GB memory and the
 free mem starts at ~700M and goes down steadily until it hits 2M and
 stays there.  After that bringing up more apps on the system doesn't
 seem to make the free memory any smaller.  I checked top and vmstat
 -m, vmstat -z and can't see where all that memory is going.  Does
 freebsd use memory for disk caching that is not accounted for in
 these stats?

Yes, free memory is used as cache.  As Free decreases, you will see
Inact, Cache and Buf increase.  

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: free memory keeps going down on 5.4-release

2006-11-06 Thread Charles Swiger

On Nov 6, 2006, at 12:22 PM, Dan Nelson wrote:

In the last episode (Nov 06), Roselyn Lee said:

Does freebsd use memory for disk caching that is not accounted for in
these stats?


Yes, free memory is used as cache.  As Free decreases, you will see
Inact, Cache and Buf increase.


Yep.  What many people are looking for when they ask how much memory  
is available to run new programs is actually not just the Free  
memory, but something closer to Free + Inactive.  However, stuff  
that is in Inactive which has been modified will need to be written  
out to the swapfile before being evicted to make room for another  
program...


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: free memory keeps going down on 5.4-release

2006-11-06 Thread Jerry McAllister
On Mon, Nov 06, 2006 at 09:08:04AM -0800, Roselyn Lee wrote:

 
 Hi,
 
 We're running freebsd 5-4 release and notice that an idle system's free 
 memroy keeps decreasing.  The system has 1 GB memory and the free mem 
 starts at ~700M and goes down steadily until it hits 2M and stays there.  
 After that bringing up more apps on the system doesn't seem to make the 
 free memory any smaller.  I checked top and vmstat -m, vmstat -z and 
 can't see where all that memory is going.  Does freebsd use memory for 
 disk caching that is not accounted for in these stats?

I believe this is normal.   There have been many similar posts and 
explanatory replies about this sort of thing.   There may even be
a FAQ on it (but I haven't checked).   It is an artifact of how 
memory allocation works and improved efficiency of memory algoritms.

So, do a little archive and FAQ searching.   There may also be articles
in online publications such as Onlamp or others.

jerry

 
 Thanks in advance for any help.
 
 Roselyn
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]