-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU Usage #65
Comments
Can confirm, I also have this problem: Riot 0.0.8 from opam, OCaml 5.1.1, Linux (I can give more sys information if you need) |
I was also able to reproduce on OCaml 5.2.0~alpha (altho the memory usage looked better!) |
From what I can tell so far, something is happening with blink to make it happen (we can chat on discord more if you want) |
OK, maybe it's not blink, I'm very confused haha, i can send you link in VOD to watch if you have any ideas |
Thanks @tjdevries for the context and comments! ✨ I've been digging and found 3 specific things that could've be responsible. 2 of those are now fixed. If you have code examples that I could try that would help me narrow down on the 3rd or others. |
Hey @leostera, I was looking into this, and from what I can tell it seems to be caused by having multiple schedulers, and one of the schedulers ending up with a list of skippable messages. It's non deterministic though. I tested using 2 schedulers and 10 spawned processes. Every once and a while a scheduler gets stuck spinning on a mailbox full of skippable messages. I am trying to dig in more, but don't fully understand the architecture yet. |
This issue got reported first here leostera/minttea#38 – but Github doesn't let me transfer an issue across organizations.
Possible culprits:
wait_pids
efficiently #71The text was updated successfully, but these errors were encountered: