Closed subbu05 closed 4 years ago
Have you tried to put some load onto the OS and see some real cpu usage?
Yes with load I see all 0's Also the array size is 4 instead 5.
The output is only 1 total usage for each cpu core, which in your case is 4 cores.
I will test tomorrow in a centos vm.
Also the array size is 4 instead 5.
How many cores are returned by cpu.Info or cpu.Counts?
I have mac with 4 core CPU.
cpu.Percent
gets its data from /proc/stat
(via cpu.Times()), can you paste its content here? Thanks in advance.
The number of cores seems right to me by the way.
@subbu05 I would appreciate if you could report the result of the following https://github.com/shirou/gopsutil/issues/568#issuecomment-446009859
No news from reporter.
Output [0 0 0 0]