From owner-svn-src-all@FreeBSD.ORG Wed Jun 25 12:09:37 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F9D6328; Wed, 25 Jun 2014 12:09:37 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C4A062F9D; Wed, 25 Jun 2014 12:09:36 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.8/8.14.8) with ESMTP id s5PC9XuU054240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Jun 2014 16:09:33 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.8/8.14.8/Submit) id s5PC9XCw054239; Wed, 25 Jun 2014 16:09:33 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 25 Jun 2014 16:09:32 +0400 From: Gleb Smirnoff To: Attilio Rao Subject: Re: svn commit: r267858 - in head/sys/dev: virtio/balloon xen/balloon Message-ID: <20140625120932.GM28199@FreeBSD.org> References: <201406250951.s5P9p8YR017159@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Alan Cox , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , Roger Pau =?iso-8859-1?Q?Monn=E9?= , "src-committers@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 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: Wed, 25 Jun 2014 12:09:37 -0000 On Wed, Jun 25, 2014 at 01:58:29PM +0200, Attilio Rao wrote: A> > Log: A> > xen/virtio: fix balloon drivers to not mark pages as WIRED A> > A> > Prevent the Xen and VirtIO balloon drivers from marking pages as A> > wired. This prevents them from increasing the system wired page count, A> > which can lead to mlock failing because of hitting the limit in A> > vm.max_wired. A> A> This change is conceptually wrong. A> The pages balloon is allocating are unmanaged and they should be wired A> by definition. Alan and I are considering enforcing this (mandatory A> wired pages for unmanaged pages allocation) directly in the KPI. A> This in practice just seem an artifact to deal with scarce wired A> memory limit. I suggest that for the XEN case this limit gets bumped A> rather relying on similar type of hacks. Proper limit would be to count pages wired by userland via mlock(2) and enforce limit only on those pages. Pages wired by kernel should be either unlimited or controled by a separate limit. -- Totus tuus, Glebius.