Ignore:
Timestamp:
Feb 19, 2021, 1:48:14 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d60d30e
Parents:
78da4ab
Message:

Fix httpforall after changes to I/O

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/options.cfa

    r78da4ab r4f762d3  
    4646
    4747void parse_options( int argc, char * argv[] ) {
    48         bool subthrd = false;
    49         bool eagrsub = false;
    50         bool fixedfd = false;
    51         bool sqkpoll = false;
    52         bool iokpoll = false;
    53         unsigned sublen = 16;
     48        // bool fixedfd = false;
     49        // bool sqkpoll = false;
     50        // bool iokpoll = false;
    5451        unsigned nentries = 16;
    5552
     
    6562                {'\0', "cache-size",     "Size of the cache to use, if set to small, will uses closes power of 2", options.file_cache.size },
    6663                {'\0', "list-files",     "List the files in the specified path and exit", options.file_cache.list, parse_settrue },
    67                 { 's', "submitthread",   "If set, cluster uses polling thread to submit I/O", subthrd, parse_settrue },
    68                 { 'e', "eagersubmit",    "If set, cluster submits I/O eagerly but still aggregates submits", eagrsub, parse_settrue},
    69                 { 'f', "fixed-fds",      "If set, files are open eagerly and pre-registered with the cluster", fixedfd, parse_settrue},
    70                 { 'k', "kpollsubmit",    "If set, cluster uses IORING_SETUP_SQPOLL, implies -f", sqkpoll, parse_settrue },
    71                 { 'i', "kpollcomplete",  "If set, cluster uses IORING_SETUP_IOPOLL", iokpoll, parse_settrue },
    72                 {'\0', "submitlength",   "Max number of submitions that can be submitted together", sublen },
     64                // { 'f', "fixed-fds",      "If set, files are open eagerly and pre-registered with the cluster", fixedfd, parse_settrue},
     65                // { 'k', "kpollsubmit",    "If set, cluster uses IORING_SETUP_SQPOLL, implies -f", sqkpoll, parse_settrue },
     66                // { 'i', "kpollcomplete",  "If set, cluster uses IORING_SETUP_IOPOLL", iokpoll, parse_settrue },
    7367                {'\0', "numentries",     "Number of I/O entries", nentries },
    7468
     
    9387        options.clopts.params.num_entries = nentries;
    9488
    95         options.clopts.params.poller_submits = subthrd;
    96         options.clopts.params.eager_submits  = eagrsub;
     89        // if( fixedfd ) {
     90        //      options.file_cache.fixed_fds = true;
     91        // }
    9792
    98         if( fixedfd ) {
    99                 options.file_cache.fixed_fds = true;
    100         }
     93        // if( sqkpoll ) {
     94        //      options.file_cache.fixed_fds = true;
     95        // }
    10196
    102         if( sqkpoll ) {
    103                 options.clopts.params.poll_submit = true;
    104                 options.file_cache.fixed_fds = true;
    105         }
    106 
    107         if( iokpoll ) {
    108                 options.clopts.params.poll_complete = true;
    109                 options.file_cache.open_flags |= O_DIRECT;
    110         }
    111 
    112         options.clopts.params.num_ready = sublen;
     97        // if( iokpoll ) {
     98        //      options.file_cache.open_flags |= O_DIRECT;
     99        // }
    113100
    114101        if( left[0] == 0p ) { return; }
Note: See TracChangeset for help on using the changeset viewer.