Date: Mon, 13 Apr 2015 12:52:02 +0200 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= <roger.pau@citrix.com> To: Hannes Mehnert <hannes@mehnert.org>, <freebsd-xen@freebsd.org> Subject: Re: [fixed] Re: GELI encrypted root and FreeBSD dom0 ; libxl cannot allocate memory Message-ID: <552B9FD2.5030405@citrix.com> In-Reply-To: <552B9EF0.9050109@mehnert.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?552B9FD2.5030405>