Skip to content
This repository was archived by the owner on Dec 22, 2019. It is now read-only.
This repository was archived by the owner on Dec 22, 2019. It is now read-only.

High CPU consumption with no traffic in the system #13

Description

@baransu

Right now we run few infinite loops all the time, even when we don't have any running processes. That makes our CPU to not like us that much as we would like to. To experience that, left any example after all messages have been sent and all tasks have been handled.

I have little experience with Unix processes so I have no idea if it's a good idea to kill workers and respawn them when there is new traffic in the system - I assume it's not.
I believe together we can figure something out!

Activity

  1. leostera commented on Mar 7, 2019

    @leostera
    Owner

    @tcoopman brought up on Discord today that we'd probably want a way of sleeping an actor until it's received a new message. After some discussion, having a Sleep(next_state) behavior seemed ideal to put the evaluation of an actor on-hold until there are new messages for it to consume.

  2. tcoopman commented on Mar 7, 2019

    @tcoopman
    Contributor

    As a way of tracking this, if your run example one without any changes to the code, you can see the high cpu usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions