cirocosta / stress

Single-purpose tools to stress resources
29 stars 4 forks source link

http middleware flooding - server and client #7

Open cirocosta opened 7 years ago

cirocosta commented 7 years ago

server: N-threads event-based (epoll) just accepting our pre-made payload and nothing more with cpu-affinity on each of these threads. client: minimal http 1.1 complient chunk (totally static w/ in-memory fd sending with splice - see http://man7.org/linux/man-pages/man2/vmsplice.2.html). We can probably epoll on these writes and use the same idea as in the server

What are we looking for?

cirocosta commented 7 years ago

On the receiving sides (both parties have a sending and a receiving side) we can read the packets but drop entirely the content by using MSG_TRUNC (with recv instead of just read)