PERFORCE change 96645 for review
Kip Macy
kmacy at FreeBSD.org
Thu May 4 05:58:29 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=96645
Change 96645 by kmacy at kmacy_storage:sun4v_rwbuf on 2006/05/04 05:58:23
fix call to vm_page_alloc_contig so that we can now spawn an
arbitrary number of processes
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tte_hash.c#17 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tte_hash.c#17 (text+ko) ====
@@ -196,14 +196,14 @@
goto done;
}
- printf("calling vm_page_alloc_contig\n");
while (m == NULL) {
m = vm_page_alloc_contig(HASH_SIZE, 2*PAGE_SIZE_4M,
- (1UL<<28), 0, 0);
- if (m == NULL)
+ (1UL<<34), PAGE_SIZE, (1UL<<34));
+ if (m == NULL) {
+ printf("vm_page_alloc_contig failed - waiting to retry\n");
VM_WAIT;
+ }
}
- printf("PHYS(m)=0x%010lx ", VM_PAGE_TO_PHYS(m));
for (i = 0, tm = m; i < HASH_SIZE; i++, tm++) {
if (tm->flags & PG_ZERO)
pmap_zero_page(tm);
@@ -212,8 +212,7 @@
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);
- if (proc0_mem_allocated > 390)
- printf("hash_create done\n");
+
return (th);
}
More information about the p4-projects
mailing list