Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

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

v0.69x
open
Volker
WebGUI (143)
5
2012-10-28
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

1 2 > >> (Page 1 of 2)
  • 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

     
    Attachments
  • 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

     
1 2 > >> (Page 1 of 2)