Changeset 8c58e73 for benchmark/io/http/options.cfa
- Timestamp:
- Jun 8, 2022, 7:24:27 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 137974ae
- Parents:
- bbf61838
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/options.cfa
rbbf61838 r8c58e73 42 42 43 43 { // cluster 44 1, // nclusters;45 44 1, // nprocs; 46 45 1, // nworkers; … … 53 52 54 53 void parse_options( int argc, char * argv[] ) { 55 // bool fixedfd = false;56 // bool sqkpoll = false;57 // bool iokpoll = false;58 54 unsigned nentries = 0; 59 bool isolate = false;60 61 62 55 static cfa_option opt[] = { 63 56 { 'p', "port", "Port the server will listen on", options.socket.port}, 64 57 { 'c', "cpus", "Number of processors to use", options.clopts.nprocs}, 65 58 { 't', "threads", "Number of worker threads to use", options.clopts.nworkers}, 66 {'\0', "isolate", "Create one cluster per processor", isolate, parse_settrue},67 59 {'\0', "log", "Enable logs", options.log, parse_settrue}, 68 60 {'\0', "sout", "Redirect standard out to file", options.reopen_stdout}, … … 99 91 nentries = v; 100 92 } 101 if(isolate) {102 options.clopts.nclusters = options.clopts.nprocs;103 options.clopts.nprocs = 1;104 }105 93 options.clopts.params.num_entries = nentries; 106 options.clopts.instance = alloc(options.clopts.nclusters); 107 options.clopts.thrd_cnt = alloc(options.clopts.nclusters); 108 options.clopts.cltr_cnt = 0; 109 for(i; options.clopts.nclusters) { 110 options.clopts.thrd_cnt[i] = 0; 111 } 94 options.clopts.instance = 0p; 95 options.clopts.thrd_cnt = 0; 112 96 113 97
Note: See TracChangeset
for help on using the changeset viewer.