-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yastack benchmark #8
Comments
So in the tests I ran while working on https://github.com/envoyproxy/nighthawk the difference between Envoy and nginx wasn't close to being as pronounced as the results above. One thing I notice is that the one test uses Having said that, sometimes there's also good reason to sanity check reported numbers. For an example of that involving wrk2, Envoy, and HAProxy, see envoyproxy/envoy#5536 (comment) |
I ran comparison tests between YAStack based Envoy and standalone Envoy with the direct response set up. Now YAStack based Envoy runs three threads underneath, out of which I found the eal-intr-thread and the ev-source-exe thread to be vying for CPU time. So I separated out these two tasks to two different cores and found standalone Envoy and YAStack Envoy performance to be exactly the same. I have been using the https://github.com/rakyll/hey tool for my tests. My fstack config file looks similar to what @dragonorloong has provided. Envoy Config file
|
cc - @dragonorloong @oschaaf @ratnadeepb My initial tests only did a comparison between vanilla envoy v/s yastack. That had encouraging numbers. I used wrk for my tests and was using a single-threaded version of yastack. I was interested in per-core throughput, rps, ssl-rps, ssl-throughput etc. One thing I did notice is that nginx's event collection does not have indirections like libevent. The indirections in libevent have a small cost associated with it. But the benefit is that any other network processing code can integrate with dpdk infused libevent. One more test I ran was libevent-on-dpdk (without envoy) and those numbers also looked good. I am a little too held up with something else right now, but plan to revisit this in sometime. |
I don't know if there is a problem with my configuration. The performance of yastack is much worse than nginx
Traffic Path:
wrk -> envoy(f-stack) -> nginx
wrk -> nginx(linux kernel) -> nginx
Modify code, always use f-stack socket
envoy config file:
f-stack config file:
nginx use kernel network stack, config file:
test result:
The text was updated successfully, but these errors were encountered: