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