Subject: Re: misc/27233 (still confusing)
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Arto Selonen <arto@selonen.org>
List: netbsd-bugs
Date: 02/02/2005 08:26:01
The following reply was made to PR misc/27233; it has been noted by GNATS.
From: Arto Selonen <arto@selonen.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: misc/27233 (still confusing)
Date: Wed, 2 Feb 2005 10:25:46 +0200 (EET)
Hi!
There are still two explanations for the vm.bufcache:
1) it is a percentage of total available RAM (different from physical RAM?)
2) it is a percentage of kernel memory (whatever that is)
I think #1 is the correct one (or closest to correct), see eg.
buf_memcalc() in src/sys/kern/vfs_bio.c.
Currently, the following cover vm.bufcache (or options BUFCACHE):
- options(4); explained as #1
- sysctl(3); explained as #2
- 'sysctl -d vm.bufcache'; explained as #1 ?
I guess this PR could be closed once sysctl(3) agrees with those two
other explanations, although I'm not sure if options(4) and
'sysctl -d vm.bufcache' mean the same thing or whether there is a
meaningful difference there.
Artsi
--
#######======------ http://www.selonen.org/arto/ --------========########
Everstinkuja 5 B 35 Don't mind doing it.
FIN-02600 Espoo arto@selonen.org Don't mind not doing it.
Finland tel +358 50 560 4826 Don't know anything about it.