Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Cpu CLOCK graph

  1. #1
    Join Date
    Dec 2012
    Location
    Brazil
    Beans
    90
    Distro
    Ubuntu 12.04 Precise Pangolin

    Cpu CLOCK graph

    Is there a way I can monitor the CLOCK of my CPU with a graph? Like http://www.cmg.org/measureit/issues/mit31/m_31_2b.gif

    That image is just an idea, any graph monitor would be nice, it must record the last hours no matter how much time it's on.
    Last edited by Juniorr; June 3rd, 2013 at 12:00 AM.

  2. #2
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: Cpu usage graph

    My choice is Psensor...
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  3. #3
    Join Date
    Dec 2012
    Location
    Brazil
    Beans
    90
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cpu usage graph

    Oh, just realised, I need a CPU clock monitor, not a usage one.

  4. #4
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Cpu CLOCK graph

    each core functions independently, you can get the current frequencies with
    cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
    with the 3.10 kernel on some newer Intel CPUs it is
    cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq (requires root, but you can chmod it to 444 to bypass that)
    not sure how to make a graph but that can be used to get the base info, you will probably need the max frequency
    cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
    cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq

    divide numbers by 1000 to convert to MHz divide by 1000 again to get GHz
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  5. #5
    Join Date
    Dec 2012
    Location
    Brazil
    Beans
    90
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cpu CLOCK graph

    Those directories doesn't exist. Just adding to this thread, aside from Jupiter (discontinued), is there a way of setting the cpu frequency to performance? I want to switch to Linux but my frames per second drop on some Valve Source Games, like Team Fortress 2, for example.

  6. #6
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Cpu CLOCK graph

    they should exist, one for every core
    Code:
    ~$ ls /sys/devices/system/cpu/cpu*/cpufreq/
    /sys/devices/system/cpu/cpu0/cpufreq/:
    affected_cpus     cpuinfo_transition_latency     scaling_governor
    bios_limit        related_cpus                   scaling_max_freq
    cpb               scaling_available_frequencies  scaling_min_freq
    cpuinfo_cur_freq  scaling_available_governors    scaling_setspeed
    cpuinfo_max_freq  scaling_cur_freq               stats
    cpuinfo_min_freq  scaling_driver
    
    /sys/devices/system/cpu/cpu1/cpufreq/:
    affected_cpus     cpuinfo_transition_latency     scaling_governor
    bios_limit        related_cpus                   scaling_max_freq
    cpb               scaling_available_frequencies  scaling_min_freq
    cpuinfo_cur_freq  scaling_available_governors    scaling_setspeed
    cpuinfo_max_freq  scaling_cur_freq               stats
    cpuinfo_min_freq  scaling_driver
    
    /sys/devices/system/cpu/cpu2/cpufreq/:
    affected_cpus     cpuinfo_transition_latency     scaling_governor
    bios_limit        related_cpus                   scaling_max_freq
    cpb               scaling_available_frequencies  scaling_min_freq
    cpuinfo_cur_freq  scaling_available_governors    scaling_setspeed
    cpuinfo_max_freq  scaling_cur_freq               stats
    cpuinfo_min_freq  scaling_driver
    
    /sys/devices/system/cpu/cpu3/cpufreq/:
    affected_cpus     cpuinfo_transition_latency     scaling_governor
    bios_limit        related_cpus                   scaling_max_freq
    cpb               scaling_available_frequencies  scaling_min_freq
    cpuinfo_cur_freq  scaling_available_governors    scaling_setspeed
    cpuinfo_max_freq  scaling_cur_freq               stats
    cpuinfo_min_freq  scaling_driver
    in xubuntu i use some genmon applets to control/monitor it

    https://github.com/GM-Script-Writer-...pu-freq-plugin
    if you call the script like this it should do what you want
    sudo cpu-freq-plugin 0 --set
    it should be able to set it on any DE
    Last edited by pqwoerituytrueiwoq; June 3rd, 2013 at 05:06 AM.
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  7. #7
    Join Date
    Dec 2012
    Location
    Brazil
    Beans
    90
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cpu CLOCK graph

    Should it be?
    Attached Images Attached Images

  8. #8
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Cpu CLOCK graph

    How is you bios configured, for example on a AMD system you would need cool n quiet enabled
    overclocking can have the same effect
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  9. #9
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,521
    Distro
    Ubuntu Development Release

    Re: Cpu CLOCK graph

    If those directories don't exist on your system, then you do not have CPU frequency scaling, either because of a BIOS setting (as pq... mentioned) or because your CPU does not support it. In that case your CPU will already be in "performance" mode.

    From an earlier posting:
    each core functions independently, you can get the current frequencies with
    cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
    with the 3.10 kernel on some newer Intel CPUs it is
    cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
    It does not have to be 13.10. And there can be incorrect information displayed as to current CPU frequency for at least some intel CPU's and some motherboards. They actually don't function independently. The only way to know for certain is to use turbostat.

    See also this and this
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  10. #10
    Join Date
    Dec 2012
    Location
    Brazil
    Beans
    90
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cpu CLOCK graph

    I always had Cool and Quiet disabled on my BIOS, now that I enabled it that directory appears.
    I'm just not sure how it affects the overall result since I believe the BIOS commands it all.

    I also had "indicator-cpufreq" installed and it falied to load. Now (with QaQ enabled) it loads fine and give's me options to

    Conservative
    OnDemand
    PowerSave
    Performance

    Also:

    juniorr@juniorr-desktop:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
    3000000
    3000000
    juniorr@juniorr-desktop:~$ cat /sys/devices/system/cpu/cpu?/cpufreq/scaling_governor
    performance
    performance
    juniorr@juniorr-desktop:~$

    __________________________________________________ ____________________________________

    NOw I jsut have to test if the game will work properly
    Last edited by Juniorr; June 3rd, 2013 at 04:51 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •