sysstat / sysstat

Performance monitoring tools for Linux
https://sysstat.github.io/
GNU General Public License v2.0
2.97k stars 444 forks source link

iostat/sar - kB/s MB/s should be kiB/s and MiB/s #313

Open Pitterling opened 2 years ago

Pitterling commented 2 years ago

as units are transformed by 1024 they should be correctly labeled according to IEC

https://simple.wikipedia.org/wiki/Kilobyte https://simple.wikipedia.org/wiki/Megabyte https://simple.wikipedia.org/wiki/Mebibyte

sysstat commented 2 years ago

Yep, you're not wrong... But I'm afraid that modifying fields names used by sysstat could break third-party programs or scripts that parse sysstat commands' output. Anyway things have been made clear in sysstat man pages where we say that we actually use kibibytes, mebibytes, etc.

junka commented 2 years ago

I opened an issue related to this. Maybe we can change the values instead of the labels? https://github.com/sysstat/sysstat/issues/316

sysstat commented 2 years ago

No, changing the values would also lead to confusion. No good solution for something which has been there for years. I noticed that sysstat's FAQ was mute on this. I should probably add an entry about it...

Pitterling commented 2 years ago

You could add 2 new options providing the correct label/value outputs.