| ▲ | 0c3ca83 2 hours ago | ||||||||||||||||||||||
Why would you use uring to read from an mmap? Couldn't you just memcpy? | |||||||||||||||||||||||
| ▲ | Asmod4n 2 hours ago | parent | next [-] | ||||||||||||||||||||||
To be more precise: i use that map to send assets out directly to clients from a zip file. Its a new web server i am building and its the fastest way i could find out. Just switching from epoll to liburing made the server ~45% faster too, its ridiculous. It can serve 10 gigabyte per second with a single thread, or around 10 million responses per second with h2 and 32 multiplexed requests. I had to write a new http load generator for that since i couldn't find one which could generate enough load to saturate my server or be fast enough to withstand it. | |||||||||||||||||||||||
| ▲ | jeffbee 2 hours ago | parent | prev [-] | ||||||||||||||||||||||
Maybe they meant using IORING_OP_MADVISE with MADV_WILLNEED to bring ranges into memory? | |||||||||||||||||||||||
| |||||||||||||||||||||||