Received: from eggs.gnu.org ([140.186.70.92]:35304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoMxx-0001a4-5G for qemu-devel@nongnu.org; Tue, 02 Aug 2011 17:57:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoMxw-0003mI-8y for qemu-devel@nongnu.org; Tue, 02 Aug 2011 17:57:33 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:43810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoMxw-0003la-4X for qemu-devel@nongnu.org; Tue, 02 Aug 2011 17:57:32 -0400 Date: Tue, 2 Aug 2011 23:03:37 +0100 From: Stefano Stabellini In-Reply-To: <4E3758920200007800073E55@nat28.tlf.novell.com> Message-ID: References: <4E3758920200007800073E55@nat28.tlf.novell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] xen-mapcache: Fix rlimit set size. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Beulich Cc: Anthony Perard , "agraf@suse.de" , "xen-devel@lists.xensource.com" , "qemu-devel@nongnu.org" , Stefano Stabellini On Tue, 2 Aug 2011, Jan Beulich wrote: > >>> Anthony PERARD 08/01/11 9:27 PM >>> > >Previously, the address space soft limit was set mcache_max_size. So, > >before the mcache_max_size was reached by the mapcache, QEMU was killed > >for overuse of the virtual address space. > > > >This patch fix that by setting the soft limit to mcache_max_size + 80MB. > >I observed that QEMU use 75MB more than max_mcache_size after several > >empirical tests. > > Rather fragile going forward I would say. Yes, I agree. At the very least we should print a warning if rlimit_max is too low so that the admin can fix it. > I there any reason not to set > the limit to infinity? We shouldn't assume that qemu is running as a privileged process, but if it is we should definitely do it.