New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU_MAX_PERF_ON_BAT and CPU_BOOST_ON_BAT not respected during hardware accelerated video playback #122
Comments
Interestingly enough adding: CPU_SCALING_MAX_FREQ_ON_AC=3100000 Does not change the behavoir. |
I always need the whole output please
|
/usr/sbin/tlp: 1: /etc/default/tlp: ------------------------------------------------------------------------------: not found +++ Configured Settings: /etc/default/tlp TLP_ENABLE=1 +++ System Info +++ System Status +++ Processor /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/intel_pstate/min_perf_pct = 25 x86_energy_perf_policy: program for your kernel not installed. /proc/sys/kernel/nmi_watchdog = 0 +++ Undervolting +++ Temperatures +++ File System +++ Storage Devices
+++ SATA Aggressive Link Power Management +++ PCIe Active State Power Management +++ Intel Graphics +++ Wireless hci0(btusb) : not connected +++ Audio +++ Runtime Power Management /sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, ivb_uncore) +++ USB Bus 004 Device 004 ID 0cf3:3004 control = auto, autosuspend_delay_ms = 2000 -- Atheros Communications, Inc. (btusb) +++ Battery Status |
TLP apparently applies the settings
(as for the min_perf_pct = 25 i reckon you changed the settings without tlp start). This leaves us with two possibilities i think:
None of these may be solved by TLP though. Sorry. |
ps. did you monitor (and compare) the effective power consumption with
? |
Actually *perf_pct values less than 25 are ignored (perhaps a kernel related change and 25 corresponds to the lowest multiplier/voltage state on this machine) I too think its a kernel issue actually, I was just looking for incidental insight on the matter. power draw spike from 5-8W to upwards of 25W |
oddly enough, if i change them both to zero notice what happens! /usr/sbin/tlp: 1: /etc/default/tlp: ------------------------------------------------------------------------------: not found +++ Configured Settings: /etc/default/tlp TLP_ENABLE=1 +++ System Info +++ System Status +++ Processor /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/intel_pstate/min_perf_pct = 25 x86_energy_perf_policy: program for your kernel not installed. /proc/sys/kernel/nmi_watchdog = 0 +++ Undervolting +++ Temperatures +++ File System +++ Storage Devices
+++ SATA Aggressive Link Power Management +++ PCIe Active State Power Management +++ Intel Graphics +++ Wireless hci0(btusb) : not connected +++ Audio +++ Runtime Power Management /sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, ivb_uncore) +++ USB Bus 004 Device 012 ID 0cf3:3004 control = auto, autosuspend_delay_ms = 2000 -- Atheros Communications, Inc. (btusb) +++ Battery Status |
Doesn't happen here (with 3.19rc7):
I think you should file a kernel bug report. |
Unrelated to the issue at hand, but it seems that you've removed the
=> Change it back to
|
I now remember that this is not the first issue about difficulties in writing to intel_pstate sysfs --> #115 |
Apologies for bumping a rather old issue. Please note that the ability for the intel_pstate driver to control CPU frequencies has significantly improved in kernel versions 3.19 Also note from the kernel documentation about the intel_pstate driver: For contemporary Intel processors, the frequency is controlled by the Any values stated in the configuration file which are then read by intel_pstate will NOT be exactly used. pstate will try its best to hover around those values, but if the driver decides that more CPU power is needed it will scale as it sees fit. Please also note that scaling_max_freq is reported as the Turbo frequency when using the intel_pstate driver, which may be the reason that even when no_turbo is set to 1, turbo frequencies are achieved. This may explain why the output of lscpu is giving back weird values even when you have requested through TLP for lower frequencies. This appears to be, according to the intel_pstate documentation, by design. |
Thanks for your hints. |
TLP version from the PPA: tlp 0.7-1~trusty
relavent tlp conf:
CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave
CPU_MIN_PERF_ON_AC=0
CPU_MAX_PERF_ON_AC=100
CPU_MIN_PERF_ON_BAT=0
CPU_MAX_PERF_ON_BAT=25
CPU_BOOST_ON_AC=1
CPU_BOOST_ON_BAT=0
System details:
Ubuntu 14.04.1 x64
"mainline" kernel 3.18.5
Dell XPS 13 L322x
Intel Core i7-3537U
os ondemand gov disabled by the following:
sudo update-rc.d -f ondemand remove
So if you're on battery and do something CPU intensive like say sunspider, things seem to be behaving correctly and lscpu output looks like this the entire time; performance is clearly reduced:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Stepping: 9
CPU MHz: 800.000
BogoMIPS: 4988.58
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0-3
But when running a hardware accelerated youtube video(Firefox 35.0.01,1080p, Flash ...using this method http://www.webupd8.org/2013/09/adobe-flash-player-hardware.html if it matters)
results in lscpu bouncing all over the place and actually reaching turbo states:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Stepping: 9
CPU MHz: 2948.144
BogoMIPS: 4988.58
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0-3
Let me know if you need anything else.
The text was updated successfully, but these errors were encountered: