mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: Alexandru Juncu <alexj@linux.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	den@openvz.org, redkoi@virtuozzo.com, rkagan@virtuozzo.com,
	Johannes Weiner <hannes@cmpxchg.org>
Subject: Re: [PATCH] proc: meminfo: Replace kB with KiB in output
Date: Mon, 11 Apr 2016 08:48:02 +0200	[thread overview]
Message-ID: <20160411064802.GB23157@dhcp22.suse.cz> (raw)
In-Reply-To: <CAPhGq=ZoXPuOKDpei4LmQ5oWpTk0YNXuye4wD0aa0LKtk=btMQ@mail.gmail.com>

On Mon 11-04-16 08:35:00, Alexandru Juncu wrote:
> On 11 April 2016 at 08:12, Michal Hocko <mhocko@kernel.org> wrote:
> > On Sun 10-04-16 17:23:11, Alexandru Juncu wrote:
> >> Current values are based on multiples of 1024 (powers of 2)
> >> which means that the values in meminfo are not kilobytes
> >> (1000 bytes) but kibibytes (1024 bytes). The correct
> >> prefix for that would be 'Ki' so the output should be 'KiB'.
> >
> > Does the difference actually matters so much that we should change a
> > user visible format of a file? Some users might not ready to changes
> > (say sombody did sed 's@.*:[[:space:]]*\([0-9]*\) kB@\1@' to get values.
> > This change would break it which is something we try to prevent as much
> > as possible.
> >
> > So I do not think this all is worth the potential troubles. There are
> > probably other places where we present kB while we in fact think kiB.
> 
> Isn't it at least worth clearly specifying this in the documentation
> (maybe also comment in code)?

Sure, improving our documentation is highly appreciated of course. 

Thanks!
-- 
Michal Hocko
SUSE Labs

  reply	other threads:[~2016-04-11  6:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-10 15:23 [RFC] " Alexandru Juncu
2016-04-10 15:23 ` [PATCH] " Alexandru Juncu
2016-04-11  6:12   ` Michal Hocko
2016-04-11  6:35     ` Alexandru Juncu
2016-04-11  6:48       ` Michal Hocko [this message]
2016-04-11  7:53   ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160411064802.GB23157@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=alexj@linux.com \
    --cc=den@openvz.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=redkoi@virtuozzo.com \
    --cc=rkagan@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®