Replies: 1 comment 2 replies
-
Hi. Sorry for not getting back to you sooner. I did not notice your question until now. Currently, some parts of Moka is not fully optimized, and its housekeeper will wake up and run every 300 milliseconds even when there might be nothing to do. Under the current implementation, the housekeeper will acquire an internal lock, check if there is any task (and run the task), and then unlock and schedule its next run using scheduled_theadpool crate. However, I am expecting it will have very small overhead when there is no task available. I am not sure how to interpret this flamegraph. I see ( |
Beta Was this translation helpful? Give feedback.
-
I notice Moka seems to be constantly using CPU (an extremely small amount, but it is curious)
Here's a flamegraph showing moka using 89% of the CPU time my application is running. In this time span less than 100 reads and writes combined were made. I'm curious if as my application scales up this high CPU use will stay the same or get worse?
My OS reported that in this time my binary used 17:50 of CPU time, meaning 15.575 of that time was just spent on Moka doing whatever it does, not exactly great.
Beta Was this translation helpful? Give feedback.
All reactions