From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758882AbXGJEot (ORCPT ); Tue, 10 Jul 2007 00:44:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751140AbXGJEom (ORCPT ); Tue, 10 Jul 2007 00:44:42 -0400 Received: from ausmtp04.au.ibm.com ([202.81.18.152]:39006 "EHLO ausmtp04.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751020AbXGJEol (ORCPT ); Tue, 10 Jul 2007 00:44:41 -0400 Message-ID: <46930EAF.6030104@linux.vnet.ibm.com> Date: Mon, 09 Jul 2007 21:44:31 -0700 From: Balbir Singh Reply-To: balbir@linux.vnet.ibm.com Organization: IBM User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Peter Zijlstra CC: Paul Menage , Linux Containers , Linux Kernel Mailing List , Pavel Emelianov Subject: Re: [patch -rss] Make RSS accounting display more user friendly References: <20070620154655.13844.42876.sendpatchset@balbir-laptop> <6599ad830706211217l65d76d4ehb42f9165bcf45dd@mail.gmail.com> <467B2F4F.2030101@openvz.org> <6599ad830706220839h2a556c76he11b78c2c4cdb86e@mail.gmail.com> <661de9470706222048g638a06dboc0b2e85975a9ba70@mail.gmail.com> <6599ad830706250019h117ff575h156cf112f5778e43@mail.gmail.com> <6D63B142.2080404@linux.vnet.ibm.com> <1183981098.1913.22.camel@twins> In-Reply-To: <1183981098.1913.22.camel@twins> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Peter Zijlstra wrote: > On Sun, 2028-02-27 at 02:39 -0500, Balbir Singh wrote: > >> I am not a CLUI expert, but rounding off bytes will something that >> the administrators will probably complain about. Since we manage >> the controller memory in pages, it might be the easiest unit to use. >> The output is totally different matter. >> >> Having said that, I am not opposed to your suggestion, I'll see if >> I can find good CLUI guidelines. > > Pages are generally considered a bad unit for user-space exposed > parameters because a page can have a wide spectrum of sizes on some > machines. > Exactly! > The typical unit used in its stead is KiB. Although I could imagine MiB > being more useful in this case :-) > I think a routine that can handle either KiB or MiB would probably be the best > Perhaps a new proc parser that takes postfix [KMG] units would be > handy.. > Hmm.. yes.. a library routine would be nice! -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL