X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=memory.c;h=b5a71d5397fd852d42e2fb73f4d45b2a90d38e3b;hp=e5680389072e1f13910dea1b87a1d9c3bd7fd570;hb=e48676baa53074b429460c71fb2c9e0ac7ac7d8c;hpb=5d4a35e1c90938710f8d3ef99d30bfbc23ebc4c6 diff --git a/memory.c b/memory.c index e5680389..b5a71d53 100644 --- a/memory.c +++ b/memory.c @@ -6,7 +6,6 @@ #include #include "fio.h" -#include "os.h" static void *pinned_mem; @@ -72,6 +71,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; }