Disk cache size via sh?

Sean Chittenden sean at chittenden.org
Wed Jul 9 15:30:26 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.
 
-sc
-- 
Sean Chittenden


More information about the freebsd-questions mailing list