Comment
Comment by spc476
strace was not on my radar. I know it exists, it just never occurred to me to use it. So, I tried it. Here are the results:
ioctl() (that, combined with epoll_ctl() and epoll_wait(), which was the actual problem) does show up in the top 10, but it doesn't scream "I'm the issue!"