How to improve epoll speed when recv from kernel via netlink?

lampahome pahome.chen at mirlab.org
Thu Dec 19 23:33:25 EST 2019


I tried to receive msg from kernel via netlink of socket.

And I use epoll to receive netlink events whenever it comes from kernel to
user space.

But I found the performance is poor e.g. epoll costs 90% time of execution
time after I profile it by cProfile module.

Are there any tips to improve this?


More information about the Python-list mailing list