Author Topic: Sometimes system hangs - baytrail - help to find out the reason and to fix  (Read 7213 times)

0 Members and 1 Guest are viewing this topic.

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #15 on: 11. March 2016, 12:08:17 »
As Douglas Adams states in his A hitchhiker's guide to the galaxy:
DON'T PANIC  :D

On my system those freezes occured randomly after a couple of hours
with none or medium load. Similar to your system, isn't it?

The mentioned bug report discusses in fact two distinct effects:
1: freezes on heavy load (never occured on my machine)
2: random freezes after some time with no load correlation (that's the one)

Therefore I would like to suggest to simply try out the kernel parameter.
What is there to lose?

I didn't experience any harmful stress for my cpu when using this new
parameter. Even power consumption stayed moderate.

I am not sure what param value should be is it
Code: [Select]
intel_idle.max_cstate=2or
Code: [Select]
intel_idle.max_cstate=1?

Offline schaschlik

  • Neuling
  • *
  • Posts: 13
  • Yes, it's pork!
  • Branch: testing
  • Desktop: Xfce
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #16 on: 11. March 2016, 12:28:48 »
The moment I used intel_idle.max_cstate=2 on my system those
freezes disappeared for good!

So you should try the value two (2).

As far as I understand it, this parameter limits the maximum level
of power saving states/modes used by the cpu. So a value of one (1)
would lead to more power consumption as it practically disables most
of its power saving capabilities. A value of two (2) disables less
and keeps the power consumption moderate.

I never used/tried a value of one (1) as proposed in the bug report.

Don't be mistaken! This is only a workaround and HAS TO be
solved by kernel developers/intel soon.

To verify that this setting has been applied correctly you can do:
Code: [Select]
$ dmesg | grep intel_idle
and should see something like:
Code: [Select]
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.4-x86_64 root=/dev/mapper/croot rw cryptdevice=/dev/sda3:croot quiet nosplash noresume intel_idle.max_cstate=2
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4-x86_64 root=/dev/mapper/croot rw cryptdevice=/dev/sda3:croot quiet nosplash noresume intel_idle.max_cstate=2
[    1.089734] intel_idle: MWAIT substates: 0x33000020
[    1.089737] intel_idle: v0.4 model 0x37
[    1.089740] intel_idle: lapic_timer_reliable_states 0xffffffff
[    1.089743] intel_idle: max_cstate 2 reached
« Last Edit: 11. March 2016, 12:36:45 by schaschlik »

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #17 on: 11. March 2016, 20:04:00 »
Sounds like a bug. I would just refrain from suspending/hibernating my machine. Switch it on, use it, switch it off, repeat.haha.
I know it's crap, but Manjaro startup times are orders of magnitude less than a crappy windows machine.haha. That's the way I see it.
I'm also too paranoid for bugs to creep in and break my system when awoken from hibernation/sleep.
"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."

Offline schaschlik

  • Neuling
  • *
  • Posts: 13
  • Yes, it's pork!
  • Branch: testing
  • Desktop: Xfce
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #18 on: 11. March 2016, 20:39:56 »
Well, fatboy, here's the kicker! I don't use suspend/resume either and those
freezes occured nevertheless! And freezes meaning nothing helps except
power off power on. NOT EVEN MAGIC SYSREQ! So lots of fun there.

Meaning the suspend/resume mechanism not being the troublemaker in this
case.

Whether suspend/resume can provoke those freezes reliably and repeatedly
I dont know either, and frankly I dont't really care much, but mark001 might
have observed some correlation there as he stated in his 1st post.

All I observed was that when migrating from kernel 4.1 to 4.4 those freezes
occured more often and annoyed me much more quickly. :D

Also I do like "crappy" Windows just as the next guy, but Windows didn't
freeze at all, which made me conclude that it wasn't a hardware (e.g. RAM)
malfunction at all and therefore had to be a linux (kernel) related problem.

And in case anyone is wondering: I do like Manjaro a lot and this is not
only a Manjaro-specific issue!
« Last Edit: 11. March 2016, 21:37:50 by schaschlik »

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #19 on: 12. March 2016, 15:49:42 »
... NOT EVEN MAGIC SYSREQ! So lots of fun there.

Meaning the suspend/resume mechanism not being the troublemaker in this
case.

Whether suspend/resume can provoke those freezes reliably and repeatedly
I dont know either, and frankly I dont't really care much, but mark001 might
have observed some correlation there as he stated in his 1st post.



Emm... that's right the SYSREQ+b doesn't help in my case :P But still I am wondering is there a way to find out it is really the bug #109051 by observing dmesg or journal? I mean if the bug takes place what to look for in logs?

But I still think it is related to graphics somehow cause the hang occur mostly during some video player running (accel issue); In case of kazam app I do suspect the ram issue and its memory leak cause the hang occurs in about an hour kazam's fullscreen work so kazam is probably another case :P But, yes, the major hang occurs during some multimedia app running so it is graphics related issue; As my graphics is intel's build-in, so it is really can be also be related to CPU but still I'd like to know for sure how to find out the bug #109051 really takes place...

I just watched the bug comment #27 https://bugzilla.kernel.org/show_bug.cgi?id=109051#c27 which seems to describe exact my CPU characteristics but still the guy doesn't say how he analysed the bug takes place and in my case hangs doesn't occur 5-8 times a day so maybe that guy just too much of playing something (video games) cause as I was saying it really related to graphics, as I could notice;
« Last Edit: 12. March 2016, 16:14:04 by mark001 »

Offline schaschlik

  • Neuling
  • *
  • Posts: 13
  • Yes, it's pork!
  • Branch: testing
  • Desktop: Xfce
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #20 on: 12. March 2016, 17:31:31 »
If your System is indeed suffering from bug #109051 there won't be
any journal or kernel messages indicating it!

Reason being when frozen, the cpu seems to be unable to return from
some deeper power saving state when ordered by the kernel to wake up.

And if the processor is not processing anymore (due to recreation),
who/what else is there to do the journalling stuff?

Therefore castrating the cpu power saving system with for instance
intel_idle.max_cstate=2 remedies this issue.

By the way, did you test SYSREQ+b whilst your system was still
responding to confirm sysreq is basically working?
« Last Edit: 12. March 2016, 17:33:30 by schaschlik »

Offline c00ter

  • Held Mitglied
  • *****
  • Posts: 1534
  • Towelie's cupcake
  • Branch: ☮Olive☮
  • Desktop: Depends©
  • GPU Card: Intel HD4400M CPU: Core i7-4510U
  • GPU driver: Intel/Free
  • Kernel: 4.4-lts & 4.5
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #21 on: 12. March 2016, 22:42:33 »
I notice a few BayTrail & ValleyView processors here, so the kernel may be a factor in some of these common problems. Also, do those of you running laptops have TLP installed?

Regards
“What, me worry?” ― Alfred E. Newman

Manjaro Wiki: https://wiki.manjaro.org/
Arch Wiki: https://wiki.archlinux.org/
Pacman Rosetta: https://wiki.archlinux.org/index.php/Pacman/Rosetta

Offline schaschlik

  • Neuling
  • *
  • Posts: 13
  • Yes, it's pork!
  • Branch: testing
  • Desktop: Xfce
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #22 on: 13. March 2016, 08:24:07 »
I can confirm having TLP installed and running with unaltered settings
 ('powersave' setting for cpu scaling governor).

So observation described in https://bugzilla.kernel.org/show_bug.cgi?id=109051#c133
is also true for my machine (however max_cstate=2 being sufficient for me).

Also consider reading comment #135 in said bugzilla thread!
« Last Edit: 13. March 2016, 08:27:25 by schaschlik »

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #23 on: 13. March 2016, 10:49:36 »
@schaschlik I see, very interesting indeed. Linux is so awesome, I learn something new every day :)
I hope the bug gets solved asap
"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #24 on: 16. March 2016, 12:42:10 »
OK, guys, as I was saying, I previously installed a more new intel video driver xf86-video-intel-1:2.99.917+556+g0532031-0.1 but I didn't reboot after that; Now I reboot-ed and I can confirm I haven't faced my notebook hanging about 5-6 days yet :S I am still testing graphics starting heavy apps so I am to tell you my results; Not sure what modifications the newer driver has so please give me a tip;
I am using linux-4.0.9-1 + xf86-video-intel-1:2.99.917+556+g0532031-0.1 but still there is no guarantee it won't hang because of some previous reason so I am testing it right now  :-X
« Last Edit: 16. March 2016, 12:44:32 by mark001 »

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #25 on: 16. March 2016, 12:57:24 »
I am using linux-4.0.9-1 + xf86-video-intel-1:2.99.917+556+g0532031-0.1 but still there is no guarantee it won't hang because of some previous reason so I am testing it right now  :-X

How the heck are you using kernel 4.0.9? That has gone EOL and isn't part of Manjaro any more?

Current xf86-video-intel-1 is 1:2.99.917+560+gd16780-0.1

This suggests you are not updating your system.

Update to current before asking for help again. If you are running old (insecure) packages noone can replicate your issues and even so these are probably fixed by newer package versions - and this is something you have already found.

If you want a long-term support frozen-pool distro you are in the wrong place. Please see CentOS, Ubuntu LTS, or Slackware.
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #26 on: 18. March 2016, 14:56:32 »
How the heck are you using kernel 4.0.9? That has gone EOL and isn't part of Manjaro any more?

Current xf86-video-intel-1 is 1:2.99.917+560+gd16780-0.1

This suggests you are not updating your system.




Its fine I have it updated I just don't update all apps

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #27 on: 18. March 2016, 15:05:51 »
OK, I just found the video driver xf86-video-intel-1:2.99.917 has fixes info https://01.org/linuxgraphics/downloads/2015q3-intel-graphics-stack-release-0; seems like they do made many fixes in version 2.99.917;

Code: [Select]
Linux Kernel - 4.2
Mesa - 10.6.7
xf86-video-intel - 2.99.917
Libdrm - 2.4.64
Libva - 1.6.1
vaapi intel-driver - 1.6.1
Cairo - 1.14.2
Xorg Xserver - 1.17.2
Intel-gpu-tools - 1.12
Linux Kernel for Upcoming Platforms (SKL) - drm-intel-testing

as you can see, they recommend using kernel 4.2 but I am using 4.0 right now cause it seems supports both 4.2 and 4.0.x :) Really interesting to find out does the driver version really fixes my case; Please help to figure out

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #28 on: 18. March 2016, 16:24:51 »
Its fine I have it updated I just don't update all apps

No, it's not. You're not running the same software versions as the rest of the community so helping you becomes incredibly difficult. In addition, you likely have software versions with security vulnerabilities.

If you do not want a rolling release Manjaro is the wrong distro for you. I can't stress this strongly enough - either update fully or install another distro.


as you can see, they recommend using kernel 4.2

That's not what that means.

Quote
but I am using 4.0 right now

This is an old, outdated, and unsupported kernel. It receives no security updates. You are on your own.

Quote
Really interesting to find out does the driver version really fixes my case; Please help to figure out

Newer driver versions fix issues. This is why you should update your system (or switch to another distro).
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline Riddle-Master

  • Neuling
  • *
  • Posts: 12
  • I'm new. Be nice!
  • Branch: Testing
  • Desktop: XFCE4
  • GPU Card: Intel Iris 540
  • GPU driver: Non-free
  • Kernel: Linux45-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #29 on: 18. March 2016, 20:27:36 »
I am not sure what param value should be is it
Code: [Select]
intel_idle.max_cstate=2or
Code: [Select]
intel_idle.max_cstate=1?

Just adding an information, C_State 0 and 1 should have the same effect.
http://www.breakage.org/2012/11/14/processor-max_cstate-intel_idle-max_cstate-and-devcpu_dma_latency/
Nuc6i5SYK | 2x8 GB Kingston HyperX Impact DDR4 Ram | Samsung NVME 950 Pro | IIyama T2735MSC-B2