Drop ondemand init script

Bug #1503773 reported by Bryan Quigley
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Undecided
Unassigned
sysvinit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ondemand init script is not inherited from Debian, it's an Ubuntu specific change.

Some reasons to get rid of it:
On my wily cloud test, systemd blame's 669ms on ondemand on a cloud instance with no ability to change frequency..
In the init script we don't run this for android
Why don't we just always use whatever is that kernel's default?

There are a number of other reported problems with it:
https://launchpad.net/ubuntu/+source/sysvinit/+bugs?field.searchtext=ondemand

Revision history for this message
Steve Langasek (vorlon) wrote :

Please see my answer on bug #1497375.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

>which is to ensure that the desired governor is set for the running system.

This is the key part that I don't understand, why don't we just trust the kernel? If the kernel sets the wrong governor on certain hardware isn't that the bug that needs fixing? On one system without this script it defaults to ondemand, on another it goes to performance.. AFAICT our kernel config is set to performance - why not just set it to ondemand?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sysvinit (Ubuntu):
status: New → Confirmed
Revision history for this message
Sergio Callegari (callegar) wrote :

@Steve Langasek
A big issue is that the script makes quite arbitrary assumptions on the system, including the fact that there is an ondemand governor at all.

A large number of modern systems use the intel p-state driver that does not have an ondemand governor at all! On this systems, the fallback mechanism in the script causes the system to always run in powersave mode, so hindering system performance for no reason.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

>AFAICT our kernel config is set to performance - why not just set it to ondemand?

So from my understanding, the point of the ondemand script is really so we can have boot set to performance, and then switch later to something that saves more power. The goal is boot performance so If we survey machines and find that's it's harming or negligible to boot performance that makes a compelling argument against it - correct?

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

It's been removed in Yakkety due to the merge from Debian. Thanks!

Changed in sysvinit (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

and by merge I meant sync..

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

And it actually got added as a systemd job.. so this is not actually fixed.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

This continues to cause breakage - https://bugs.launchpad.net/charm-sysconfig/+bug/1873028

I'm still looking for a modern justification for it to exist - considering AFAIK no other distro does this.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Dan Streetman (ddstreet)
Changed in systemd (Ubuntu):
status: Confirmed → Fix Released
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.