Endpoint is broken, port is closed, just random number.
If I run python code I'll see 100% CPU usage in top output.
If I run it with command sudo perf stat -e 'syscalls:*epoll_wait*' python3 test_wait.py
I'll get
Performance counter stats for 'python3 test_wait.py':
114,265 syscalls:sys_enter_epoll_wait
114,265 syscalls:sys_exit_epoll_wait
So, in 3 seconds it made 100k+ epoll_wait() calls.
I am not expert in asyncio, puppeteer, C programming, syscals, etc. But I think it is not OK :) What do you think?
Code:
Endpoint is broken, port is closed, just random number. If I run python code I'll see 100% CPU usage in
top
output. If I run it with commandsudo perf stat -e 'syscalls:*epoll_wait*' python3 test_wait.py
I'll getSo, in 3 seconds it made 100k+
epoll_wait()
calls.I am not expert in asyncio, puppeteer, C programming, syscals, etc. But I think it is not OK :) What do you think?