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

Is the CPU% 4.3 right on FreeBSD? #602

Open
fundon opened this issue Apr 16, 2021 · 5 comments · May be fixed by #606
Open

Is the CPU% 4.3 right on FreeBSD? #602

fundon opened this issue Apr 16, 2021 · 5 comments · May be fixed by #606
Labels
bug 🐛 Something isn't working FreeBSD 👹 FreeBSD related issues
Milestone

Comments

@fundon
Copy link

fundon commented Apr 16, 2021

FreeBSD: 13.0
htop: 3.0.4

Screen Shot 2021-04-16 at 17 27 56

@BenBE BenBE added FreeBSD 👹 FreeBSD related issues question ❔ Further information is requested labels Apr 16, 2021
@fundon fundon changed the title FreeBSD CPUs Is the CPU% 4.3 right on FreeBSD? Apr 16, 2021
@cgzones cgzones linked a pull request Apr 18, 2021 that will close this issue
@cgzones
Copy link
Member

cgzones commented Apr 18, 2021

Could you try out the patch in #606?

Seems like all other tools on FreeBSD scale the CPU usage on the process swap time.

In my virtual machine kern.ccpu is 0, so the scale factor is just 1.0.

@BenBE BenBE added this to the 3.0.6 milestone Apr 18, 2021
@BenBE BenBE added bug 🐛 Something isn't working and removed question ❔ Further information is requested labels Apr 18, 2021
@fundon
Copy link
Author

fundon commented Apr 23, 2021

Screen Shot 2021-04-23 at 14 57 26

@gaod
Copy link
Contributor

gaod commented Apr 26, 2021

Could you try out the patch in #606?

Seems like all other tools on FreeBSD scale the CPU usage on the process swap time.

In my virtual machine kern.ccpu is 0, so the scale factor is just 1.0.

The kern.ccpu is set to 0 in ULE scheduler.

@BenBE BenBE modified the milestones: 3.1.0, 3.1.1 Jul 15, 2021
@fasterit
Copy link
Member

fasterit commented Apr 2, 2022

Testing report: htop on FreeBSD seems to be showing CPU=0 for every task, both in v3.1.2 as well as current main. This draft PR does not have any impact on this.
The FreeBSD 13.0-RELEASE-p10 VM I test in gets kernelFScale=2048 from the sysctl. That seems right but somewhere down the line the CPU calc seems to be broken.
/DLange

@fasterit fasterit modified the milestones: 3.2.0, 3.2.1 Apr 26, 2022
@BenBE BenBE modified the milestones: 3.2.1, 3.2.2 May 21, 2022
@BenBE BenBE modified the milestones: 3.2.2, 3.3.0 Jan 31, 2023
@grahamperrin
Copy link

For recent 3.3.0-dev:

@BenBE BenBE modified the milestones: 3.3.0, 3.4.0 Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working FreeBSD 👹 FreeBSD related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants