Please test this simple patch

Alan Cox alc at cs.rice.edu
Sat Jun 21 06:22:33 UTC 2008


Could someone please test the attached patch on an AIM powerpc?  
Specifically, what I want to know is the output of "vmstat -z" for "KMAP 
ENTRY" before and after this patch is applied.  (I would also like to 
know how much physical memory that your test machine has.)

Thanks,
Alan

-------------- next part --------------
Index: vm/vm_map.c
===================================================================
--- vm/vm_map.c	(revision 179898)
+++ vm/vm_map.c	(working copy)
@@ -294,7 +294,7 @@
 vm_init2(void)
 {
 	uma_zone_set_obj(kmapentzone, &kmapentobj, lmin(cnt.v_page_count,
-	    (VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE) / 8 +
+	    (VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) / PAGE_SIZE) / 8 +
 	     maxproc * 2 + maxfiles);
 	vmspace_zone = uma_zcreate("VMSPACE", sizeof(struct vmspace), NULL,
 #ifdef INVARIANTS


More information about the freebsd-ppc mailing list