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

Bug #1641181 reported by Prabhuraj K on 2016-11-11
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Medium
Prabhuraj K
Nominated for Ocata by Oleksiy Molchanov
Mitaka
Medium
Prabhuraj K
Newton
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"

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

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

Prabhuraj K (prabhuraj) wrote :

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

Prabhuraj K (prabhuraj) wrote :

Code is awaiting for review

Prabhuraj K (prabhuraj) on 2017-04-26
no longer affects: fuel
Changed in fuel:
assignee: nobody → Prabhuraj K (prabhuraj)
Prabhuraj K (prabhuraj) on 2017-04-26
Changed in fuel:
status: New → In Progress
Changed in fuel:
milestone: none → 10.1
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers