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

Barry Scott barry at barrys-emacs.org
Fri Dec 20 10:01:41 EST 2019



> On 20 Dec 2019, at 04:33, lampahome <pahome.chen at mirlab.org> wrote:
> 
> 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?

cProfile is telling you how long the code is waiting for epoll to return.
It is not telling that epoll is a problem.

Barry



> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 



More information about the Python-list mailing list