From owner-svn-src-all@FreeBSD.ORG Sat Nov 2 17:08:21 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 71B4A266; Sat, 2 Nov 2013 17:08:21 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5F6902E89; Sat, 2 Nov 2013 17:08:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA2H8L8a062397; Sat, 2 Nov 2013 17:08:21 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA2H8LoJ062396; Sat, 2 Nov 2013 17:08:21 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201311021708.rA2H8LoJ062396@svn.freebsd.org> From: Alan Cox Date: Sat, 2 Nov 2013 17:08:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257549 - head/sys/arm/include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2013 17:08:21 -0000 Author: alc Date: Sat Nov 2 17:08:20 2013 New Revision: 257549 URL: http://svnweb.freebsd.org/changeset/base/257549 Log: Don't create a distinct free page pool for segregating allocations that are accessed through the direct map unless the kernel configuration actually includes a direct map. Only a few configurations do, and for the rest the unnecessary free page pool is a small pessimization. Tested by: zbb MFC after: 6 weeks Modified: head/sys/arm/include/vmparam.h Modified: head/sys/arm/include/vmparam.h ============================================================================== --- head/sys/arm/include/vmparam.h Sat Nov 2 15:13:02 2013 (r257548) +++ head/sys/arm/include/vmparam.h Sat Nov 2 17:08:20 2013 (r257549) @@ -82,15 +82,21 @@ #define VM_PHYSSEG_DENSE /* - * Create three free page pools: VM_FREEPOOL_DEFAULT is the default pool - * from which physical pages are allocated and VM_FREEPOOL_DIRECT is - * the pool from which physical pages for small UMA objects are - * allocated. + * Create two or three free page pools depending on the existence of a direct + * map: VM_FREEPOOL_DEFAULT is the default pool from which physical pages are + * allocated, and VM_FREEPOOL_DIRECT is the pool from which physical pages for + * small UMA objects are allocated. */ +#ifdef ARM_USE_SMALL_ALLOC #define VM_NFREEPOOL 3 #define VM_FREEPOOL_CACHE 2 -#define VM_FREEPOOL_DEFAULT 0 #define VM_FREEPOOL_DIRECT 1 +#else +#define VM_NFREEPOOL 2 +#define VM_FREEPOOL_CACHE 1 +#define VM_FREEPOOL_DIRECT 0 +#endif +#define VM_FREEPOOL_DEFAULT 0 /* * we support 2 free lists: