7
submitted 11 months ago by phiresky to c/[email protected]

Here's how you can profile the lemmy server cpu usage with perf (a standard linux tool):

Run this to record 10 s of CPU samples: perf record -p $(pidof lemmy_server) --call-graph=lbr -a -- sleep 10

Then run this to show the output perf report.

Screenshot example:

Post your result here. There might be something obvious causing high usage.

top 2 comments
sorted by: hot top controversial new old
[-] [email protected] 1 points 11 months ago

Thank you for sharing. Storage I/O tips?

The default Docker install, last time I looked IIRC, has rust logging cranked really high.

[-] kbotc 1 points 10 months ago
this post was submitted on 23 Jun 2023
7 points (100.0% liked)

Lemmy Server Performance

419 readers
1 users here now

Lemmy Server Performance

lemmy_server uses the Diesel ORM that automatically generates SQL statements. There are serious performance problems in June and July 2023 preventing Lemmy from scaling. Topics include caching, PostgreSQL extensions for troubleshooting, Client/Server Code/SQL Data/server operator apps/sever operator API (performance and storage monitoring), etc.

founded 11 months ago
MODERATORS