From owner-cvs-src-old@FreeBSD.ORG Wed Mar 23 16:38:55 2011 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 25F651065674 for ; Wed, 23 Mar 2011 16:38:55 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EAFFC8FC15 for ; Wed, 23 Mar 2011 16:38:54 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p2NGcspc089583 for ; Wed, 23 Mar 2011 16:38:54 GMT (envelope-from alc@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p2NGcs35089582 for cvs-src-old@freebsd.org; Wed, 23 Mar 2011 16:38:54 GMT (envelope-from alc@repoman.freebsd.org) Message-Id: <201103231638.p2NGcs35089582@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to alc@repoman.freebsd.org using -f From: Alan Cox Date: Wed, 23 Mar 2011 16:38:29 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/include vmparam.h src/sys/kern kern_malloc.c subr_param.c src/sys/sys systm.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: Wed, 23 Mar 2011 16:38:55 -0000 alc 2011-03-23 16:38:29 UTC FreeBSD src repository Modified files: sys/i386/include vmparam.h sys/kern kern_malloc.c subr_param.c sys/sys systm.h Log: SVN rev 219920 on 2011-03-23 16:38:29Z by alc Modestly increase the maximum allowed size of the kmem map on i386. Also, express this new maximum as a fraction of the kernel's address space size rather than a constant so that increasing KVA_PAGES will automatically increase this maximum. As a side-effect of this change, kern.maxvnodes will automatically increase by a proportional amount. While I'm here ensure that this change doesn't result in an unintended increase in maxpipekva on i386. Calculate maxpipekva based upon the size of the kernel address space and the amount of physical memory instead of the size of the kmem map. The memory backing pipes is not allocated from the kmem map. It is allocated from its own submap of the kernel map. In short, it has no real connection to the kmem map. (In fact, the commit messages for the maxpipekva auto-sizing talk about using the kernel map size, cf. r117325 and r117391, even though the implementation actually used the kmem map size.) Although the calculation is now done differently, the resulting value for maxpipekva should remain almost the same on i386. However, on amd64, the value will be reduced by 2/3. This is intentional. The recent change to VM_KMEM_SIZE_SCALE on amd64 for the benefit of ZFS also had the unnecessary side-effect of increasing maxpipekva. This change is effectively restoring maxpipekva on amd64 to its prior value. Eliminate init_param3() since it is no longer used. Revision Changes Path 1.52 +2 -1 src/sys/i386/include/vmparam.h 1.184 +0 -5 src/sys/kern/kern_malloc.c 1.99 +8 -11 src/sys/kern/subr_param.c 1.292 +0 -1 src/sys/sys/systm.h