Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:HSF
pm-profiler
add-rate_limit_us.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File add-rate_limit_us.patch of Package pm-profiler
Add "rate_limit_us" tuning, available for "schedutil" governor. --- pm-profiler-0.1_20111222/tools/enable-profile.orig 2020-11-01 11:14:28.655547907 +0100 +++ pm-profiler-0.1_20111222/tools/enable-profile 2020-11-01 12:08:36.015979333 +0100 @@ -112,6 +112,10 @@ function cpufreq_ondemand_powersave_bias fi } +function cpufreq_schedutil_rate_limit_us { + echo $CPUFREQ_SCHEDUTIL_RATE_LIMIT_US >/sys/devices/system/cpu/cpufreq/schedutil/rate_limit_us; +} + function sata_alpm { for I in /sys/class/scsi_host/host*/link_power_management_policy; do [ -e $I ] && echo $SATA_ALPM > $I @@ -159,6 +163,7 @@ esac [ -n "$CPUFREQ_SAMPLING_RATE" ] && cpufreq_sampling_rate [ -n "$CPUFREQ_SAMPLING_DOWN_FACTOR" ] && cpufreq_sampling_down_factor [ -n "$CPUFREQ_ONDEMAND_POWERSAVE_BIAS" ] && cpufreq_ondemand_powersave_bias +[ -n "$CPUFREQ_SCHEDUTIL_RATE_LIMIT_US" ] && cpufreq_schedutil_rate_limit_us [ -n "$SATA_ALPM" ] && sata_alpm [ -n "$EXTERNAL_HOOK" ] && external_hook [ -n "$DIRTY_WRITEBACK_CENTISECS" ] && dirty_writeback_centisecs --- pm-profiler-0.1_20111222/tools/get-current-settings.orig 2020-11-01 11:14:28.655547907 +0100 +++ pm-profiler-0.1_20111222/tools/get-current-settings 2020-11-01 12:10:14.158296991 +0100 @@ -96,6 +96,12 @@ function get_cpufreq_ondemand_powersave_ echo $Option"="$Value } +function get_cpufreq_schedutil_rate_limit_us { + Option="CPUFREQ_SCHEDUTIL_RATE_LIMIT_US" + Value=`cat /sys/devices/system/cpu/cpufreq/$Governor/rate_limit_us` + echo $Option"="$Value +} + function get_sata_alpm { Option="SATA_ALPM" Value= @@ -150,6 +156,9 @@ if [ -d /sys/devices/system/cpu/cpu0/cpu get_cpufreq_up_threshold get_cpufreq_sampling_down_factor ;; + schedutil) + get_cpufreq_schedutil_rate_limit_us + ;; esac exit 0 else --- pm-profiler-0.1_20111222/doc/config.template.orig 2020-11-01 11:25:47.679457995 +0100 +++ pm-profiler-0.1_20111222/doc/config.template 2020-11-01 12:04:07.793643748 +0100 @@ -70,6 +70,13 @@ CPUFREQ_ONDEMAND_POWERSAVE_BIAS="" CPUFREQ_ONDEMAND_SAMPLING_DOWN_FACTOR="" CPUFREQ_CONSERVATIVE_SAMPLING_DOWN_FACTOR="" +# Sampling rate for reevaluating the load again. Value in microseconds. +# Default is 1000 times the scaling driver’s transition latency. +# +# File: /sys/devices/system/cpu/cpufreq/schedutil/rate_limit_us +# +CPUFREQ_SCHEDUTIL_RATE_LIMIT_US="" + # Set whether to enable or disable the SATA Aggressive Link Power Management # Reference: https://web.archive.org/web/20130403123710/www.lesswatts.org/tips/disks.php # Attention: This will disable hotplug capabilities
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor