Score:0

read cpu frequency from cpufreq-info vs /proc/cpuinfo

us flag

Ubuntu 20.04 Comparing the following two ways of getting current cpu frequency:

  1. cpufreq-info | grep "current CPU frequency"

    example output:

     current CPU frequency is 4.16 GHz.
     current CPU frequency is 4.15 GHz.
     current CPU frequency is 4.20 GHz.
     current CPU frequency is 4.19 GHz.
     current CPU frequency is 4.22 GHz.
     current CPU frequency is 4.19 GHz.
     current CPU frequency is 4.17 GHz.
     current CPU frequency is 4.20 GHz.
     current CPU frequency is 4.16 GHz.
     current CPU frequency is 4.18 GHz.
     current CPU frequency is 4.24 GHz.
     current CPU frequency is 4.19 GHz.
    
  2. cat /proc/cpuinfo | grep "MHz"

    example output

     cpu MHz : 3200.000
     cpu MHz : 3200.000
     cpu MHz : 4182.742
     cpu MHz : 3200.000
     cpu MHz : 3200.000
     cpu MHz : 3200.000
     cpu MHz : 3200.000
     cpu MHz : 3200.000
     cpu MHz : 3200.000
     cpu MHz : 3200.000
     cpu MHz : 3200.000
     cpu MHz : 4198.937
    

Why are the results different and which is more accurate?

Thanks.

FedKad avatar
cn flag
CPU frequency is changing depending on the CPU usage.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.