Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1375521
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] proc: meminfo: Replace kB with KiB in output |
| Date | 2016-04-11 08:50 +0200 |
| Message-ID | <rmDPA-1t4-13@gated-at.bofh.it> (permalink) |
| References | <rmptg-769-3@gated-at.bofh.it> <rmptg-769-5@gated-at.bofh.it> <rmDmy-1gf-19@gated-at.bofh.it> <rmDFT-1pk-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] proc: meminfo: Replace kB with KiB in output Alexandru Juncu <alexj@linux.com> - 2016-04-10 17:30 +0200
Re: [PATCH] proc: meminfo: Replace kB with KiB in output Michal Hocko <mhocko@kernel.org> - 2016-04-11 08:20 +0200
Re: [PATCH] proc: meminfo: Replace kB with KiB in output Alexandru Juncu <alexj@linux.com> - 2016-04-11 08:40 +0200
Re: [PATCH] proc: meminfo: Replace kB with KiB in output Michal Hocko <mhocko@kernel.org> - 2016-04-11 08:50 +0200
Re: [PATCH] proc: meminfo: Replace kB with KiB in output Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-04-11 10:00 +0200
csiph-web