File: README.Debian

package info (click to toggle)
fio 3.25-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,812 kB
  • sloc: ansic: 69,429; python: 4,155; sh: 4,058; makefile: 749; yacc: 204; lex: 184
file content (37 lines) | stat: -rw-r--r-- 1,749 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
How flexible I/O tester uses measurement units
----------------------------------------------

fio uses the opposite symbol for kibibytes/kilobytes (Kb/KiB) than
ISO 80000-1 by default in *jobfiles*. The user readable output however
adheres to the standard, while the parseable output for scripts also
uses the opposite symbol.

This leads to weird scenarios like:

% fio --name=rand-read --bs=4k --size=1MiB --iodepth=64 --runtime=10 --rw=randread
rand-read: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=psync, iodepth=64
[…]
% ls -l rand-read.0.0                                                             
-rw-r--r-- 1 root root 1000000 Mär 26 13:10 rand-read.0.0

In case you decide to write fio jobs in a way that adheres to the ISO
standard, you can use:

% fio --name=rand-read --kb_base=1000 --bs=4KiB --size=1MiB --iodepth=64 --runtime=10 --rw=randread
rand-read: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=psync, iodepth=64
[…]
% ls -l rand-read.0.0                                                                              
-rw-r--r-- 1 root root 1048576 Mär 26 13:19 rand-read.0.0

Note: In this case the block size needs to be in "KiB" as well, otherwise
it would be just 4000 bytes in this example.

I received no feedback from upstream developers regarding this issue. As I
decided to keep upstream behavior rather than diverting from it, using
'--kib_base=1000' is your option in case you decide to adhere to the
standard. For further discussion see:

fio: uses the opposite symbol for kibibytes/kilobytes (Kb/KiB) than ISO 80000-1
https://bugs.debian.org/872321

-- Martin Steigerwald <martin.steigerwald@proact.de>, Mon, Mar 26 13:29:45 +0200