Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2006 07:16:51 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 94512 for review
Message-ID:  <200604030716.k337GpDf058065@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94512

Change 94512 by kmacy@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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604030716.k337GpDf058065>