Changeset 69237cd for benchmark/io


Ignore:
Timestamp:
Jul 8, 2020, 2:13:32 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
1c49dc5
Parents:
47746a2
Message:

added latest option on readv benchmark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/readv.cfa

    r47746a2 r69237cd  
    5858                static struct option options[] = {
    5959                        BENCH_OPT_LONG
    60                         {"bufsize",      required_argument, 0, 'b'},
    61                         {"userthread",   no_argument      , 0, 'u'},
    62                         {"submitthread", no_argument      , 0, 's'},
    63                         {"submitlength", required_argument, 0, 'l'},
     60                        {"bufsize",       required_argument, 0, 'b'},
     61                        {"userthread",    no_argument      , 0, 'u'},
     62                        {"submitthread",  no_argument      , 0, 's'},
     63                        {"eagersubmit",   no_argument      , 0, 'e'},
     64                        {"kpollsubmit",   no_argument      , 0, 'k'},
     65                        {"kpollcomplete", no_argument      , 0, 'i'},
     66                        {"submitlength",  required_argument, 0, 'l'},
    6467                        {0, 0, 0, 0}
    6568                };
    6669
    6770                int idx = 0;
    68                 int opt = getopt_long(argc, argv, BENCH_OPT_SHORT "b:usl:", options, &idx);
     71                int opt = getopt_long(argc, argv, BENCH_OPT_SHORT "b:usekil:", options, &idx);
    6972
    7073                const char * arg = optarg ? optarg : "";
     
    8891                                flags |= CFA_CLUSTER_IO_POLLER_THREAD_SUBMITS;
    8992                                break;
     93                        case 'e':
     94                                flags |= CFA_CLUSTER_IO_EAGER_SUBMITS;
     95                                break;
     96                        case 'k':
     97                                flags |= CFA_CLUSTER_IO_KERNEL_POLL_SUBMITS;
     98                                break;
     99                        case 'i':
     100                                flags |= CFA_CLUSTER_IO_KERNEL_POLL_COMPLETES;
     101                                break;
    90102                        case 'l':
    91103                                sublen = strtoul(arg, &end, 10);
     
    103115                                fprintf( stderr, "  -u, --userthread         If set, cluster uses user-thread to poll I/O\n" );
    104116                                fprintf( stderr, "  -s, --submitthread       If set, cluster uses polling thread to submit I/O\n" );
     117                                fprintf( stderr, "  -e, --eagersubmit        If set, cluster submits I/O eagerly but still aggregates submits\n" );
     118                                fprintf( stderr, "  -k, --kpollsubmit        If set, cluster uses IORING_SETUP_SQPOLL\n" );
     119                                fprintf( stderr, "  -i, --kpollcomplete      If set, cluster uses IORING_SETUP_IOPOLL\n" );
     120                                fprintf( stderr, "  -l, --submitlength=LEN   Max number of submitions that can be submitted together\n" );
    105121                                exit(EXIT_FAILURE);
    106122                }
Note: See TracChangeset for help on using the changeset viewer.