Ubuntu Server 9.04 has hardcoded ondemand scaling_governor

Bug #434257 reported by Jo-Erlend Schinstad
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

I'm using KVM and my guests keep crashing, sortof (I won't go into it) when using ondemand scaling_governor. I tried to configure it to use the "performance" governor instead, by adding entries to /etc/sysctl.conf and /etc/sysfs.conf, but that didn't help.

I was astonished to find a script called "ondemand" in /etc/init.d, which has hardcoded the "ondemand" governor. Why would you want to hardcode something like that?

Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

Ubuntu is finally transitioning from the old System V init scripts to new upstart scripts for Karmic. Can you confirm that this behavior exists in Karmic?

affects: ubuntu → upstart (Ubuntu)
Changed in upstart (Ubuntu):
status: New → Incomplete
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

We have to set the scaling governor to *something*

And no, I won't support a configuration option _at_this_level_ - there are already far better systems on top that allow you to change the post-boot default

affects: upstart (Ubuntu) → sysvinit (Ubuntu)
Changed in sysvinit (Ubuntu):
status: Incomplete → Won't Fix
Revision history for this message
Jo-Erlend Schinstad (joerlend.schinstad-deactivatedaccount) wrote :

How is that? This file overrides any other configuration, that's the point of the bug report. No matter what you configure elsewhere, this script will make sure you're running ondemand.

Why do we have to set the scaling governor to something hardcoded that makes system halt? It would be way better to the value that the admin chooses, that doesn't cause the system to freeze.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 434257] Re: Ubuntu Server 9.04 has hardcoded ondemand scaling_governor

On Tue, 2009-10-06 at 13:46 +0000, Jo-Erlend Schinstad wrote:

> How is that? This file overrides any other configuration, that's the
> point of the bug report. No matter what you configure elsewhere, this
> script will make sure you're running ondemand.
>
No it doesn't, this file is run before any other configuration takes
effect (the most common of which, I believe, is using the /etc/rc.local
script)

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Jo-Erlend Schinstad (joerlend.schinstad-deactivatedaccount) wrote :

No, this script sleeps for one minute in order for the user to login before configuration is overridden with ondemand.
From /etc/init.d/ondemand:

        sleep 60 # probably enough time for desktop login

Which is also strange since his is a server install.

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.