Re: formatting bytes and object counts in ceph status ouput

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

 



On 18-01-02 11:43 AM, Jan Fajerski 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?

+1

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

+1

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?).

Most users expect that non-size counters - like object counts - use base-10, and size counters use base-2 units. Ceph's "standard" of using base-2 everywhere was confusing for me as well initially, but I got used to that... Still, wouldn't mind if that would get sorted out once and for all.

--
Piotr Dałek
piotr.dalek@xxxxxxxxxxxx
https://www.ovh.com/us/
_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux