From: Jens Axboe Date: Tue, 13 Mar 2007 20:41:38 +0000 (+0100) Subject: Print informative error when we hit the max number of files open X-Git-Tag: fio-1.14~9 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8ab538730857ce3a29c5f00fb55b967468751ec9;hp=bbf6b5401cdc0b20c405a064356ab0abb27c52d0 Print informative error when we hit the max number of files open Signed-off-by: Jens Axboe --- 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; }