From owner-freebsd-xen@FreeBSD.ORG Mon Apr 13 10:52:06 2015 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 22EA1E84 for ; Mon, 13 Apr 2015 10:52:06 +0000 (UTC) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Cybertrust Public SureServer SV CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CD00E66A for ; Mon, 13 Apr 2015 10:52:05 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.11,569,1422921600"; d="scan'208";a="254433632" Message-ID: <552B9FD2.5030405@citrix.com> Date: Mon, 13 Apr 2015 12:52:02 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Hannes Mehnert , Subject: Re: [fixed] Re: GELI encrypted root and FreeBSD dom0 ; libxl cannot allocate memory References: <552AA3AE.20205@mehnert.org> <552B8A1C.1000000@mehnert.org> <552B91EB.4060709@citrix.com> <552B9528.5080009@mehnert.org> <552B9781.80204@citrix.com> <552B9899.1090901@mehnert.org> <552B9D9B.1090102@citrix.com> <552B9EF0.9050109@mehnert.org> In-Reply-To: <552B9EF0.9050109@mehnert.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA2 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2015 10:52:06 -0000 Hello, El 13/04/15 a les 12.48, Hannes Mehnert ha escrit: > On 04/13/2015 11:42, Roger Pau Monné wrote: >>> 36280 xl CALL >>> mmap(0,0x19000,0x3,0x1002,0xffffffff,0) >>> >>> > 36280 xl RET mmap 34366500864/0x800673000 >>> 36280 xl CALL mlock(0x800673000,0x19000) 36280 xl >>> RET mlock -1 errno 12 Cannot allocate memory > >> mlock is indeed failing to wire the pages, can you try to set: > >> # sysctl -w vm.max_wired=1048576 > >> And try again? > > Results in the very same trace (or do I need to set it in sysctl.conf > and reboot?).. No, just setting the sysctl should be fine, no need to set it in sysctl.conf and reboot. Maybe the problem is not with vm.max_wired but the limit you have on your shell, can you paste the output of: # ulimit -a I'm interested in the "locked memory" line. Roger.