-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Profile the matrix.org master process #7670
Comments
I threw py-spy at a the main process and was not able to find anything terrible obvious, but there were a few observations:
Additionally I spent some time looking at a dummy worker that wasn't working on anything (it was essentially sitting idle, but using ~20% CPU). I was able to profile that without the
These numbers are all made worse if you look at only what has the gil. |
In addition to seeing something like the above it also seems that a decent amount of time is spent in:
When including all threads, most of them are waiting in |
The current work in flight from this is to move some background tasks out of the main process. |
I don't think we're planning to do any more profiling in the near future. |
Then determine what else should be migrated away.
The text was updated successfully, but these errors were encountered: