My website is powered by tornado
. When doing the stress testing, I found python3
used almost all cpu while redis-server
used a little. So, I did a profile, but the profile result makes me confused:
It seems that all redis-py
operations (r.xxx()
and lua_xxx()
) takes huge cpu time.
I have no idea why python3
eats all cpu since if the redis request is blocked, it should sleep thus less cpu usage. So, could you please tell me where could the problem be? Thanks!