Add clue for ENOMEM hugepage allocation
authorJens Axboe <jens.axboe@oracle.com>
Thu, 19 Jul 2007 08:09:45 +0000 (10:09 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 19 Jul 2007 08:09:45 +0000 (10:09 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
memory.c

index efbea04c2c992ee0f6c47d4230e1197428506db4..46eb852a63ed69d59d71972d777009eddbe11a19 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -70,6 +70,8 @@ static int alloc_mem_shm(struct thread_data *td)
                                log_err("fio: check that you have free huge pages and that hugepage-size is correct.\n");
                        else if (errno == ENOSYS)
                                log_err("fio: your system does not appear to support huge pages.\n");
+                       else if (errno == ENOMEM)
+                               log_err("fio: no huge pages available, do you need to alocate some? See HOWTO.\n");
                }
                
                return 1;