RE: GiB vs GB

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

 



> -----Original Message-----
> From: fio-owner@xxxxxxxxxxxxxxx [mailto:fio-owner@xxxxxxxxxxxxxxx] On
> Behalf Of danielabuggie .
> Sent: Thursday, December 10, 2015 10:28 PM
...
> Subject: Re: GiB vs GB
> 
> This unfortunately is a bit more confusing than considering 1kB =
> 1024, but rather per the man page, 1KiB = 1000 (emphasis mine):
> 
>        int    SI  integer:  a whole number, possibly containing a suffix
> denoting the base unit of the value.  Accepted suffixes are ‘k’, ’M’,
> ’G’,
> ’T’, and ’P’, denoting kilo (1024), mega (1024^2), giga (1024^3), tera
> (1024^4), and peta (1024^5) respectively. If prefixed with ’0x’, the
> value
> is assumed to be base 16 (hexadecimal). A suffix may include a trailing
> ’b’, for instance ’kb’ is identical to ’k’....
> 
> ***
> You can  specify  a  base  10 value by using ’KiB’, ’MiB’,’GiB’, etc.
> This is useful for disk drives where values are often given in base 10
> values. Specifying ’30GiB’ will get you 30*1000^3 *bytes.
> ***
...

In 2014 I proposed a patch to make the HOWTO and manpage 
descriptions describe what fio actually does:
	http://www.spinics.net/lists/fio/msg02701.html

The reply at the time was we should fix the code to
be more sensible, but I haven't gotten around to it yet.

I'd also like to change the output to use proper units.
Use binary during runtime to avoid division overhead, 
and show both binary and decimal on exit.

---
Robert Elliott, HPE Persistent Memory

��.n��������+%������w��{.n�������^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux