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

federation device list updates cause high CPU on main process of matrix.org #8613

Open
michaelkaye opened this issue Oct 21, 2020 · 0 comments
Labels
A-Performance Performance, both client-facing and admin-facing

Comments

@michaelkaye
Copy link
Contributor

Something causes handling of m.device_list_updates over federation to take a lot of CPU time

See matrix.org homeserver.log from ~ 2020-10-21 12:45 to 2020-10-21 13:24 for logs

from a flamegraph, 95% of time was spent in synapse/storage/util/id_generators.py152

100percent

I couldn't narrow it down to one particular request or homeserver that was causing this high CPU; there wasn't a spike in requests from a single homeserver as far as I could see; and request volumes were fairly low.

The database appeared unloaded at the time, and this CPU usage had a knock-on efffect on other endpoints relying on the main process.

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

2 participants