Changeset 4f762d3 for benchmark/io/http/options.cfa
- Timestamp:
- Feb 19, 2021, 1:48:14 PM (2 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d60d30e
- Parents:
- 78da4ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/options.cfa
r78da4ab r4f762d3 46 46 47 47 void 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; 54 51 unsigned nentries = 16; 55 52 … … 65 62 {'\0', "cache-size", "Size of the cache to use, if set to small, will uses closes power of 2", options.file_cache.size }, 66 63 {'\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 }, 73 67 {'\0', "numentries", "Number of I/O entries", nentries }, 74 68 … … 93 87 options.clopts.params.num_entries = nentries; 94 88 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 // } 97 92 98 if( fixedfd) {99 options.file_cache.fixed_fds = true;100 }93 // if( sqkpoll ) { 94 // options.file_cache.fixed_fds = true; 95 // } 101 96 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 // } 113 100 114 101 if( left[0] == 0p ) { return; }
Note: See TracChangeset
for help on using the changeset viewer.