summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-03-23 08:23:51 +0100
committerJens Axboe <jens.axboe@oracle.com>2007-03-23 08:23:51 +0100
commitd3eb7d7ccd126c45c67f8aacc9634e7705e98037 (patch)
treef32d9c02c7bcf30c0897e6d00e772a39dc11c86e /memory.c
parentcb25df61fbe19065b41bee131d19335d615c676b (diff)
downloadfio-d3eb7d7ccd126c45c67f8aacc9634e7705e98037.tar.gz
fio-d3eb7d7ccd126c45c67f8aacc9634e7705e98037.tar.bz2
Print help info on huge page shmget() returning EINVAL
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/memory.c b/memory.c
index e5680389..8d6f9557 100644
--- a/memory.c
+++ b/memory.c
@@ -72,6 +72,8 @@ int allocate_io_mem(struct thread_data *td)
td_verror(td, errno, "shmget");
if (geteuid() != 0 && errno == ENOMEM)
log_err("fio: you may need to run this job as root\n");
+ if (errno == EINVAL && td->o.mem_type == MEM_SHMHUGE)
+ log_err("fio: check that you have free huge pages and that hugepage-size is correct.\n");
return 1;
}