Hi Ankit. While I think it is laudable to have the initial test
documentation and general procedure out before the actual
implementation, I'm afraid we don't have enough man power to give
regular input for you guys. We are more used to have the implementation,
together with docstrings that have the same value as the text
description you pasted here. And on that case, review is done through
github pull requests.
That said, I'll make a few comments.
On 04/17/2014 08:07 AM, Ankit Patel wrote:
Description:
------------
CPUSpeed dynamically controls CPUFreq, slowing down the CPU to conserve
power
and reduce heat when the system is idle, on battery power or
overheating, and
speeding up the CPU when the system is busy and more processing power is
needed.
Using CPUSpeed can significantly increase a laptop computer's battery
life and
significantly reduce the heat it generates while still allowing your
system to
perform at top speed when you need it.
Dependent Binaries:
-------------------
Cpuspeed files should be located in the following directories
/etc/sysconfig/cpuspeed, configuration file
/etc/init.d/cpuspeed, initialzation script
/usr/sbin/cpuspeed, cpuspeed program
Requirements : A version of the Linux kernel that supports CPU frequency
/ voltage
scaling (CPUFreq) with both -
. A CPU capable of scaling its frequency and / or voltage.
. Support for the "userspace" CPUFreq governor
cpuspeed usage:
---------------
Usage: cpuspeed [Options]
Various options can be provided to change parameters like CPU core idle
percentage thresholds,
adapter polling interval, core frequency threshold etc.
Example:
cpuspeed -d -i 10 -t /proc/acpi/thermal_zone/THRM/temperature 79 \
-a /proc/acpi/ac_adapter/ACAD/state
This will have the program check (and possibly change) the CPU
speed once
every second and go to minimum CPU speed if the temperature goes
above 79
or the AC adapter is disconnected.
Setup:
------
1. Check if cpuspeed is installed in the system.
2. If not, download the tarball from
http://carlthompson.net/Software/CPUSpeed/Download
3. Move the files to the location specified before.
Tests:
------
- Setting various interval values for idle percentage checks.
cpuspeed -i <interval>
Replace <interval> with different values
How do you check that intervals were set successfuly?
- Checking if fast up and threshold values of CPU frequency manager work
with varying idle
percentages.
cpuspeed -p <fast up> <threshold>
Change <fast up> & <threshold> values and monitor cpu idle percentages
- Testing to change maximum and minimum frequency values.
cpuspeed -m <minimum speed>
cpuspeed -M <maximum speed>
Change minimum and maximum speeds.
How do you verify that?
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel