Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jul 2003 16:21:20 -0700
From:      Sean Chittenden <sean@chittenden.org>
To:        questions@FreeBSD.org
Subject:   Re: Disk cache size via sh?
Message-ID:  <20030709232120.GB94854@perrin.int.nxad.com>
In-Reply-To: <20030709223024.GA94854@perrin.int.nxad.com>
References:  <20030709223024.GA94854@perrin.int.nxad.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Is the following the correct way to figure out the disk cache size?
> 
> echo $((`sysctl -n vm.stats.vm.v_page_count` - \
>      `sysctl -n vm.stats.vm.v_free_reserved` - \
>      `sysctl -n vm.stats.vm.v_free_target`))
> 
> I can't tell if there's a limit in kern/vfs_cache.c though I couldn't
> find anything worth while.

More correctly, can the FS cache up to the entire size listed in
vfs.maxbufspace (actually vfs.hibufspace) bytes or is there a limit to
how much FS operations can use of the vfs cache?  -sc

-- 
Sean Chittenden



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030709232120.GB94854>