Skip to content

is SQPOLL performance is worse for network related tasks? #1137

Answered by isilence
hvrsim asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not surprised. People often think that SQPOLL is a "just make it better/faster/cooler" flag, but it's not. It was a trade off from day one, you bouncing caches, spending more CPU cycles, and now it lacks even more features a normal ring supports (e.g. DEFER_TASKRUN).

My recommendation: try normal rings first, add all performance features when applicable, DEFER_TASKRUN, registered buffers, multishot, registered rings, and so on and so on. IFF you're happy how it performs and bored, try to use and fine tune SQPOLL, not expecting much from it. And don't forget to look for CPU utilisation, it might be wasting a lot of cycles of another core while you're not looking at it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hvrsim
Comment options

Answer selected by axboe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants