From 8ab538730857ce3a29c5f00fb55b967468751ec9 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 13 Mar 2007 21:41:38 +0100 Subject: [PATCH 1/1] Print informative error when we hit the max number of files open Signed-off-by: Jens Axboe --- filesetup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filesetup.c b/filesetup.c index 0a4e77ef..678e8365 100644 --- a/filesetup.c +++ b/filesetup.c @@ -299,6 +299,8 @@ int generic_open_file(struct thread_data *td, struct fio_file *f) td_verror(td, __e, "open"); if (__e == EINVAL && td->odirect) log_err("fio: destination does not support O_DIRECT\n"); + if (__e == EMFILE) + log_err("fio: try reducing/setting openfiles (failed at %u of %u)\n", td->nr_open_files, td->nr_files); return 1; } -- 2.25.1