Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion with CPU governor #53

Closed
mcandre opened this issue May 1, 2021 · 1 comment
Closed

Confusion with CPU governor #53

mcandre opened this issue May 1, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@mcandre
Copy link

mcandre commented May 1, 2021

Hi,

I am confused about the state of the CPU governor. nanobench reports:

Warning, results might be unstable:

  • CPU governor is '' but should be 'performance'
  • Turbo is enabled, CPU frequency will fluctuate

But I have the following configuration for my CPU frequency:

$ grep GOVERNOR /etc/init.d/cpufrequtils
#       GOVERNOR="ondemand"                                                                                                                        
GOVERNOR="performance"                                                                                                                             
        if [ -f $info ] && grep -q "\<$GOVERNOR\>" $info ; then                                                                                    
if [ -n "$GOVERNOR" ] ; then                                                                                                                       
        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --governor $GOVERNOR"                                                                                    
                log_action_begin_msg "$DESC: Setting $GOVERNOR CPUFreq governor"

I have disabled the systemd service for ondemand. I regenerated initramfs and rebooted.

Is nanobench correctly detecting the CPU governor state?

Maybe nanobench is mistaken in its parsing. This is an EC2 instance virtual machine, I do not truly know if CPU governor customization is able to change. What do you think about hiding this message on virtual machines?

nanobench 4.3.0, Ubuntu 20.04 Focal Fossa, EC2 t2.micro.

@mcandre
Copy link
Author

mcandre commented May 1, 2021

Update: I now see the NANOBENCH_SUPPRESS_WARNINGS environment variable option. I am configuring this on my EC2 instance to hide the messages.

@mcandre mcandre closed this as completed May 1, 2021
@martinus martinus self-assigned this Feb 16, 2023
@martinus martinus added the question Further information is requested label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants