Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2006 05:58:24 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 96645 for review
Message-ID:  <200605040558.k445wO8x070729@repoman.freebsd.org>

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

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



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