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

jobs shows too high CPU usage #8919

Closed
septatrix opened this issue Apr 28, 2022 · 1 comment
Closed

jobs shows too high CPU usage #8919

septatrix opened this issue Apr 28, 2022 · 1 comment
Assignees
Milestone

Comments

@septatrix
Copy link
Contributor

The output of jobs sometimes shows much too high CPU usage stats for background jobs.
It seems somewhat racy as for processes with normal usage it is either very high or 0%. yes seems to always show a too high result.

  • fish, version 3.4.1
  • 5.16.19-200.fc35.x86_64 (Fedora 35)
~ $ yes >/dev/null &
~ $ jobs
Job	Group	CPU	State	Command
1	1324566	99039434%	running	yes >/dev/null &
~ $ ps -p $last_pid -o %cpu,cmd
%CPU CMD
99.3 yes
@ridiculousfish ridiculousfish self-assigned this May 2, 2022
@ridiculousfish
Copy link
Member

Nice find. Bisects to 7a1c005.

@ridiculousfish ridiculousfish added this to the fish 3.5.0 milestone May 2, 2022
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