Mailinglist Archive: opensuse-commit (1942 mails)
| < Previous | Next > |
commit pm-profiler
- From: root@xxxxxxxxxxxxxxx (h_root)
- Date: Fri, 21 Nov 2008 15:47:57 +0100
- Message-id: <20081121144757.D342767816D@xxxxxxxxxxxxxxx>
Hello community,
here is the log from the commit of package pm-profiler
checked in at Fri Nov 21 15:47:57 CET 2008.
--------
--- pm-profiler/pm-profiler.changes 2008-11-19 10:33:50.000000000 +0100
+++ /mounts/work_src_done/STABLE/pm-profiler/pm-profiler.changes
2008-11-20 16:24:45.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Nov 19 13:23:07 CET 2008 - hmacht@xxxxxxx
+
+- Add default profiles: low_latency, balanced_latency, powersaving
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ pm-profiler.spec ++++++
--- /var/tmp/diff_new_pack.O13138/_old 2008-11-21 15:47:30.000000000 +0100
+++ /var/tmp/diff_new_pack.O13138/_new 2008-11-21 15:47:30.000000000 +0100
@@ -21,7 +21,7 @@
Name: pm-profiler
Summary: Managing power options on servers
Version: 0.1
-Release: 13
+Release: 14
License: GPL v2 only
Url: http://www.stilltobefound.org
Group: System/Management
@@ -68,13 +68,19 @@
/usr/lib/pm-profiler
%config(noreplace) %_sysconfdir/pm-profiler.conf
%dir %_sysconfdir/pm-profiler
-%dir %_sysconfdir/pm-profiler/example_profile
-%config %_sysconfdir/pm-profiler/example_profile/config
+%dir %_sysconfdir/pm-profiler/balanced_low_latency
+%config %_sysconfdir/pm-profiler/balanced_low_latency/config
+%dir %_sysconfdir/pm-profiler/low_latency
+%config %_sysconfdir/pm-profiler/low_latency/config
+%dir %_sysconfdir/pm-profiler/powersaving
+%config %_sysconfdir/pm-profiler/powersaving/config
%_sysconfdir/init.d/pm-profiler
%_sbindir/rcpm-profiler
%_bindir/powersave
%changelog
+* Wed Nov 19 2008 hmacht@xxxxxxx
+- Add default profiles: low_latency, balanced_latency, powersaving
* Tue Nov 18 2008 hmacht@xxxxxxx
- don't insserv in %%post, will be done by YaST as soon as a profile
gets activated (bnc#443177)
++++++ pm-profiler-0.1.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore old/pm-profiler-0.1/doc/config.template
new/pm-profiler-0.1/doc/config.template
--- old/pm-profiler-0.1/doc/config.template 2008-08-18 14:30:56.000000000
+0200
+++ new/pm-profiler-0.1/doc/config.template 2008-11-19 13:10:54.000000000
+0100
@@ -9,7 +9,7 @@
# Set the cpu frequency scaling governor
# Possible values are powersave, performance, ondemand and userspace
#
-# kernel documenatation: cpu-freq/user-guide.txt
+# Kernel documenatation: cpu-freq/user-guide.txt
#
# File: /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
#
@@ -28,7 +28,7 @@
# frequencies. This setting does only make sense in conjunction with the
# ondemand governor
#
-# kernel documenatation: cpu-freq/governors.txt
+# Kernel documenatation: cpu-freq/governors.txt
#
# File: /sys/devices/system/cpu/cpu*/cpufreq/ondemand/up_threshold
#
@@ -47,7 +47,7 @@
# Attention: This will disable hotplug capabilities
#
# Possible values: min_power, max_performance, medium_power
-# kernel documentation: scsi/link_power_management_policy.txt
+# Kernel documentation: scsi/link_power_management_policy.txt
#
# File: /sys/class/scsi_host/host*/link_power_management_policy
#
@@ -57,6 +57,7 @@
# activation
#
# Possible values: Full path to executable
+#
EXTERNAL_HOOK=""
# Command to execute when the power button is pressed and there is no
@@ -65,3 +66,37 @@
# File: /usr/lib/acpid/power_button
#
POWER_BUTTON_HOOK=""
+
+# Disable polling on drives with removable media. Please see the manpage
+# of hal-disable-polling for more information.
+#
+# Possible values: 1/yes, or keep empty
+#
+HAL_DISABLE_POLLING=""
+
+# Kernel buffers writes to files that applications perform for a period of
+# time. Kernel default is 500 (5 seconds), a good starting point for
+# increasing it would be 1500
+# Reference: http://www.lesswatts.org/tips/disks.php
+# Kernel documentation: laptops/laptop-mode.txt
+#
+# Possible values: centiseconds
+#
+# File: /proc/sys/vm/dirty_writeback_centisecs
+#
+DIRTY_WRITEBACK_CENTISECS=""
+
+# Read-ahead, in kilobytes. You can spin down the disk while playing
+# MP3/OGG by setting the disk readahead to a reasonable size, e.g. 3072 (3
+# MB). Effectively, the disk will read a complete MP3 at once, and will
+# then spin down while the MP3/OGG is playing. Don't set this too high,
+# because the readahead is applied to _all_ files that are read from disk.
+# Kernel default is currenty 128. Good starting point would be a value of
+# 3072.
+# Reference: laptop-mode-tools.
+#
+# Possible values: KB
+#
+# File: /sys/block/sd?/queue/read_ahead_kb
+#
+READ_AHEAD_KB=""
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore old/pm-profiler-0.1/profiles/balanced_low_latency/config
new/pm-profiler-0.1/profiles/balanced_low_latency/config
--- old/pm-profiler-0.1/profiles/balanced_low_latency/config 1970-01-01
01:00:00.000000000 +0100
+++ new/pm-profiler-0.1/profiles/balanced_low_latency/config 2008-11-19
13:32:51.000000000 +0100
@@ -0,0 +1,7 @@
+NAME="Balanced Low Latency Computing"
+DESCRIPTION="Profile optimized for low latency with a certain consideration of
power consumption."
+CPUFREQ_GOVERNOR="ondemand"
+CPUFREQ_SCHED_MC_POWER_SAVINGS="0"
+CPUFREQ_ONDEMAND_UP_THRESHOLD="20"
+SATA_ALPM="medium_power"
+HAL_DISABLE_POLLING="yes"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore old/pm-profiler-0.1/profiles/example_profile/config
new/pm-profiler-0.1/profiles/example_profile/config
--- old/pm-profiler-0.1/profiles/example_profile/config 2008-08-18
14:31:11.000000000 +0200
+++ new/pm-profiler-0.1/profiles/example_profile/config 1970-01-01
01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-NAME="Example"
-DESCRIPTION="Example profile to fit your needs"
-CPUFREQ_GOVERNOR="ondemand"
-CPUFREQ_SCHED_MC_POWER_SAVINGS=""
-CPUFREQ_ONDEMAND_UP_THRESHOLD="80"
-CPUFREQ_ONDEMAND_UP_THRESHOLD_DYNAMIC="yes"
-CPUFREQ_ONDEMAND_POWERSAVE_BIAS=""
-SATA_ALPM=""
-EXTERNAL_HOOK=""
-POWER_BUTTON_HOOK=""
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore old/pm-profiler-0.1/profiles/low_latency/config
new/pm-profiler-0.1/profiles/low_latency/config
--- old/pm-profiler-0.1/profiles/low_latency/config 1970-01-01
01:00:00.000000000 +0100
+++ new/pm-profiler-0.1/profiles/low_latency/config 2008-11-19
13:10:32.000000000 +0100
@@ -0,0 +1,6 @@
+NAME="Low Latency Computing"
+DESCRIPTION="Profile optimized for low latency and best performance with no
consideration of power consumption."
+CPUFREQ_GOVERNOR="performance"
+CPUFREQ_SCHED_MC_POWER_SAVINGS="0"
+SATA_ALPM="max_performance"
+DIRTY_WRITEBACK_CENTISECS="300"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore old/pm-profiler-0.1/profiles/powersaving/config
new/pm-profiler-0.1/profiles/powersaving/config
--- old/pm-profiler-0.1/profiles/powersaving/config 1970-01-01
01:00:00.000000000 +0100
+++ new/pm-profiler-0.1/profiles/powersaving/config 2008-11-19
13:10:32.000000000 +0100
@@ -0,0 +1,8 @@
+NAME="Powersaving"
+DESCRIPTION="Profile optimized for a low power consumption at the price of a
higher latency. Useful for systems which are not accessed frequently."
+CPUFREQ_GOVERNOR="ondemand"
+CPUFREQ_SCHED_MC_POWER_SAVINGS="1"
+SATA_ALPM="min_power"
+HAL_DISABLE_POLLING="yes"
+DIRTY_WRITEBACK_CENTISECS="1500"
+READ_AHEAD_KB="3072"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore old/pm-profiler-0.1/tools/enable-profile
new/pm-profiler-0.1/tools/enable-profile
--- old/pm-profiler-0.1/tools/enable-profile 2008-08-08 14:14:22.000000000
+0200
+++ new/pm-profiler-0.1/tools/enable-profile 2008-11-19 13:10:18.000000000
+0100
@@ -76,12 +76,29 @@
$EXTERNAL_HOOK 2>&1 | $LOGGER &
}
+function hal_disable_polling {
+ for I in /dev/scd?; do
+ hal-disable-polling --device $I >/dev/null 2>&1 | $LOGGER
+ done
+}
+
+function dirty_writeback_centisecs {
+ echo $DIRTY_WRITEBACK_CENTISECS > /proc/sys/vm/dirty_writeback_centisecs
+}
+
+function read_ahead_kb {
+ echo $READ_AHEAD_KB > /sys/block/sd?/queue/read_ahead_kb
+}
+
[ -n "$CPUFREQ_GOVERNOR" ] && cpufreq_governor
[ -n "$CPUFREQ_SCHED_MC_POWER_SAVINGS" ] && cpufreq_sched_mc_power_savings
[ -n "$CPUFREQ_ONDEMAND_UP_THRESHOLD" ] && cpufreq_ondemand_up_threshold
[ -n "$CPUFREQ_ONDEMAND_POWERSAVE_BIAS" ] && cpufreq_ondemand_powersave_bias
[ -n "$SATA_ALPM" ] && sata_alpm
[ -n "$EXTERNAL_HOOK" ] && external_hook
+[ -n "$HAL_DISABLE_POLLING" ] && hal_disable_polling
+[ -n "$DIRTY_WRITEBACK_CENTISECS" ] && dirty_writeback_centisecs
+[ -n "$READ_AHEAD_KB" ] && read_ahead_kb
echo $PROFILE > $STATEFILE
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore old/pm-profiler-0.1/tools/powersave
new/pm-profiler-0.1/tools/powersave
--- old/pm-profiler-0.1/tools/powersave 2008-10-08 12:07:48.000000000 +0200
+++ new/pm-profiler-0.1/tools/powersave 2008-11-19 13:11:04.000000000 +0100
@@ -74,6 +74,12 @@
done
}
+function show_scheme_description {
+ . /etc/pm-profiler/$1/config
+ echo $NAME:
+ echo $DESCRIPTION
+}
+
function set_active_scheme {
if [ "$UID" != "0" ]; then
echo "You must be root to enable a profile"
@@ -131,6 +137,7 @@
echo
echo " Profiles:"
echo -e "\t -x, --list-schemes\t\t show all available schemes/profiles"
+ echo -e "\t -X, --show-scheme-description\t show scheme description"
echo -e "\t -e <x>, --set-active-scheme <x> switch currently active
scheme/profile"
echo
echo " CPUFreq modes:"
@@ -142,8 +149,8 @@
}
-TEMP=`getopt -o muUbe:ahxflAc --long
suspend-to-ram,suspend-to-disk,set-active-scheme:,\
-battery-info,ac-status-info,help,list-schemes,performance-speed,powersave-speed,\
+TEMP=`getopt -o muUbe:ahxX:flAc --long
suspend-to-ram,suspend-to-disk,set-active-scheme:,\
+battery-info,ac-status-info,help,list-schemes,show-scheme-description:,performance-speed,powersave-speed,\
dynamic-speed,cpufreq-state-info,standby \
-n 'example.bash' -- "$@"`
@@ -160,6 +167,7 @@
-b|--battery-info) battery_info ; shift ;;
-a|--ac-status-info) ac_status_info ; shift ;;
-x|--list-schemes) list_schemes ; shift ;;
+ -X|--show-scheme-description) show_scheme_description $2 ; shift 2 ;;
-f|--performance-speed) performance_speed ; shift ;;
-l|--powersave-speed) powersave_speed ; shift ;;
-A|--dynamic-speed) dynamic_speed ; shift ;;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx
| < Previous | Next > |