Skip to content

High CPU Utilization #275

Answered by odygrd
jgentner2 asked this question in Q&A
Mar 23, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

hey and thanks for checking out the library. Since the library is designed mainly to offer low latency the logging thread is constantly spinning even when there are no events to log.

The thread will spin and check if there are any messages to log if not it will do some housekeeping work.
You can configure it to sleep if you want but I won't recommend you to set a sleep higher than 1 us. The reason for that is that it needs to wake up to pick up the log messages, because if it doesn't and the log messages are too many they can cause a queue allocation that will impact the hot threads.
Also you can pin the logging thread to a non critical core https://github.com/odygrd/quill/blob/master/qui…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@niclar
Comment options

Answer selected by jgentner2
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants