Changeset 348f81d5 for benchmark/io/http/options.cfa
- Timestamp:
- Feb 23, 2021, 4:02:27 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b664af2
- Parents:
- a06023f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/options.cfa
ra06023f r348f81d5 13 13 #include <kernel.hfa> 14 14 #include <parseargs.hfa> 15 #include <stdlib.hfa> 15 16 16 17 #include <stdlib.h> … … 36 37 37 38 { // cluster 39 1, // nclusters; 38 40 1, // nprocs; 39 41 1, // nworkers; … … 50 52 // bool iokpoll = false; 51 53 unsigned nentries = 16; 54 bool isolate = false; 52 55 53 56 … … 56 59 { 'c', "cpus", "Number of processors to use", options.clopts.nprocs}, 57 60 { 't', "threads", "Number of worker threads to use", options.clopts.nworkers}, 61 {'\0', "isolate", "Create one cluster per processor", isolate, parse_settrue}, 58 62 {'\0', "log", "Enable logs", options.log, parse_settrue}, 59 63 {'\0', "accept-backlog", "Maximum number of pending accepts", options.socket.backlog}, … … 85 89 nentries = v; 86 90 } 91 if(isolate) { 92 options.clopts.nclusters = options.clopts.nprocs; 93 options.clopts.nprocs = 1; 94 } 87 95 options.clopts.params.num_entries = nentries; 96 options.clopts.instance = alloc(options.clopts.nclusters); 97 options.clopts.thrd_cnt = alloc(options.clopts.nclusters); 98 options.clopts.cltr_cnt = 0; 99 for(i; options.clopts.nclusters) { 100 options.clopts.thrd_cnt[i] = 0; 101 } 102 88 103 89 104 // if( fixedfd ) {
Note: See TracChangeset
for help on using the changeset viewer.