shwstppr commented on issue #6680: URL: https://github.com/apache/cloudstack/issues/6680#issuecomment-1231279302
@Hudratronium Is it just about the error in the agent logs or are you seeing any change in the behaviour? Current code tries to find the max CPU speed using the following methods, in the same order: 1. Using lscpu - output of the command - `lscpu | grep -i 'Model name' | head -n 1 | egrep -o '[[:digit:]].[[:digit:]]+GHz' | sed 's/GHz//g'` 2. Using cpu frequency file - content of file `/sys/devices/system/cpu/cpu0/cpufreq/base_frequency` 3. From libvirt. In your case method1 and 2 are not returning any value so the value from method 3 is used which comes 1803. In 4.16.1 as well code used to have method 2 and 3. I'm pretty sure you must be getting logs like the following reported earlier, `Unable to retrieve the CPU speed from file [/sys/devices/system/cpu/cpu0/cpufreq/base_frequency]. Using the value [1803] provided by the Libvirt.`. It is just an additional way for finding the CPU speed that has been added in 4.17.0 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
