cpufrequtils governor is not working as expected to set performance mode from ondemand

Bug #1641181 reported by Prabhuraj K
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
In Progress
Medium
Prabhuraj K
Nominated for Ocata by Oleksiy Molchanov
Mitaka
In Progress
Medium
Prabhuraj K
Newton
In Progress
Medium
Prabhuraj K

Bug Description

Requirement is to set the cpufrequtils to performance from ondemand on compute node, this is handled by code in fuel-library.

Process during deployment :

1. Package named "cpufrequtils" got installed
2. File "/etc/default/cpufrequtils" got created with content "GOVERNOR=performance"
3. Service is ensured to present in next boot but service is not restarted.

I have checked the value of my cpufrequtils using following commands:

1. root@compute01:~# grep MHz /proc/cpuinfo
cpu MHz : 1200.000
cpu MHz : 1200.000
cpu MHz : 1200.000
cpu MHz : 1200.000

2. root@compute01:~# cat /etc/default/cpufrequtils
GOVERNOR="performance"

3. root@compute01:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand

root@compute01:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
conservative ondemand userspace powersave performance

when I restart/reload the cpufrequtils , the value of CPU MHz is changed to 2500 from 1200, again i rebooted my machine and check this value still it showws me 1200 after reboot. When i check the rc3.d found that ondemand is making this value to set 1200 from 2500 . SO cpufrequtils is setting the value to 2500 and end ondemand reset the value to 1200.

So, I have disabled ondemand on next reboot , Then it works fine and I call see the value as 2500 and performance set for all cpu as below.

 root@compute01:~# grep MHz /proc/cpuinfo
cpu MHz : 2500.000
cpu MHz : 2500.000
cpu MHz : 2500.000
cpu MHz : 2500.000

root@compute01:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance

This need to fix in fuel-library on
 "fuel-library/deployment/puppet/openstack_tasks/manifests/roles/compute.pp"

Tags: area-linux
Changed in fuel:
milestone: none → 11.0
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
importance: Undecided → Medium
status: New → Confirmed
tags: added: area-linux
Revision history for this message
Prabhuraj K (prabhuraj) wrote :
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Prabhuraj K (prabhuraj)
status: Confirmed → In Progress
Revision history for this message
Prabhuraj K (prabhuraj) wrote :

Fix for Mitaka is committed for review https://review.openstack.org/397459

Revision history for this message
Prabhuraj K (prabhuraj) wrote :

Fix for newton for code review https://review.openstack.org/#/c/397471/

Revision history for this message
Prabhuraj K (prabhuraj) wrote :

Code is awaiting for review

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/457470

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/460107

Prabhuraj K (prabhuraj)
no longer affects: fuel
Changed in fuel:
assignee: nobody → Prabhuraj K (prabhuraj)
Prabhuraj K (prabhuraj)
Changed in fuel:
status: New → In Progress
Changed in fuel:
milestone: none → 10.1
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/mitaka)

Change abandoned by Andreas Jaeger (<email address hidden>) on branch: stable/mitaka
Review: https://review.opendev.org/397459
Reason: This repo is retired now, no further work will get merged.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/newton)

Change abandoned by Andreas Jaeger (<email address hidden>) on branch: stable/newton
Review: https://review.opendev.org/397471
Reason: This repo is retired now, no further work will get merged.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (master)

Change abandoned by Andreas Jaeger (<email address hidden>) on branch: master
Review: https://review.opendev.org/457470
Reason: This repo is retired now, no further work will get merged.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/ocata)

Change abandoned by Andreas Jaeger (<email address hidden>) on branch: stable/ocata
Review: https://review.opendev.org/460107
Reason: This repo is retired now, no further work will get merged.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.