Changes in benchmark/io/http/http_ring.cpp [c235179:eeb4866]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/http_ring.cpp
rc235179 reeb4866 20 20 socklen_t *addrlen; 21 21 int flags; 22 unsigned cnt;23 22 } acpt; 24 23 … … 434 433 // Accept our first connection 435 434 // May not take effect until io_uring_submit_and_wait 436 for(unsigned i = 0; i < opt.acpt.cnt; i++) { 437 connection::accept(ring, opt); 438 } 435 connection::accept(ring, opt); 439 436 440 437 int reset = 1; // Counter to print stats once in a while … … 531 528 unsigned entries = 256; // number of entries per ring/kernel thread 532 529 unsigned backlog = 262144; // backlog argument to listen 533 unsigned preaccept = 1; // start by accepting X per threads534 530 bool attach = false; // Whether or not to attach all the rings 535 531 bool sqpoll = false; // Whether or not to use SQ Polling … … 538 534 // Arguments Parsing 539 535 int c; 540 while ((c = getopt (argc, argv, "t:p:e:b: c:aS")) != -1) {536 while ((c = getopt (argc, argv, "t:p:e:b:aS")) != -1) { 541 537 switch (c) 542 538 { … … 552 548 case 'b': 553 549 backlog = atoi(optarg); 554 break;555 case 'c':556 preaccept = atoi(optarg);557 550 break; 558 551 case 'a': … … 688 681 thrd_opts[i].acpt.addrlen = (socklen_t*)&addrlen; 689 682 thrd_opts[i].acpt.flags = 0; 690 thrd_opts[i].acpt.cnt = preaccept;691 683 thrd_opts[i].endfd = efd; 692 684 thrd_opts[i].ring = &thrd_rings[i].storage;
Note: See TracChangeset
for help on using the changeset viewer.