Changes in / [95b3a9c:9fb1367]
- Files:
-
- 3 edited
-
benchmark/io/http/http_ring.cpp (modified) (6 diffs)
-
libcfa/configure.ac (modified) (2 diffs)
-
libcfa/prelude/defines.hfa.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/http_ring.cpp
r95b3a9c r9fb1367 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; -
libcfa/configure.ac
r95b3a9c r9fb1367 169 169 AH_TEMPLATE([CFA_HAVE_IOSQE_FIXED_FILE],[Defined if io_uring support is present when compiling libcfathread and supports the flag FIXED_FILE.]) 170 170 AH_TEMPLATE([CFA_HAVE_IOSQE_IO_DRAIN],[Defined if io_uring support is present when compiling libcfathread and supports the flag IO_DRAIN.]) 171 AH_TEMPLATE([CFA_HAVE_IOSQE_ASYNC],[Defined if io_uring support is present when compiling libcfathread and supports the flag ASYNC.]) 171 172 AH_TEMPLATE([CFA_HAVE_IOSQE_IO_LINK],[Defined if io_uring support is present when compiling libcfathread and supports the flag IO_LINK.]) 172 173 AH_TEMPLATE([CFA_HAVE_IOSQE_IO_HARDLINK],[Defined if io_uring support is present when compiling libcfathread and supports the flag IO_HARDLINK.]) 173 AH_TEMPLATE([CFA_HAVE_IOSQE_ASYNC],[Defined if io_uring support is present when compiling libcfathread and supports the flag ASYNC.])174 AH_TEMPLATE([CFA_HAVE_IOSQE_BUFFER_SELECT],[Defined if io_uring support is present when compiling libcfathread and supports the flag BUFFER_SELEC.])175 174 AH_TEMPLATE([CFA_HAVE_SPLICE_F_FD_IN_FIXED],[Defined if io_uring support is present when compiling libcfathread and supports the flag SPLICE_F_FD_IN_FIXED.]) 176 175 AH_TEMPLATE([CFA_HAVE_IORING_SETUP_ATTACH_WQ],[Defined if io_uring support is present when compiling libcfathread and supports the flag IORING_SETUP_ATTACH_WQ.]) … … 183 182 184 183 define(ioring_ops, [IORING_OP_NOP,IORING_OP_READV,IORING_OP_WRITEV,IORING_OP_FSYNC,IORING_OP_READ_FIXED,IORING_OP_WRITE_FIXED,IORING_OP_POLL_ADD,IORING_OP_POLL_REMOVE,IORING_OP_SYNC_FILE_RANGE,IORING_OP_SENDMSG,IORING_OP_RECVMSG,IORING_OP_TIMEOUT,IORING_OP_TIMEOUT_REMOVE,IORING_OP_ACCEPT,IORING_OP_ASYNC_CANCEL,IORING_OP_LINK_TIMEOUT,IORING_OP_CONNECT,IORING_OP_FALLOCATE,IORING_OP_OPENAT,IORING_OP_CLOSE,IORING_OP_FILES_UPDATE,IORING_OP_STATX,IORING_OP_READ,IORING_OP_WRITE,IORING_OP_FADVISE,IORING_OP_MADVISE,IORING_OP_SEND,IORING_OP_RECV,IORING_OP_OPENAT2,IORING_OP_EPOLL_CTL,IORING_OP_SPLICE,IORING_OP_PROVIDE_BUFFERS,IORING_OP_REMOVE_BUFFER,IORING_OP_TEE]) 185 define(ioring_flags, [IOSQE_FIXED_FILE,IOSQE_IO_DRAIN,IOSQE_ IO_LINK,IOSQE_IO_HARDLINK,IOSQE_ASYNC,IOSQE_BUFFER_SELECT,SPLICE_F_FD_IN_FIXED,IORING_SETUP_ATTACH_WQ])184 define(ioring_flags, [IOSQE_FIXED_FILE,IOSQE_IO_DRAIN,IOSQE_ASYNC,IOSQE_IO_LINK,IOSQE_IO_HARDLINK,SPLICE_F_FD_IN_FIXED,IORING_SETUP_ATTACH_WQ]) 186 185 187 186 define(ioring_from_decls, [ -
libcfa/prelude/defines.hfa.in
r95b3a9c r9fb1367 149 149 150 150 /* Defined if io_uring support is present when compiling libcfathread and 151 supports the flag BUFFER_SELEC. */152 #undef CFA_HAVE_IOSQE_BUFFER_SELECT153 154 /* Defined if io_uring support is present when compiling libcfathread and155 151 supports the flag FIXED_FILE. */ 156 152 #undef CFA_HAVE_IOSQE_FIXED_FILE
Note:
See TracChangeset
for help on using the changeset viewer.