> On 20 Dec 2019, at 04:33, lampahome 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
>
--
https://mail.python.org/mailman/listinfo/python-list