You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.
I run tornado with aiomysql on ubuntu 16.04, python version is 3.5.2.
I only execute a simple select db query on mysql.
pyflame shows cpu is high idle, but nmon command shows cpu is full load.
It's so strange?
The text was updated successfully, but these errors were encountered:
This looks pretty normal to me. You can use -x to exclude the idle times, but you probably already know that.
My guess is that if you use GDB to attach to the process, you will see that it's frequently blocking in the Tornado event loop. IIRC, you'll see a call to something like __epoll_wait() as frame 0 as reported by the GDB bt command. Try getting a backtrace from GDB a dozen times or so, and if Pyflame says your program is idle about 50% of the time then you should see the __epoll_wait() call about 50% of the time as well.
I run tornado with aiomysql on ubuntu 16.04, python version is 3.5.2.
I only execute a simple select db query on mysql.
pyflame shows cpu is high idle, but nmon command shows cpu is full load.
It's so strange?
The text was updated successfully, but these errors were encountered: