summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEarle F. Philhower, III <earlephilhower@yahoo.com>2019-10-08 16:13:02 -0700
committerEarle F. Philhower, III <earlephilhower@yahoo.com>2019-10-08 16:13:02 -0700
commit43661a66a8c3b9fb5ff28b463c9ab0aac91a0355 (patch)
tree83e5946f443904f95967910b21156ca500f982e0
parent998baa29f571df9d2e4b626bedd317a2fd28c68a (diff)
downloadfio-43661a66a8c3b9fb5ff28b463c9ab0aac91a0355.tar.gz
fio-43661a66a8c3b9fb5ff28b463c9ab0aac91a0355.tar.bz2
Increase MAX_FILELOCKS for highly parallel IO test
When running hundreds of threads and collecting CLAT, SLAT, IOS on a per-thread basis, FIO can need a lot of file locks to complete. When it can't get them, it gives the cryptic error message: > fio: filelock.c:182: __fio_lock_file: Assertion `!trylock' failed. Bump the maximum from 128 to 1024 to give headroom for high core count, high thread count testing.
-rw-r--r--filelock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filelock.c b/filelock.c
index cc98aafc..7e92f63d 100644
--- a/filelock.c
+++ b/filelock.c
@@ -22,7 +22,7 @@ struct fio_filelock {
unsigned int references;
};
-#define MAX_FILELOCKS 128
+#define MAX_FILELOCKS 1024
static struct filelock_data {
struct flist_head list;