Ignore:
Timestamp:
Aug 28, 2020, 1:26:28 PM (17 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
8e3034d
Parents:
8e2cb4a
Message:

Fixed some compilation errors.
Fixed file descriptor support in progress.

File:
1 edited

Legend:

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

    r8e2cb4a rd11d6eb  
    3939
    4040const char * parse_options( int argc, char * argv[] ) {
    41         bool uthrdpo = false;
    4241        bool subthrd = false;
    4342        bool eagrsub = false;
     
    5756                {'C', "cache-size",     "Size of the cache to use, if set to small, will uses closes power of 2", options.file_cache.size },
    5857                {'l', "list-files",     "List the files in the specified path and exit", options.file_cache.list, parse_settrue },
    59                 {'u', "userthread",     "If set, cluster uses user-thread to poll I/O", uthrdpo, parse_settrue },
    6058                {'s', "submitthread",   "If set, cluster uses polling thread to submit I/O", subthrd, parse_settrue },
    6159                {'e', "eagersubmit",    "If set, cluster submits I/O eagerly but still aggregates submits", eagrsub, parse_settrue},
     
    7169        parse_args( argc, argv, opt, opt_cnt, "[OPTIONS]... [PATH]\ncforall http server", left );
    7270
    73         if( uthrdpo ) {
    74                 options.clopts.flags |= CFA_CLUSTER_IO_POLLER_USER_THREAD;
    75         }
    76 
    77         if( subthrd ) {
    78                 options.clopts.flags |= CFA_CLUSTER_IO_POLLER_THREAD_SUBMITS;
    79         }
    80 
    81         if( eagrsub ) {
    82                 options.clopts.flags |= CFA_CLUSTER_IO_EAGER_SUBMITS;
    83         }
     71        options.clopts.params.poller_submits = subthrd;
     72        options.clopts.params.eager_submits  = eagrsub;
    8473
    8574        if( fixedfd ) {
     
    8877
    8978        if( sqkpoll ) {
    90                 options.clopts.flags |= CFA_CLUSTER_IO_KERNEL_POLL_SUBMITS;
     79                options.clopts.params.poll_submit = true;
    9180                options.file_cache.fixed_fds = true;
    9281        }
    9382
    9483        if( iokpoll ) {
    95                 options.clopts.flags |= CFA_CLUSTER_IO_KERNEL_POLL_COMPLETES;
     84                options.clopts.params.poll_complete = true;
    9685                options.file_cache.open_flags |= O_DIRECT;
    9786        }
    9887
    99         options.clopts.flags |= (sublen << CFA_CLUSTER_IO_BUFFLEN_OFFSET);
     88        options.clopts.params.num_ready = sublen;
    10089
    10190        if( left[0] == 0p ) { return "."; }
Note: See TracChangeset for help on using the changeset viewer.