From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hopwood Subject: Default memory unit Date: Sat, 20 Aug 2005 00:32:46 +0100 Message-ID: <43066C1E.6000206@blueyonder.co.uk> 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> Reply-To: david.nospam.hopwood@blueyonder.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <10bc936eb65263c33b73ce93f0a049d3@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. I disagree that there's no good reason to make the default unit consistent. Currently Xen has a relatively small user community, so the time to change it while annoying the fewest people is now. -- David Hopwood