htop icon indicating copy to clipboard operation
htop copied to clipboard

Is the CPU% 4.3 right on FreeBSD?

Open fundon opened this issue 4 years ago • 5 comments

FreeBSD: 13.0
htop: 3.0.4
Screen Shot 2021-04-16 at 17 27 56

fundon avatar Apr 16 '21 09:04 fundon

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.

cgzones avatar Apr 18 '21 14:04 cgzones

Screen Shot 2021-04-23 at 14 57 26

fundon avatar Apr 23 '21 07:04 fundon

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.

gaod avatar Apr 26 '21 19:04 gaod

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 avatar Apr 02 '22 16:04 fasterit

For recent 3.3.0-dev:

  • https://github.com/htop-dev/htop/issues/1208

grahamperrin avatar Mar 12 '23 09:03 grahamperrin