pergesu at gmail.com
Tue Feb 8 14:23:36 PST 2005
Well Chuck, that must be a great answer, because I don't understand any of it :)
I guess my only concern is that I have plenty of RAM available (1GB
total, 520MB inactive usually), and wanted to make sure that it's not
just a big memory leak. It's only been running for a couple days, so
I was kind of scared that in a week it'd be something like 900
inactive and suddenly everything is coming out of swap.
I'd just like to know that my machine is going to use the memory efficiently.
Thanks for the response. (I think) it reassured me of what I need to know.
On Tue, 08 Feb 2005 17:13:19 -0500, Chuck Swiger <cswiger at mac.com> wrote:
> Pat Maddox wrote:
> > Alright, that lets me know that it's not an entirely bad thing. It
> > does say, however, that it's fine as long as the free memory isn't
> > REALLY low. It did get down to 13MB though, as I said.
> Really low means less than 1 MB. That would indicate the VM system is under
> so much pressure that it can't maintain the minimum amount of free space it
> wants to have:
> vm.v_free_min: 378
> vm.v_free_target: 1655
> vm.v_free_reserved: 143
> vm.v_pageout_free_min: 34
> vm.v_free_severe: 260
> These numbers are likely to be in 4K pages, 260 * 4K = 1040K ~= 1 MB, and will
> vary slighty depending on available physical RAM, kernel size, and probably
> the phase of the moon. :-)
> > So now I understand that it's alright for the free memory to be low.
> > I don't understand how the inactive, cache, and buffered memory are
> > used though. When a process uses up all the free memory, does it then
> > use some from inactive, or does it use swap?
> A process will start reusing inactive memory, which involves flushing data to
> disk and/or using swap, depending, but the VM system may well swap out pages
> from other processes instead (especially ones that have been idle for a long
> [ The VM pager uses LRU or actually NFU page selection algorithms with complex
> names like "second chance replacement via clock hand sweep, with working set
> size and global page-fault frequency modelling". :-) This is a complicated
> topic, and it starts becoming better to look at the code than to try to
> describe the algorithms in words. ]
More information about the freebsd-questions