KeyDB icon indicating copy to clipboard operation
KeyDB copied to clipboard

[NEW] Enhancement using SO_ATTACH_REUSEPORT_CBPF for keydb

Open osevan opened this issue 2 years ago • 0 comments

Hi keydb devs,

In my Benchmarks with nginx patched with SO_ATTACH_REUSEPORT_CBPF

My wrk Benchmarks increased 6-11% and my latency lowered.

SO_ATTACH_REUSEPORT_CBPF is for socket pinning to CPU for better affinity.

Could we try to make new configure option at compile time to compile with SO_ATTACH_REUSEPORT_CBPF for users like me?

SO_ATTACH_REUSEPORT_CBPF support, so it may become much more mainstream in the not too distant future. Like the libreactor implementation used in this benchmark, NGINX also has a process-per-core architecture and supports CPU pinning, so adding SO_ATTACH_REUSEPORT_CBPF support is potentially a big win if the OS is tuned to match.

Thanks and

Best regards.

osevan avatar Sep 24 '23 17:09 osevan