Messages in this thread | | | Date | Fri, 09 Jan 2004 16:06:20 -0600 | From | Ian Pilcher <> | Subject | Re: [PATCH] sysctl equivalent of "idle=poll" |
| |
Randy.Dunlap wrote: > I don't see any problems with this patch itself, other than its > justification. > > Why is a sysctl needed instead of using idle=X as a boot parameter? > > Does this fix a bug/oops that you were having? > Or does it cover up a bug somewhere?
Using "idle=poll" allows me to boot 2.4.x on my Abit VP6 with ACPI turned on. (Remember the "Plea for help" thread on acpi-devel?) I need ACPI-based IRQ routing to get the built-in USB controllers working.
Once the system is booted, however, I have no desire to cook my CPUs. This allows me to set polling back to regular mode. (I just add an entry to /etc/sysctl.conf.) I have no idea if any other hardware will benefit from this, but it's always possible.
So that's why I'm interested in it.
More generally, if people are booting with "idle=poll" for performance reasons, many of them probably don't need it turned on all the time. This would allow a simple user-level program to turn on idle polling when the load is high and turn it off the rest of the time, saving power and possibly extending the life of the hardware.
So if there's value in having it as a boot parameter, I think there's value in having it tunable at runtime.
BTW, although I don't need "idle=poll" to boot 2.6 with ACPI, I will create a 2.6 version of this patch if its accepted into 2.4.
> MOTD: Always include version info.
Should I have generated the patch differently?
Thanks for the feedback!
-- ======================================================================== Ian Pilcher i.pilcher@comcast.net ========================================================================
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |