Increased vm_object_cache_max by about 50% to yield better utilization of

memory when lots of small files are cached.

Reviewed by:	dyson
This commit is contained in:
David Greenman 1996-01-04 18:32:31 +00:00
parent 7ae3d55998
commit a2d5b14236
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13223

View File

@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: vm_object.c,v 1.59 1995/12/11 04:58:20 dyson Exp $
* $Id: vm_object.c,v 1.60 1995/12/14 09:55:03 phk Exp $
*/
/*
@ -188,7 +188,7 @@ vm_object_init()
vm_object_cache_max = 84;
if (cnt.v_page_count > 1000)
vm_object_cache_max += (cnt.v_page_count - 1000) / 4;
vm_object_cache_max += (cnt.v_page_count - 1000) / 3;
kernel_object = &kernel_object_store;
_vm_object_allocate(OBJT_DEFAULT, OFF_TO_IDX(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS),