Using the 4.18.x for a week now (our unofficial build).
I'm amused how this does not apply to the 4.18.x as it does to the 4.4.x series Slackware 14.2 still supports. Amusing dead horse racing :hattip: |
Quote:
Quote:
This makes sense because what min_perf_pct does is multiply the max frequency with the percentage selected. My max is 3.9 GHZ. min_perf_pct is set to 41 so my min freq is 1.6 GHZ which it is. I set it to 50 and my min freq for all cores is now 2.00 GHZ. I guess each to their own but I don't think a core should be going full blast all the time. There has to be a better way to do this. I don't think Slackware should be shipping with this but it is our BDFL's decision. If the min frequencies isn't good enough then up it by a percentage is my answer to the performance problem. At least I figured out my solution to keeping my aging hardware relevant. https://www.kernel.org/doc/html/v4.1...el_pstate.html |
Quote:
|
Probably he wants to says that that Intel CPUs works happily with "ondemand" governor under 4.18.x and later, then this entire thread is a dead horse racing.
|
Quote:
|
Quote:
|
Quote:
Quote:
webpages? the cpu will go to speed faster than you get some KB of the site, ... and the page you refer to Quote:
you just confirm what I was writing, but thanks for that. |
Quote:
I wasn't happy myself with the performance governor on intel_pstate, because in my case I had both cores at max speed all the time on all systems and due to the temperature increase (of a few degrees 48-49 to 52-53) my fans were always spinning. I took a radical measure and disabled the intel_pstate driver for good: https://www.linuxquestions.org/quest...ml#post5900930 In this other post I mentioned that there are more improvements to the intel_pstate driver that are not available in 4.4.153 and I'm considering moving to the kernel Slackware -current provides. https://www.linuxquestions.org/quest...ml#post5899390 I'm wondering on what Slackware/kernel version did you observe that core staying at max speed? |
Quote:
CONFIG_CPU_FREQ |
Quote:
|
Quote:
I didn't confirm anything you wrote before in your post #98, was not even my intention, I just tried to help you with your frustration: "I would say: welcome to the world of imaginations and placebos" But now, reading your reply I feel sorry for trying to help in the first place and I'm afraid I might be not qualified for the help you look needing. I'm still happy that you quoted a relevant sentence from that phoronix article: "The performance governors also led to the best performance-per-Watt with the increased power usage / higher CPU power state generally being worth the performance gains. " |
Quote:
Code:
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 |
Quote:
|
Quote:
Code:
echo 44 > /sys/devices/system/cpu/intel_pstate/min_perf_pct |
@RadicalDreamer: to me, your results are a reminder that whilst cpufreq can set the frequency independently for each CPU considering its load and the policy chosen, it of course has no influence on the load of that CPU. Anyway my remark was probably off topic, sorry about that.
|
1 Attachment(s)
Code:
Linux version 4.18.6 (dusk@dusk) (gcc version 8.2.0 (GCC)) #1 SMP Wed Sep 5 07:29:56 UTC 2018 just in case: Code:
uname -a added the /proc/config.gz (added .txt for rules) |
Quote:
You made use of cpufreq-info to check the status of your cores, but I'd also like to suggest (if you haven't done it before) monitoring your CPU while idle and under intel_pstate->performance with: Code:
watch -n 1 "sensors && grep \"cpu MHz\" /proc/cpuinfo" |
on 4.18.x the freq is jumping quite vivid FWIW - quite more than on 4.4.x series where it usually just hanged there
|
Quote:
https://www.kernel.org/doc/html/v4.1...el_pstate.html "intel_pstate is a part of the CPU performance scaling subsystem in the Linux kernel (CPUFreq). It is a scaling driver for the Sandy Bridge and later generations of Intel processors. Note, however, that some of those processors may not be supported. [To understand intel_pstate it is necessary to know how CPUFreq works in general, so this is the time to read CPU Performance Scaling if you have not done that yet.]" https://en.wikipedia.org/wiki/Sandy_Bridge What's the output of? Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver P.S. Just checked the config file you attached, sorry observed it late, and you have the intel_pstate driver enabled: Code:
# |
Quote:
|
Quote:
|
Quote:
https://www.linuxquestions.org/quest...ml#post5900930 |
Quote:
Code:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver So both placebo and dashboard align in "feels more good" ;) |
@abga, I know this is a few days late, but my comment about:
Quote:
|
Quote:
anyhow, when IRL strikes, I usually leave the computers in their most efficient power state -> "neglected" ;) |
Documenting ACPI configuration
Quote:
I'm no technical writer but I may try to create an article on SlackDocs. |
@gus3
In post #66 you said you felt inadequate, changed your mind ? ;) But then, in your first intervention ( post #50) you unintentionally raised a valid point. Why not disable the OS level CPU PM control and let the BIOS/Intel ME default algorithms decide what to do best, blame the HW manufacturer if your system is performing unsatisfactory. @SCerovec In your post #101 you said: Quote:
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor @gegechris99 I read your blog post and it's good quality, a little too much of "I & my" IMO, try not to use first person in a technical doc :) Looking at the official repository, I couldn't find too much related to PM: http://docs.slackware.com/howtos:slackware_admin:start But only this about hibernation: http://docs.slackware.com/howtos:sla...in:hibernation I suggest to create a generic How-To about PM and only fill in your chapter about the CPU PM (focus only on intel_pstate & acpi-cpufreq (there could be other drivers)), that'll pave the way for other contributors to add some additional PM tweaks for other system components. Although, as I said before, on modern systems these other components have their own autonomous HW/Firmware/BIOS PM. I know I always have to manually disable the HDD PM on laptops, stopping that annoying click (parking the heads) and the spin-up/down noise. ____ I ran the same test from #43 on Slackware 14.2 with the -current kernel 4.14.69, intel_pstate set on performance and I'm happy with the behavior observed. The frequencies were dynamically changing on all cores, on the Skylake core i7 I also observed the turbo-boost enabled a few times while compiling, the CPU fans were spinning only from time to time and the system performance was good. intel_pstate set on powersave is still laggy. Code:
Every 1.0s: uname -r && sensors && grep "cpu MHz" /proc/cpuinfo If you want to dig further into this, here are some more interesting articles: - Lenovo study - page 14-15 stating that the beloved Intel ME is actually in control over the CPU PM and might not honor what the OS (intel_pstate driver) is requesting: https://lenovopress.com/lp0870.pdf - Arch, recommending intel_pstate->performance: https://wiki.archlinux.org/index.php...ling_governors - Suse considering the powersave governor inefficient: Section: 11.2 In-Kernel Governors: https://doc.opensuse.org/documentati...ower.governors - Ubuntu - filing an actual bug report for the intel_pstate set on powersave, changing it to performance: https://bugs.launchpad.net/ubuntu/+s...x/+bug/1579278 - MySQL performance impact study related to the CPU PM governors, favoring intel_pstate->performance: https://dzone.com/articles/how-cpu-g...-affects-mysql |
Quote:
Seeing your latest test results, I installed -current kernel (4.14.69) on Slackware64 14.2 After a day of using the 4.14 kernel, I do confirm that the PM is much better than with kernel 4.4. With intel_pstate->performance, I do notice that the fan stops running after some time when the laptop is not doing much. The fan didn't stop with kernel 4.4. That, alone, is a significant improvement. With intel_pstate->powersave, the CPU frequency seems to fluctuate in the range 1.2-2GHz which is higher than the 0.8-1GHz observed with kernel 4.4. My perception (not a good metric, I admit) is that the system is more responsive than with kernel 4.4 in powersave mode. I will stay for a while with kernel 4.14 on Slackware64 14.2. CPU: Code:
cpu family : 6 Code:
$ uname -r && sensors && grep "cpu MHz" /proc/cpuinfo Code:
$ uname -r && sensors && grep "cpu MHz" /proc/cpuinfo |
@abga
both "performance" and "powersave" |
In
Code:
/usr/src/linux/ Code:
# cd tools/power/x86/x86_energy_perf_policy a good read regarding Intel x86 just my 2c. |
Interesting, it looks like you can influence/override what the intel_pstate driver / Intel ME+BIOS is doing, by directly accessing the CPU Model Specific Register (MSR).
https://itpeernetwork.intel.com/how-...base-on-linux/ https://access.redhat.com/documentat...gy_perf_policy https://lore.kernel.org/patchwork/patch/735720/ https://lore.kernel.org/patchwork/patch/655892/ https://forum.manjaro.org/t/kernel-p...ot-issue/42828 So, you already have 3 components/layers for tuning the CPU, intel_pstate(driver) & x86_energy_perf_policy(kernel subsystem) on OS/user level and Intel ME with a mind of its own on HW level, concurrently trying to mess up with the poor little CPU. |
Provided the intel_pstate isn't loaded by default, this makes for two.
Add to that the x86_energy_perf_policy is actually user space tool and has to be run as root - also used optionally. This makes one - IME left alone per default? |
Quote:
I only learned that the Intel ME might not honor what intel_pstate is asking while reading the Lenovo pdf from post #127 (first link in the bottom section). https://en.wikipedia.org/wiki/Intel_Management_Engine https://en.wikipedia.org/wiki/Intel_Sandy_Bridge |
Well, usually systems are split apart because of some policy mismatch...
Effectively meaning the IME takes precedence over OEM vendor's BIOS? And the x86_energy_perf_policy tool seems to be part of the Intel's Linux support effort? or? |
Quote:
https://lenovopress.com/lp0870.pdf - page 15: " Even though the governor is set as powersave and it implies that the OS hints are not very aggressive, Intel ME does not fully honor OS hints and relies more on its performance counter. " Quote:
https://lkml.org/lkml/2010/9/28/246 In your previous post, you stated: Quote:
https://access.redhat.com/documentat...gy_perf_policy https://itpeernetwork.intel.com/how-...base-on-linux/ |
@abga,
I only learned of it from sbotools, but as it stubbornly tried to download the 4.4.14 kernel source I decided to look around... ... and what do you know - it's shipped with every kernel source - mine is form 4.18.6 :D all one has to do is make && make install to access it. Thankfully Slackware is the best make && make install distro of them all...:hattip: |
All times are GMT -5. The time now is 10:56 AM. |