From: Ian Jackson Subject: Re: [PATCH] libxc: lzma build fix Date: Fri, 28 Jan 2011 11:45:59 +0000 Message-ID: <19778.44151.155214.541044@mariner.uk.xensource.com> References: <201101261622.14583.Christoph.Egger@amd.com> <19776.18635.63919.190329@mariner.uk.xensource.com> <201101261827.25727.Christoph.Egger@amd.com> <1296158075.20804.41.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1296158075.20804.41.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Christoph Egger , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH] libxc: lzma build fix"): > The physmem value calculated by this function is only used as an > argument to lzma_alone_decoder, it is divided by 3 to get the memory > limit for the decoder. I hadn't spotted that. I should have looked more closely. > It's not clear to me why a userspace lzma decode would want to use that > particular value, what bearing it has on anything or why it would assume > it could use 1/3 of the total RAM in the system (potentially quite a > large amount of RAM) as opposed to any other limit number. It's dom0's "physmem", so not the whole system, but yes. > Why not just hardcode 32M or something? A quick scan through the > rdepends on Debian shows at least a couple of users doing so. Yes, we could revert this patch and hardcode a value. 32M seems plausible. Ian.