Skip to content
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

Bastion will busy-loop consuming 100% of one CPU #148

Closed
rtyler opened this issue Dec 31, 2019 · 1 comment
Closed

Bastion will busy-loop consuming 100% of one CPU #148

rtyler opened this issue Dec 31, 2019 · 1 comment

Comments

@rtyler
Copy link

rtyler commented Dec 31, 2019

  • Version: 0.3.1
  • Platform: Linux/amd64
  • Subsystem:

The snippet below will cause a CPU-intensive busyloop, which results in a CPU being occupied by an otherwise idle process. I would expect that the program below should instead have practically zero overhead

use bastion::prelude::*;

fn main() {
    println!("Starting to spin...check top(1)");
    Bastion::init();
    Bastion::start();
    Bastion::block_until_stopped();
}

The pull request #147 represents the first part of the work, but does not completely address the issue

@vertexclique
Copy link
Member

Fixed by #147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants