PERFORCE change 94512 for review
Kip Macy
kmacy at FreeBSD.org
Mon Apr 3 07:16:52 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=94512
Change 94512 by kmacy at kmacy_storage:sun4v_work on 2006/04/03 07:16:09
bump up number of static allocations
reduce noise until we start to run out
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tte_hash.c#12 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tte_hash.c#12 (text+ko) ====
@@ -33,6 +33,7 @@
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/proc.h>
+#include <sys/smp.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
@@ -159,7 +160,7 @@
m = NULL;
- if (proc0_mem_allocated < 40) {
+ if (proc0_mem_allocated < 400) {
proc0_mem_allocated++;
th->th_hashtable = (void *)TLB_PHYS_TO_DIRECT(proc0_mem);
@@ -183,8 +184,8 @@
th->th_hashtable = (void *)TLB_PHYS_TO_DIRECT(VM_PAGE_TO_PHYS(m));
done:
*scratchval = (uint64_t)((vm_offset_t)th->th_hashtable) | ((vm_offset_t)th->th_size);
-
- printf("hash_create done\n");
+ if (proc0_mem_allocated > 390)
+ printf("hash_create done\n");
return (th);
}
More information about the p4-projects
mailing list