From owner-p4-projects@FreeBSD.ORG Thu May 4 05:58:29 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 58B4F16A405; Thu, 4 May 2006 05:58:29 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 370A316A402 for ; Thu, 4 May 2006 05:58:29 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 029A143D5E for ; Thu, 4 May 2006 05:58:25 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k445wOhq070732 for ; Thu, 4 May 2006 05:58:24 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k445wO8x070729 for perforce@freebsd.org; Thu, 4 May 2006 05:58:24 GMT (envelope-from kmacy@freebsd.org) Date: Thu, 4 May 2006 05:58:24 GMT Message-Id: <200605040558.k445wO8x070729@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 96645 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2006 05:58:29 -0000 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); }