Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Profile the matrix.org master process #7670

Closed
neilisfragile opened this issue Jun 10, 2020 · 4 comments
Closed

Profile the matrix.org master process #7670

neilisfragile opened this issue Jun 10, 2020 · 4 comments
Labels
A-Performance Performance, both client-facing and admin-facing

Comments

@neilisfragile
Copy link
Contributor

Then determine what else should be migrated away.

@neilisfragile neilisfragile added p1 A-Performance Performance, both client-facing and admin-facing labels Jun 10, 2020
@clokep clokep self-assigned this Sep 4, 2020
@clokep
Copy link
Member

clokep commented Sep 4, 2020

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 --nonblocking flag which gave slightly more interesting results:

These numbers are all made worse if you look at only what has the gil.

@clokep
Copy link
Member

clokep commented Sep 14, 2020

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 new_transaction.

@clokep
Copy link
Member

clokep commented Oct 8, 2020

The current work in flight from this is to move some background tasks out of the main process.

@richvdh
Copy link
Member

richvdh commented Jan 12, 2022

I don't think we're planning to do any more profiling in the near future.

@richvdh richvdh closed this as completed Jan 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Performance Performance, both client-facing and admin-facing
Projects
None yet
Development

No branches or pull requests

3 participants