howto calculate free memory from top
Howdy list, I've been wondering about this for a while: How do I calculate the amount of free memory my system has at any given point in time? My top usually looks like this: Mem: 72M Active, 668M Inact, 165M Wired, 29M Cache, 112M Buf, 70M Free Swap: 2048M Total, 5448K Used, 2043M Free I understand the 70M Free part, but should I add 668M Inact to that? Or is it more complicated? Thanks! -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto calculate free memory from top
On Tuesday, September 9, 2003, at 08:35 AM, Jesse Guardiani wrote: How do I calculate the amount of free memory my system has at any given point in time? What do you mean by free memory? My top usually looks like this: Mem: 72M Active, 668M Inact, 165M Wired, 29M Cache, 112M Buf, 70M Free Swap: 2048M Total, 5448K Used, 2043M Free I understand the 70M Free part, but should I add 668M Inact to that? Or is it more complicated? It's more complicated. The inactive memory refers to pages that have been used (but not recently), and thus are candidates for being replaced by more active pages, if the system has enough activity to want such pages for other tasks. -- -Chuck ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto calculate free memory from top
Charles Swiger wrote: On Tuesday, September 9, 2003, at 08:35 AM, Jesse Guardiani wrote: How do I calculate the amount of free memory my system has at any given point in time? What do you mean by free memory? Memory that can be used by other programs before the vm starts using swap. My top usually looks like this: Mem: 72M Active, 668M Inact, 165M Wired, 29M Cache, 112M Buf, 70M Free Swap: 2048M Total, 5448K Used, 2043M Free I understand the 70M Free part, but should I add 668M Inact to that? Or is it more complicated? It's more complicated. The inactive memory refers to pages that have been used (but not recently), and thus are candidates for being replaced by more active pages, if the system has enough activity to want such pages for other tasks. So they _are_ available for use then? And thus are relatively free, correct? -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto calculate free memory from top
In the last episode (Sep 09), Jesse Guardiani said: Charles Swiger wrote: On Tuesday, September 9, 2003, at 08:35 AM, Jesse Guardiani wrote: How do I calculate the amount of free memory my system has at any given point in time? What do you mean by free memory? Memory that can be used by other programs before the vm starts using swap. http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#TOP-MEMORY-STATES does a pretty good job of explaining the states. So they _are_ available for use then? And thus are relatively free, correct? All memory except for Wired is free, to varying degrees. -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto calculate free memory from top
Dan Nelson wrote: In the last episode (Sep 09), Jesse Guardiani said: Charles Swiger wrote: On Tuesday, September 9, 2003, at 08:35 AM, Jesse Guardiani wrote: How do I calculate the amount of free memory my system has at any given point in time? What do you mean by free memory? Memory that can be used by other programs before the vm starts using swap. http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#TOP-MEMORY-STATES does a pretty good job of explaining the states. Yes, all except Buf, but `man top` explains that pretty well. So they _are_ available for use then? And thus are relatively free, correct? All memory except for Wired is free, to varying degrees. OK. Just out of curiosity, what would you say about my example then: -- Mem: 72M Active, 668M Inact, 165M Wired, 29M Cache, 112M Buf, 70M Free Swap: 2048M Total, 5448K Used, 2043M Free -- Based on that FAQ, I would say that I've got about 80M of immediately available memory, and if the system gets pushed really hard, I can probably spare another 600M or so with relatively minimal swap usage. Is that accurate? Thanks! Sincerely, -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto calculate free memory from top
In the last episode (Sep 09), Jesse Guardiani said: So they _are_ available for use then? And thus are relatively free, correct? All memory except for Wired is free, to varying degrees. OK. Just out of curiosity, what would you say about my example then: -- Mem: 72M Active, 668M Inact, 165M Wired, 29M Cache, 112M Buf, 70M Free Swap: 2048M Total, 5448K Used, 2043M Free -- Based on that FAQ, I would say that I've got about 80M of immediately available memory, and if the system gets pushed really hard, I can probably spare another 600M or so with relatively minimal swap usage. Is that accurate? Sounds about right. -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]