Disk cache size via sh?
Sean Chittenden
sean at chittenden.org
Wed Jul 9 16:21:22 PDT 2003
> 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
More information about the freebsd-questions
mailing list