Ignore:
Timestamp:
Jun 8, 2022, 7:24:27 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
137974ae
Parents:
bbf61838
Message:

Removed webserver feature to have multiple clusters (it never actually worked)

File:
1 edited

Legend:

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

    rbbf61838 r8c58e73  
    4242
    4343        { // cluster
    44                 1,     // nclusters;
    4544                1,     // nprocs;
    4645                1,     // nworkers;
     
    5352
    5453void parse_options( int argc, char * argv[] ) {
    55         // bool fixedfd = false;
    56         // bool sqkpoll = false;
    57         // bool iokpoll = false;
    5854        unsigned nentries = 0;
    59         bool isolate = false;
    60 
    61 
    6255        static cfa_option opt[] = {
    6356                { 'p', "port",           "Port the server will listen on", options.socket.port},
    6457                { 'c', "cpus",           "Number of processors to use", options.clopts.nprocs},
    6558                { 't', "threads",        "Number of worker threads to use", options.clopts.nworkers},
    66                 {'\0', "isolate",        "Create one cluster per processor", isolate, parse_settrue},
    6759                {'\0', "log",            "Enable logs", options.log, parse_settrue},
    6860                {'\0', "sout",           "Redirect standard out to file", options.reopen_stdout},
     
    9991                nentries = v;
    10092        }
    101         if(isolate) {
    102                 options.clopts.nclusters = options.clopts.nprocs;
    103                 options.clopts.nprocs = 1;
    104         }
    10593        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;
    11296
    11397
Note: See TracChangeset for help on using the changeset viewer.