summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorRobert Elliott <elliott@hpe.com>2016-12-22 14:50:49 -0600
committerJens Axboe <axboe@fb.com>2017-01-02 18:19:49 -0700
commit420b104a3f6ba4328b6b167808f71bb7849102ec (patch)
tree8fe2a95ac6c43b88f58819c451582ee09d60d240 /memory.c
parentaf7f87cb59fb3fc29a7d9f56f03f7b42680a45f2 (diff)
Clean up unit prefixes for binary multiples in comments and prints
Change comments and prints that are referring to values based on binary multiples to use IEC 80000-13 prefixes for binary multiples rather than SI prefixes for decimal multiples (e.g., KiB, MiB, and GiB rather than KB, MB, and GB). Includes a fix for the rate_min print that was printing "KB/s" although it was really printing bytes per second. Includes a fix for goptions confusing the PB and TB units (while changing them to PiB and TiB). Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory.c b/memory.c
index 9124117..9e73f10 100644
--- a/memory.c
+++ b/memory.c
@@ -33,13 +33,13 @@ int fio_pin_memory(struct thread_data *td)
dprint(FD_MEM, "pinning %llu bytes\n", td->o.lockmem);
/*
- * Don't allow mlock of more than real_mem-128MB
+ * Don't allow mlock of more than real_mem-128MiB
*/
phys_mem = os_phys_mem();
if (phys_mem) {
if ((td->o.lockmem + 128 * 1024 * 1024) > phys_mem) {
td->o.lockmem = phys_mem - 128 * 1024 * 1024;
- log_info("fio: limiting mlocked memory to %lluMB\n",
+ log_info("fio: limiting mlocked memory to %lluMiB\n",
td->o.lockmem >> 20);
}
}