You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/09/02 07:15:17 UTC

[GitHub] [cloudstack] weizhouapache commented on issue #6680: Agent unable to retrieve CPU Speed of host after upgrading to 4.17.0.1

weizhouapache commented on issue #6680:
URL: https://github.com/apache/cloudstack/issues/6680#issuecomment-1235153443

   > @shwstppr
   > 
   > Will try to give as much inforamtion as possible:
   > 
   > lscpu
   > 
   > ```
   > Architecture:                    x86_64
   > CPU op-mode(s):                  32-bit, 64-bit
   > Byte Order:                      Little Endian
   > Address sizes:                   48 bits physical, 48 bits virtual
   > CPU(s):                          48
   > On-line CPU(s) list:             0-47
   > Thread(s) per core:              2
   > Core(s) per socket:              24
   > Socket(s):                       1
   > NUMA node(s):                    1
   > Vendor ID:                       AuthenticAMD
   > CPU family:                      25
   > Model:                           1
   > Model name:                      AMD EPYC 7413 24-Core Processor
   > Stepping:                        1
   > Frequency boost:                 enabled
   > CPU MHz:                         2892.925
   > CPU max MHz:                     2650.0000
   > CPU min MHz:                     1500.0000
   > BogoMIPS:                        5289.83
   > Virtualization:                  AMD-V
   > ```
   > 
   > virsh nodeinfo
   > 
   > ```
   > CPU model:           x86_64
   > CPU(s):              48
   > CPU frequency:       1494 MHz
   > CPU socket(s):       1
   > Core(s) per socket:  24
   > Thread(s) per core:  2
   > NUMA cell(s):        1
   > Memory size:         263476088 KiB
   > ```
   > 
   > virsh sysinfo
   > 
   > ```
   > <sysinfo type='smbios'>
   >   <processor>
   >     <entry name='socket_destination'>CPU1</entry>
   >     <entry name='type'>Central Processor</entry>
   >     <entry name='family'>Zen</entry>
   >     <entry name='manufacturer'>AMD</entry>
   >     <entry name='signature'>Family 25, Model 1, Stepping 1</entry>
   >     <entry name='version'>AMD EPYC 7413 24-Core Processor</entry>
   >     <entry name='external_clock'>2000 MHz</entry>
   >     <entry name='max_speed'>3900 MHz</entry>
   >     <entry name='status'>Populated, Enabled</entry>
   >     <entry name='serial_number'>Not Specified</entry>
   >     <entry name='part_number'>Not Specified</entry>
   >   </processor>
   > </sysinfo>
   > ```
   > 
   > virsh capabilities
   > 
   > ```
   > <capabilities>
   >   <host>
   >     <cpu>
   >       <arch>x86_64</arch>
   >       <model>EPYC-Rome</model>
   >       <vendor>AMD</vendor>
   >       <microcode version='167776605'/>
   >       <counter name='tsc' frequency='2645030000'/>
   >       <topology sockets='1' cores='24' threads='2'/>
   >       <pages unit='KiB' size='4'/>
   >       <pages unit='KiB' size='2048'/>
   >       <pages unit='KiB' size='1048576'/>
   >     </cpu>
   >   </host>
   > </capabilities>
   > ```
   > 
   > The problem in this case might be, that the availeable output seems to connected to the used module for the cpu. As mentioned above lscpu using the `intel_pstate` module will give different sets of results. Currently, as i am using a standard Ubuntu Server 20.04.5, the out-of-the-box used module is `acpi-cpufreq`. Which supports the `CPU max MHz`. On the horizon, when the kernel version 5.17 will be used, out-of-the-box we shall see the module `amd_pstat`... I don't know how important the "out-of-the-box" CPU discovery is for the cloudstack agent. Guess there would be a little script needed to check the loaded module and then "query" the intended value... How ever - depending on how important this is.
   
   thanks @Hudratronium 
   
   it looks we could get correct value by `lscpu` or `virsh capabilities`
   
   CPU max MHz:                     2650.0000
   
         <counter name='tsc' frequency='2645030000'/>
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org