Cpu frequency Cpu usage Cpu graph won't display.
This project has moved to github - see https://github.com/freenas
Brought to you by:
cochard,
mattolander
Please make a screenshot and attach it to this BR.
If 'cannot get cpu load' is displayed FreeBSD is not able to get the required data from the hardware (via sysctl call).
E.g. on 3 tested systems FreeBSD can only extract the CPU temperature on a P4 system, on all other tested system (AMD64 and Intel Core2) it is not possible to get the thermal diode data.
BTW this is a FreeBSD limitation. With FreeBSD 8 extracting hardware informations should be optimized via the new sensor framework, but till then it might work on misc systems only.
Regards
Volker
File Added: status_display_freq.jpg
CPU usage and frequency is displayed
status page
graph page
Although cosmetic this was working perfectly on previous builds of 0.69
Why did this change?
Does it has something to do with: "Get SNMP module 'netgraph' working. Fixed by adding missing kernel modules."?
Lol i spoke to soon.
The system was pretty idle and was sitting on 0% cpuload this caused the the graph not to show.I stressed the system to approx 25% cpuload and the graph started working.Also i saw the cpu load on the status page change.
Leaves two bugs.
1.When idle cpu load on 0% graph won't show.
2.System frequency not shown on status page (it is shown in the summary on top)
Hi,
the CPU frequency is not the same as displayed in 'Platform i386-embedded on AMD Athlon(tm) 64 Processor 3200+ running at 1994MHz'. 'CPU frequency' displayes the current internal CPU frequency, for example my AMD system has 1990MHz, if it goes into low power mode 500Mhz is displayed. The following sysctl value is displayed:
sysctl dev.cpu.0.freq
Please execute this on console or SSH to get the value. I assume FreeBSD is not able to get this. Please post the following output also:
sysctl dev.cpu
For example:
freenas:~# sysctl dev.cpu
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=_PR_.CPU1
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 1990
dev.cpu.0.freq_levels: 1990/67000 1791/64700 995/28600
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00%
Please, also post the output:
sysctl kern.cp_time
$ sysctl dev.cpu
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=_PR_.CPU0
dev.cpu.0.%pnpinfo: HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00%
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=_PR.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.cx_supported: C1/0
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00%
$ sysctl kern.cp_time
kern.cp_time: 1037 0 3598 5000 1637691
$ sysctl dev.cpu.0.freq
no output there
status graph crash
Look at the attached file __freenas_status_graph_cpu_crashed.pdf
The status graph crashes after the cpuload goes to 0%
In this case i was copying a file through gigalan and stopped the transfer the cpu load went from 24% to 0% and the graph stopped working.
Thanks for your answers.
This means FreeBSD is not able to get the current CPU frequency. I've modified the WebGUI to not display the table row if frequency is not get. Seems the cpufreq kernel module does not like your CPU :-)
Can you please execute the following and post the output. The best would be during cpu usage > 0 and while 0 (error is displayed).
freenas:~# sysctl kern.cp_time && sleep 2 && sysctl kern.cp_time
Thanks
Volker
Here you go
0% cpu load
$ sysctl kern.cp_time && sleep 2 && sysctl kern.cp_time
kern.cp_time: 16407 0 30634 15989 2615094
kern.cp_time: 16411 0 30653 15991 2615602
approx 25% cpuload
$ sysctl kern.cp_time && sleep 2 && sysctl kern.cp_time
kern.cp_time: 17628 0 33600 18013 2645865
kern.cp_time: 17654 0 33718 18098 2646174
OK,
your posted values looks OK and i can't reproduce your error on my system. But i found out some situations that causes the graph to get confused. I hope if fixed the problem with that code change, see http://freenas.svn.sourceforge.net/viewvc/freenas?view=rev&revision=4228
If the problem still exists please reopen bug report. But right at the moment i did not have any idea what problem might cause this error.
Regards
Volker
0.69 Kwisatz Haderach (revision 4231)
Still the same problem cpu graph only starts when cpu load > 0
Cpu frequency is indeed gone from the status page in my case.
regards
Dirk