From owner-svn-src-head@FreeBSD.ORG Wed Jun 25 11:58:34 2014 Return-Path: Delivered-To: svn-src-head@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 ESMTPS id 14CDCA77; Wed, 25 Jun 2014 11:58:34 +0000 (UTC) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0EBEA2E40; Wed, 25 Jun 2014 11:58:32 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id k48so1919697wev.6 for ; Wed, 25 Jun 2014 04:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=1U3PyW/5FI2J2wjb6a01UDsHkGMl950te4ZvSiBjRX0=; b=Z2ny+2kbIns55IVc3XmsRSDliVcSG1Yi0TjgNlFqmS+YgWvDVzjFKBTHlmugbVTgNP jz6luLSh14fZUyQJNppiQZppNQLtR1Y1lqpE12Yp9TukLPwK/tOTZTeSRAoy2uAHvHVz +TMhVfbcPP+uHz2t6vM5exAVXEs9j2Ctn4pUhjxSSg+dcNCzFTy4QfsCSPxRPkm3jCKe Q/PhUiI+MLSTxfv/2FMpJFMbpqS5juaYgCGocDPzESXmb/Xs0iLcuz/81nS6msHQO78W UHBI3GsfpgmwqCi94DYxEoklm4GsRtZLBMQVnbITKSYDWV24EDgUDpkcpzKlrrmzsZN1 /tVQ== MIME-Version: 1.0 X-Received: by 10.180.37.100 with SMTP id x4mr41764971wij.37.1403697509579; Wed, 25 Jun 2014 04:58:29 -0700 (PDT) Reply-To: attilio@FreeBSD.org Sender: asmrookie@gmail.com Received: by 10.217.46.129 with HTTP; Wed, 25 Jun 2014 04:58:29 -0700 (PDT) In-Reply-To: <201406250951.s5P9p8YR017159@svn.freebsd.org> References: <201406250951.s5P9p8YR017159@svn.freebsd.org> Date: Wed, 25 Jun 2014 13:58:29 +0200 X-Google-Sender-Auth: FeyI8rtqVOhwgtQLIEqw9yKRSNg Message-ID: Subject: Re: svn commit: r267858 - in head/sys/dev: virtio/balloon xen/balloon From: Attilio Rao To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Alan Cox Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2014 11:58:34 -0000 On Wed, Jun 25, 2014 at 11:51 AM, Roger Pau Monn=C3=A9 = wrote: > Author: royger > Date: Wed Jun 25 09:51:08 2014 > New Revision: 267858 > URL: http://svnweb.freebsd.org/changeset/base/267858 > > Log: > xen/virtio: fix balloon drivers to not mark pages as WIRED > > Prevent the Xen and VirtIO balloon drivers from marking pages as > wired. This prevents them from increasing the system wired page count, > which can lead to mlock failing because of hitting the limit in > vm.max_wired. This change is conceptually wrong. The pages balloon is allocating are unmanaged and they should be wired by definition. Alan and I are considering enforcing this (mandatory wired pages for unmanaged pages allocation) directly in the KPI. This in practice just seem an artifact to deal with scarce wired memory limit. I suggest that for the XEN case this limit gets bumped rather relying on similar type of hacks. Attilio --=20 Peace can only be achieved by understanding - A. Einstein