X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=1dfaa1f06d95cc248d09ea4b4e98ac08a0d07c8e;hp=effe63c5663bc17bb5fc22e252cc7d32b6a6107b;hb=2b386d2569c9078ca9790c4e6d318ec3835b8739;hpb=303032ae4e13c7ac10b8198c40df98d95a4524a6 diff --git a/init.c b/init.c index effe63c5..1dfaa1f0 100644 --- a/init.c +++ b/init.c @@ -118,6 +118,11 @@ static struct option l_opts[FIO_NR_OPTIONS] = { .has_arg = required_argument, .val = 'x', }, + { + .name = "alloc-size", + .has_arg = required_argument, + .val = 'a', + }, { .name = NULL, }, @@ -826,6 +831,8 @@ static void usage(const char *name) printf("\t--readonly\tTurn on safety read-only checks, preventing" " writes\n"); printf("\t--section=name\tOnly run specified section in job file\n"); + printf("\t--alloc-size=kb\tSet smalloc pool to this size in kb" + " (def 1024)\n"); } #ifdef FIO_INC_DEBUG @@ -897,6 +904,9 @@ static int parse_cmd_line(int argc, char *argv[]) while ((c = getopt_long_only(argc, argv, "", l_opts, &lidx)) != -1) { switch (c) { + case 'a': + smalloc_pool_size = atoi(optarg); + break; case 't': def_timeout = atoi(optarg); break;