From owner-cvs-src-old@FreeBSD.ORG Fri Jun 4 06:37:08 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04CFB106567E for ; Fri, 4 Jun 2010 06:37:08 +0000 (UTC) (envelope-from jchandra@FreeBSD.org) Received: from repoman.freebsd.org (unknown [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E68F38FC0C for ; Fri, 4 Jun 2010 06:37:07 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o546b7YJ022141 for ; Fri, 4 Jun 2010 06:37:07 GMT (envelope-from jchandra@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o546b78q022140 for cvs-src-old@freebsd.org; Fri, 4 Jun 2010 06:37:07 GMT (envelope-from jchandra@repoman.freebsd.org) Message-Id: <201006040637.o546b78q022140@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jchandra@repoman.freebsd.org using -f From: "Jayachandran C." Date: Fri, 4 Jun 2010 06:35:36 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/mips/mips pmap.c src/sys/vm vm_contig.c vm_pageout.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2010 06:37:08 -0000 jchandra 2010-06-04 06:35:36 UTC FreeBSD src repository Modified files: sys/mips/mips pmap.c sys/vm vm_contig.c vm_pageout.h Log: SVN rev 208794 on 2010-06-04 06:35:36Z by jchandra Make vm_contig_grow_cache() extern, and use it when vm_phys_alloc_contig() fails to allocate MIPS page table pages. The current usage of VM_WAIT in case of vm_phys_alloc_contig() failure is not correct, because: "There is no guarantee that any of the available free (or cached) pages after the VM_WAIT will fall within the range of suitable physical addresses. Every time this function sleeps and a single page is freed (or cached) by someone else, this function will be reawakened. With a little bad luck, you could spin indefinitely." We also add low and high parameters to vm_contig_grow_cache() and vm_contig_launder() so that we restrict vm_contig_launder() to the range of pages we are interested in. Reported by: alc Reviewed by: alc Approved by: rrs (mentor) Revision Changes Path 1.60 +11 -7 src/sys/mips/mips/pmap.c 1.82 +12 -9 src/sys/vm/vm_contig.c 1.45 +1 -0 src/sys/vm/vm_pageout.h