You are not logged in.

#26 2015-02-25 14:52:14

poiuyt23
Member
Registered: 2011-10-12
Posts: 75

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

I've hit 90C once on a laptop on a kernel compile.  It's on the high end of the operating spectrum as I remember.  Usual for me under load is 80 to 85C - the chip is an i7 3632QM.  Currently idling at 45C.

Offline

#27 2015-02-25 14:55:47

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

As soon as i get home i'm going to try a bit of things: looks like mobo such Asus really push things up with -k processors such as the 4790k: i'm pretty sure i read a 44x multiplier on all four cores but i didn't really enabled them, couple this with the stock cooler and i probably hit junction max temp o_O
Also i'm going to look at the voltage, should be around ~1.0/1.08, hopefully not a faulty CPU..

Offline

#28 2015-02-25 16:45:05

bastardo
Member
Registered: 2008-11-29
Posts: 15

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

bmanuel wrote:

As soon as i get home i'm going to try a bit of things: looks like mobo such Asus really push things up with -k processors such as the 4790k: i'm pretty sure i read a 44x multiplier on all four cores but i didn't really enabled them, couple this with the stock cooler and i probably hit junction max temp o_O
Also i'm going to look at the voltage, should be around ~1.0/1.08, hopefully not a faulty CPU..

i7-3632QM  here also in a laptop. I frequently hit 93 °C  under full load. If the bios would let me underclock and undervolt this CPU I would do it in an instant, but sadly that's not an option.

Anyways: Seeing that you have a desktop board: Definitely go to a shop and buy a better heatsink for 30$. You won't regret it.

Offline

#29 2015-02-25 16:51:42

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

Yeah, thanks for the suggestion, i'm waiting my Arctic Freeze 13 CO!

Offline

#30 2015-02-25 20:13:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

When you do the i7z experiment on idle...

graysky wrote:

You mind trying the same xorg and tty running i7z logging to confirm behavior in your machine?  Just post the two log files somewhere, I can plot.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#31 2015-02-26 09:00:19

max.bra
Member
From: Bologna - Italy
Registered: 2008-06-02
Posts: 93

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

hi archers,
i've quietly followed this thread (and many others everywhere) cause i've same issue.

my system:
i7 4770k (theoretically non refresh haswell) on a gigabyte z87x-d3h (nearly stock firmware settings, no overclock)
intel_pstate operating
powersave governor
max_perf_pct min_perf_pct no_turbo
100 20 0
97 - 99% C7 time on idle
very low temp on stock heatsynk
BUT
3.9Ghz frequency fixed, no particular differences with cpu load (limited frequency drop on high cpu load, to be picky)
no differences between xorg and tty
a few minutes of i7z-git idle log confirm 3.7-3.9Ghz freq. almost fixed

i've recompiled arch stock kernel with exact changes tested on this thread.
1000hz are not solving for me. same behavior.

i will try with fedora config, i'm curious...

since i've this processor, only one kernel (unfortunately I don't remember the version, maybe the time was about 3.15 - 3.16 but i can say a big nonsense) ran correctly the frequency scaling.

p.s.: @graysky thanks for your work

Offline

#32 2015-02-26 17:26:41

max.bra
Member
From: Bologna - Italy
Registered: 2008-06-02
Posts: 93

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

tested fedora config: frequency downscale correctly

Offline

#33 2015-02-26 19:44:35

dragonn
Member
Registered: 2012-05-04
Posts: 65

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

http://cateee.net/lkddb/web-lkddb/PREEMPT.html what about this? Fedora have it disabled. I will post my results son. Well test it to in some hours.

Offline

#34 2015-02-26 19:52:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

No difference for me... Kernel preemption that is.. For me, just the tick rate was enough.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#35 2015-02-26 20:20:24

dragonn
Member
Registered: 2012-05-04
Posts: 65

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

https://dl.dropboxusercontent.com/u/166 … eq_log.txt https://dl.dropboxusercontent.com/u/166 … te_log.txt and as I said I have HZ=1000Hz on my linux-bld kernel.

CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set
# CONFIG_NO_HZ is not set
CONFIG_RCU_FAST_NO_HZ=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
CONFIG_HZ_1000=y
CONFIG_HZ=1000
CONFIG_MACHZ_WDT=m

graysky could you pleas compare the c-state log too?

Offline

#36 2015-02-26 21:52:06

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

dragonn wrote:

graysky could you pleas compare the c-state log too?

Here are two from my system using the stock Arch kernel 3.19-1 EXCEPT I increased the tick rate from 300 to 1000.

cpu_freq_log.txt
cpu_cstate_log.txt

Last edited by graysky (2015-02-26 22:07:20)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#37 2015-02-26 22:03:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

You guys can calculate your own median freq under different kernels with this script.

1) Run i7z to create a log file for several minutes while idle like this:

sudo i7z -w a -l mylog.txt

2) Run the script on the log file like this:

stats.sh mylog.txt
median: 931.41
count : 1052

Last edited by graysky (2015-11-19 00:56:24)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#38 2015-02-26 22:17:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

I edited my first post noting a bugzilla wherein Doug Smythies believes this is a genuine bug in the upstream kernel code, https://bugzilla.kernel.org/show_bug.cgi?id=93521#c10

To try his temp work around detailed in comment #10 in the bugzilla, you can try bumping the sample rate higher than the current default of 10 ms like this:

echo 19 | sudo tee /sys/kernel/debug/pstate_snb/sample_rate_ms

Last edited by graysky (2015-02-26 22:18:27)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#39 2015-02-26 22:23:50

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

Doesn't make a bit of difference for me, always 4ghz while in C7.

Offline

#40 2015-02-26 23:30:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

bmanuel wrote:

Doesn't make a bit of difference for me, always 4ghz while in C7.

1000 Hz tick rate for your i7-4790k has a median freq using my script of 4000 on idle?  Did you tweak any powersaving settings on the system?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#41 2015-02-26 23:34:33

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

Nope, the stock 300hz kernel with Doug's changes do not work for me, 4.0-4.4 all the time, some spikes to 2.9 but that's it ;/

Offline

#42 2015-02-26 23:40:59

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

bmanuel wrote:

Nope, the stock 300hz kernel with Doug's changes do not work for me, 4.0-4.4 all the time, some spikes to 2.9 but that's it ;/

And that's sampled over a good 3-5 min period or just running for a few sec and looking at the output?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#43 2015-02-27 07:39:22

max.bra
Member
From: Bologna - Italy
Registered: 2008-06-02
Posts: 93

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

bmanuel wrote:

Nope, the stock 300hz kernel with Doug's changes do not work for me, 4.0-4.4 all the time, some spikes to 2.9 but that's it ;/

same here, with 4770k freqs of course.

sample rate 19ms
median: 3820.57
count : 1236


sample rate 10ms
median: 3843.65
count : 1348

Offline

#44 2015-02-27 10:53:59

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

bmanuel wrote:

@graysky, is it normal for this CPU to reach 93°C (gkrellm/lmsensors) while compiling the linux kernel? I've the stock cooler and the CPU is not overclocked o_O

Thrown away the stock cooler, bought an Arctic Freezer 13 and now i have 60°C at full load even at 4.4Ghz big_smile

Last edited by bmanuel (2015-02-27 10:54:38)

Offline

#45 2015-02-27 11:48:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

...but does the tick rate or delay help with your freq?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#46 2015-02-27 11:53:26

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

I didn't tried to install the custom kernel yet since i've a lot of work to finish, hopefully during the weekend!

Offline

#47 2015-02-27 14:16:08

max.bra
Member
From: Bologna - Italy
Registered: 2008-06-02
Posts: 93

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

@bmanuel
it's strange your temp. ivy and haswell processor (not sure previous families) have settings for maximum watt and amper absorption. theoretically you could not even reach that temperature.
have you raised to much o disabled that limits in your firmware?

Offline

#48 2015-02-27 14:24:54

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

@max.bra, i was running with the stock cooler AND the multiplier was free to go up to 44x: also the thermal paste i used wasn't that good anyway, switched that and now it's fine smile

Offline

#49 2015-02-27 15:36:28

dragonn
Member
Registered: 2012-05-04
Posts: 65

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

graysky wrote:

...but does the tick rate or delay help with your freq?

For me no hmm I have tried default kernel with HZ=1000Hz (not BLD this time) it didn't help. Setting the delay to 20 on HZ=1000Hz have helped a little bit - the CPU goes some time to ~2GHz. With GPU do you have?

Offline

#50 2015-02-27 16:12:50

max.bra
Member
From: Bologna - Italy
Registered: 2008-06-02
Posts: 93

Re: Arch specific bug-high idle CPU freq for Haswell Refresh CPUs

bmanuel wrote:

@max.bra, i was running with the stock cooler AND the multiplier was free to go up to 44x: also the thermal paste i used wasn't that good anyway, switched that and now it's fine smile

i agree but, without overclock, there's no properly installed stock heatsink that leave it's processor melting. there was something wrong before your new cooler.

With GPU do you have?

i have your identical behavior, except for 4770k model.
for me. nvidia 560ti. proprietary driver installed and used.

Offline

Board footer

Powered by FluxBB