util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Howard Lum <hlum@synamedia.com>
Cc: "util-linux@vger.kernel.org" <util-linux@vger.kernel.org>
Subject: Re: lscpu and Intel Turbo Boost
Date: Tue, 9 Mar 2021 10:18:27 +0100	[thread overview]
Message-ID: <20210309091827.hogycuynnyplc7q4@ws.net.home> (raw)
In-Reply-To: <CWXP265MB17020C63B570E7B6BA256F6EC8B69@CWXP265MB1702.GBRP265.PROD.OUTLOOK.COM>

On Mon, Feb 01, 2021 at 02:16:41PM +0000, Howard Lum wrote:
> I have a server with a Power Regulator control. When this is set for
> "OS Control Mode", the lscpu output reports CPU max MHz and CPU min
> MHz info. When the control is set to "Static High Performance", the
> lscpu output only reports "CPU MHz" and the value is the same as the
> CPU base frequency. Does this mean that the CPU is operating at the
> base frequency and is not using Intel Turbo Boost?

"CPU MHz" is value from /proc/cpuinfo usually from the first CPU and
it's actual frequency of the processor. 

The next lscpu version will not show this value as it's useless to 
show frequency for the first CPU if you have more CPUs ...

And the min and max are read from

  /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
  /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_min_freq

and describe frequency range.

Use grep "cpu MHz" /proc/cpuinfo to get the current frequencies, or in
the next lscpu version it will be possible use use "lscpu -eCPU,MHZ"
to get the same.

I have no clue about "Intel Turbo Boost" and how Linux report/use it,
but I guess that "cpu MHz" from /proc/cpuinfo is what kernel thinks
about the speed.

    Karel


-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com


      reply	other threads:[~2021-03-09  9:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CWXP265MB17024AF7959F3132E333F6DAC8BC0@CWXP265MB1702.GBRP265.PROD.OUTLOOK.COM>
2021-02-01 14:16 ` lscpu and Intel Turbo Boost Howard Lum
2021-03-09  9:18   ` Karel Zak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210309091827.hogycuynnyplc7q4@ws.net.home \
    --to=kzak@redhat.com \
    --cc=hlum@synamedia.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).