Menu

#481 Cpu frequency Cpu usage Cpu graph won't display.

v0.69x
open
Volker
WebGUI (143)
5
2019-12-09
2009-01-04
Dirk
No

0.69 Kwisatz Haderach (revision 4221)
built on Sun Jan 4 13:22:35 UTC 2009

On the system status page i don't see an output for Cpu frequency and Cpu usage.
Cpu Temp is shown and this "i386-embedded on Intel Pentium III running at 999MHz" is also shown (b.t.w two cores)
On the status graph page the output graph for cpu load is defective showing "cannot get cpu load"

Discussion

  • Volker

    Volker - 2009-01-04

    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

     
  • Volker

    Volker - 2009-01-04

    File Added: status_display_freq.jpg

     
  • Volker

    Volker - 2009-01-04

    CPU usage and frequency is displayed

     
  • Dirk

    Dirk - 2009-01-04

    status page

     
  • Dirk

    Dirk - 2009-01-04

    graph page

     
  • Dirk

    Dirk - 2009-01-04

    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."?

     
  • Dirk

    Dirk - 2009-01-04

    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)

     
  • Volker

    Volker - 2009-01-04

    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%

     
  • Volker

    Volker - 2009-01-04

    Please, also post the output:

    sysctl kern.cp_time

     
  • Dirk

    Dirk - 2009-01-05

    $ 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

     
  • Dirk

    Dirk - 2009-01-05

    $ sysctl dev.cpu.0.freq

    no output there

     
  • Dirk

    Dirk - 2009-01-05

    status graph crash

     
  • Dirk

    Dirk - 2009-01-05

    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.

     
  • Volker

    Volker - 2009-01-05

    Thanks for your answers.

    $ sysctl dev.cpu.0.freq
    no output there

    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

     
  • Dirk

    Dirk - 2009-01-05

    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

     
  • Volker

    Volker - 2009-01-05

    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

     
  • Dirk

    Dirk - 2009-01-06

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.