Re: formatting bytes and object counts in ceph status ouput

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 2, 2018 at 10:43 AM, Jan Fajerski <jfajerski@xxxxxxxx> wrote:
> Hi lists,
> Currently the ceph status output formats all numbers with binary unit
> prefixes, i.e. 1MB equals 1048576 bytes and an object count of 1M equals
> 1048576 objects.  I received a bug report from a user that printing object
> counts with a base 2 multiplier is confusing (I agree) so I opened a bug and
> https://github.com/ceph/ceph/pull/19117.
> In the PR discussion a couple of questions arose that I'd like to get some
> opinions on:

> - Should we print binary unit prefixes (MiB, GiB, ...) since that would be
> technically correct?

I'm not a fan of the technically correct base 2 units -- they're still
relatively rarely used, and I've spent most of my life using kB to
mean 1024, not 1000.

> - Should counters (like object counts) be formatted with a base 10
> multiplier or  a multiplier woth base 2?

I prefer base 2 for any dimensionless quantities (or rates thereof) in
computing.  Metres and kilograms go in base 10, bytes go in base 2.

It's all very subjective and a matter of opinion of course, and my
feelings aren't particularly strong :-)

John

> My proposal would be to both use binary unit prefixes and use base 10
> multipliers for counters. I think this aligns with user expectations as well
> as the relevant standard(s?).
>
> Best,
> Jan
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux