Add --max-jobs/-j command line option
And shrink OSX max default number of jobs supported. OSX has,
by default, a very small shared memory segment available.
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/fio.h b/fio.h
index 16866dd..fc64e3a 100644
--- a/fio.h
+++ b/fio.h
@@ -557,7 +557,7 @@
#define RAND_MAP_IDX(f, b) (TO_MAP_BLOCK(f, b) / BLOCKS_PER_MAP)
#define RAND_MAP_BIT(f, b) (TO_MAP_BLOCK(f, b) & (BLOCKS_PER_MAP - 1))
-#define MAX_JOBS (2048)
+#define REAL_MAX_JOBS 2048
#define td_non_fatal_error(e) ((e) == EIO || (e) == EILSEQ)