projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cb25df6
)
Print help info on huge page shmget() returning EINVAL
author
Jens Axboe
<jens.axboe@oracle.com>
Fri, 23 Mar 2007 07:23:51 +0000
(08:23 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 23 Mar 2007 07:23:51 +0000
(08:23 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
memory.c
patch
|
blob
|
blame
|
history
diff --git
a/memory.c
b/memory.c
index e5680389072e1f13910dea1b87a1d9c3bd7fd570..8d6f95579a3366cb633226237965c5de971243e4 100644
(file)
--- 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;
}