Subject: Re: sysctl question
To: None <sigsegv@rambler.ru>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 08/22/2004 14:15:46
On Fri, Aug 20, 2004 at 06:07:58PM +0100, sigsegv@rambler.ru wrote:
> I am a bit confused about some of the sysctl options, looking at "sysctl -d"
> 
> vm.anonmin: Percentage of physical memory reserved for anonymous 
> application data
> vm.anonmax: Percentage of physical memory which will be reclaimed from 
> other usage for anonymous application data
> 
> Say I have the following settings:
> 
> vm.anonmin=5
> vm.anonmax=50
> 
> vm.anonmin reserves 5% of physical memory, then say it gets used up by 
> different applications. If I understand this correctly, vm.anonmax 
> states the maximum amount of physical memory which will be reclaimed 
> from other usage if the physical memory reserved by vm.anonmin is all 
> taken. What will happend if the requirement for anonymous application 
> data grows beyond 55% (vm.anonmin + vm.anonmax) of total physical 

That would be 50% (anonmax)

> memory? Will the system become unstable and freeze, or will it just use 
> swap space on the hard disk?

It will swap.

> What is anonymous application data?

the ram used for e.g. malloc(), the process stack, ...

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--