From: "Siddha, Suresh B" Subject: Re: [Patch] by default don't give all memory to dom0 Date: Fri, 19 Aug 2005 17:58:28 -0700 Message-ID: <20050819175828.A4564@unix-os.sc.intel.com> References: <20050818122413.C17270@unix-os.sc.intel.com> <4304E6A1.7090800@blueyonder.co.uk> <20050818132826.A19322@unix-os.sc.intel.com> <430503E9.8040200@blueyonder.co.uk> <20050818171319.B19322@unix-os.sc.intel.com> <10bc936eb65263c33b73ce93f0a049d3@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <10bc936eb65263c33b73ce93f0a049d3@cl.cam.ac.uk>; from Keir.Fraser@cl.cam.ac.uk on Fri, Aug 19, 2005 at 09:31:16AM +0100 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, "Siddha, Suresh B" List-Id: xen-devel@lists.xenproject.org On Fri, Aug 19, 2005 at 09:31:16AM +0100, Keir Fraser wrote: > > On 19 Aug 2005, at 01:13, Siddha, Suresh B wrote: > > >> If Kbytes is to be the default unit, then that default should > >> probably be > >> encoded in 'parse_size_and_unit', rather than having code like the > >> above > >> convert from bytes to Kbytes in many places. > > > > For "mem=" option, default unit is bytes. I think we should go with the > > linux style and make the default unit as bytes. If no one has any > > objections, > > then I can send a patch for it. > > Changing it will annoy people who are used to 2.0-style dom0_mem= > parameter. There is no good reason to change it: it's documented and, > if you want to avoid confusion, just stick a unit symbol on the end. And with the overnight changeset #6256, you changed the default behavior of "mem=" to kilobytes. We had to change one or the other to achieve commonality. thanks, suresh