From owner-freebsd-arch@FreeBSD.ORG Wed Jan 30 20:58:35 2013 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4E72CE08 for ; Wed, 30 Jan 2013 20:58:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 96A796A5 for ; Wed, 30 Jan 2013 20:58:34 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id WAA29772 for ; Wed, 30 Jan 2013 22:58:33 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1U0ejo-000OP0-OM for freebsd-arch@freebsd.org; Wed, 30 Jan 2013 22:58:32 +0200 Message-ID: <51098977.4000603@FreeBSD.org> Date: Wed, 30 Jan 2013 22:58:31 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130121 Thunderbird/17.0.2 MIME-Version: 1.0 CC: freebsd-arch@FreeBSD.org Subject: axe vm.max_wired [Was: Allow small amount of memory be mlock()'ed by unprivileged process?] References: <4FAC3EAB.6050303@delphij.net> <861umkurt8.fsf@ds4.des.no> <20120517055425.GA802@infradead.org> <4FC762DD.90101@FreeBSD.org> <4FC81D9C.2080801@FreeBSD.org> <4FC8E29F.2010806@shatow.net> <4FC95A10.7000806@freebsd.org> <4FC9F94B.8060708@FreeBSD.org> In-Reply-To: <4FC9F94B.8060708@FreeBSD.org> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 20:58:35 -0000 on 02/06/2012 14:30 Andriy Gapon said the following: > o There is also vm.max_wired sysctl (with no equivalent tunable), which > specifies number of _pages_ that can be wired system wide (by both kernel and > userland). But note that the limit applies only to userland requests, the > kernel is allowed to wire new pages even when the limit is exceeded. By default > the limit is set to 1/3 of available pages. I would like to propose to axe vm.max_wired limit. It is not good when too many pages are wired, but... This limit is quite arbitrary (why 1/3). It's no good for ZFS systems where e.g. 90% of memory can be normally wired by ZFS in kernel. So this limit should be either axed or perhaps replaced with some much higher limit like e.g. v_page_count - 2 * v_free_target or some such number "close" to v_page_count. -- Andriy Gapon