[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HWP vs "xenpm get-cpufreq-..."


  • To: Jason Andryuk <jandryuk@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 15 Jan 2024 17:50:26 +0100
  • Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 15 Jan 2024 16:50:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 15.01.2024 17:45, Jason Andryuk wrote:
> On Mon, Jan 15, 2024 at 11:04 AM Jan Beulich <jbeulich@xxxxxxxx> wrote:
>> I thought I'd try hwp on a SapphireRapids system, and of course - short
>> of easy other ways of seeing whether it actually has any apparent
>> effect - I've looked at "xenpm get-cpufreq-states" output. Just to find
>> that according to this, the system never enters any of the designated
>> Pn states (all CPUs are always claimed to be in P0), while at the same
>> time the P0 residencies remain in the hundreds of milliseconds. The
>> latter suggests CPUs do leave P0, yet it's then unclear what state they
>> are in during such time periods.
> 
> The `xenpm get-cpufreq-states` output may be stale under HWP.  If
> normally the acpi-cpufreq driver is updating them, they won't be
> updated under HWP.  I'll have to look into that more, but I guess they
> shouldn't be returned under HWP.

Likely - anything that conveys no real information (and hence is at
best confusing) would better be avoided.

>> I was also a little puzzled when comparing "xenpm get-cpufreq-para"
>> output with hwp against that with acpi-cpufreq: The latter lists a range
>> of 800MHz ... 2501MHz, while with hwp base is 2500MHz and max is 4800MHz.
>>
>> Do you have any explanation for these apparent anomalies?
> 
> The 1 in 2501 indicates the ACPI entry for the turbo frequencies.
> It's a limitation of the ACPI tables, AFAIU.  The tables weren't
> designed for turbo mode where the thermal constraints dynamically
> limit the maximum speed.  On systems I've looked at, there would also
> be a 2500MHz ACPI entry, which matches the HWP base.
> 
> The HWP 2500MHz & 4800MHz values are taken from cpuid output - I feel
> confident they are correct.  The output of `xenpm get-cpufreq-average`
> under HWP looks reasonable for scaling all the way up to 4800MHz
> (which can only be hit briefly before throttling down) - I think I've
> only seen ~4700MHz as a maximum in my use, and they it may drop to
> ~4200MHz for extended preiods.  Maybe try that command on your test
> system?

I'll try to remember to check that next time round.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.