diff options
| author | David Greenman <dg@FreeBSD.org> | 1995-02-12 09:19:44 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1995-02-12 09:19:44 +0000 |
| commit | 0217125f2be912d927437637492e76b4da2978ee (patch) | |
| tree | ac074f4f40b8f565dc521b1c050770aaa80c2876 /sys/vm | |
| parent | 06031f1f3fbbd917d28ff3ab4dd124fbfa79e3a0 (diff) | |
Notes
Diffstat (limited to 'sys/vm')
| -rw-r--r-- | sys/vm/vm_object.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 9d059e299d7f5..153ba98d2f934 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -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.20 1995/01/25 20:36:29 davidg Exp $ + * $Id: vm_object.c,v 1.21 1995/02/02 09:08:48 davidg Exp $ */ /* @@ -170,7 +170,10 @@ vm_object_init(vm_offset_t nothing) vm_object_count = 0; simple_lock_init(&vm_cache_lock); simple_lock_init(&vm_object_list_lock); - vm_object_cache_max = (cnt.v_page_count - 500) / 8; + + vm_object_cache_max = 84; + if (cnt.v_page_count > 1000) + vm_object_cache_max += (cnt.v_page_count - 1000) / 4; for (i = 0; i < VM_OBJECT_HASH_COUNT; i++) TAILQ_INIT(&vm_object_hashtable[i]); |
