Skip to content

System freezes (task blocked) and display echo 0 > /proc/sys/kernel/hung_task_timeout_secs #1811

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

Closed
Mister-X- opened this issue Jan 22, 2017 · 6 comments

Comments

@Mister-X-
Copy link

Using Kernel 4.4.39-v7_Re4son-Kali-Pi-TFT+ (which is based on this kernel with adafruit patches for TFT display and 802.11 injection patches),
I fairly often run into issue where the whole system becomes completely unusable, the same way it would be with a kernel panic (network connection die, cannot use keyboard/mouse, etc). I can often (but not always) trigger it by running svn up on a repo I'm working on (or run airmon-ng) and I can see the following on the screen (blocked task names vary, though):

img_20170115_181737

I tried different SD cards but that doesn't seem to be the issue as it happens even with brand new microSD cards.
It can happen 2 minutes after I started working on it or 10 minutes later, it's pretty much unpredicatable when it will happen.

@popcornmix
Copy link
Collaborator

We can't do much to help with custom kernels. Does the problem occur with a default raspbian install?
Are you overclocking?
How is the power supply? What does vcgencmd get_throttled report?

@Mister-X-
Copy link
Author

I haven't tried Raspbian and vcgencmd is not available on the system.

I don't think the patches affect any of the scheduling at all (driver for TFT screen and injection patch that affect the wireless drivers).

Anyway, I'm not overclocking, I even have heatsinks on the chips and the powersupply is Canakit 2.5A 5V.

@asbubam
Copy link

asbubam commented Feb 10, 2017

@Mister-X- Would you try that modify vm.dirty_background_ratio, vm.dirty_ratio value for reduce IO stress like this?

https://www.reddit.com/r/linux/comments/3h7w8f/better_linux_disk_caching_performance_with/

@Mister-X-
Copy link
Author

The values from one of the last posts (with local.conf) seems to do the trick. I've been having a svn up loop for a little while and it's still going strong.

@rodizio1
Copy link

(or run airmon-ng) [...]

I have similar issues with wifi cards. One thing I found is that Atheros cards don't like promiscous mode on the Pi, it'll crash in about 2 from 10 tries. Also, bringing up or down wifi cards or setting them to monitor mode only works flawless if there is nothing else going on on the USB bus. Ethernet cable plugged in and pump requesting an IP address at the same time while bringing up usb wifi interfaces cause USB crashes often.

The vm_dirty values you changed are not really a solution, just a workaround. OSes shouldn't freeze completely just because there is some disk access.

@JamesH65
Copy link
Contributor

Closing due to lack of activity. Reopen if you feel this issue is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants