[solved !!] kworker is killing my machine ...

Questions about software.
User avatar
amnesix
Posts: 99
Joined: 09 Nov 2013 12:46
Location: Berlin (Allemagne)
Contact:

[solved !!] kworker is killing my machine ...

Postby amnesix » 03 Jul 2018 09:46

Hi,,

Several times per day, my machine starts to overheat, I see one of my cores that takes 12-15% of CPU, and only way to stop that is to restart.

It can happen with just firefox running !!

Using the task manager, I see that the process that does that is KWORKER. I've been looking in the Initernet, and the problem is «known», but mostly not «solved». One thread that was «solved» gave as workaround (and not as solution) this :

Code: Select all

echo 10000 > /proc/sys/vm/dirty_writeback_centisecs
which made no effect by me (the thread was there : https://www.linuxquestions.org/question ... 175563563/

Any idea ?

kurotsugi
Posts: 2065
Joined: 09 Jan 2014 00:17

Re: kworker is killing my machine ...

Postby kurotsugi » 03 Jul 2018 11:51

first of all, please run "inxi -Fxz" and tell us the result. these problem commonly related to the kernel and it's quite hard to fix. however, most of them related with condition where the system doesn't have enough resource to use.
It can happen with just firefox running !!
you shouldn't underestimate a browser. if you're not using games or watching HD videos, browser would the most resource hungry thing in your system, especially if you're watching youtube videos.

I haven't see your system configuration yet. it would be depends on your system configuration but the outline would be that we might need to regulate the resource in your system either by balancing the load, tweaking the kernel, or throttling down your CPU.

User avatar
amnesix
Posts: 99
Joined: 09 Nov 2013 12:46
Location: Berlin (Allemagne)
Contact:

Re: kworker is killing my machine ...

Postby amnesix » 04 Jul 2018 20:03

Thanks for responding !

Code: Select all

System:    Host: lapolivier Kernel: 4.9.0-6-amd64 x86_64 (64 bit gcc: 6.3.0)
           Desktop: Xfce 4.12.3 (Gtk 2.24.30) Distro: SolydXK
Machine:   Device: laptop System: SAMSUNG product: RC530/RC730 v: 02WD
           Mobo: SAMSUNG model: RC530/RC730 v: 02WD
           BIOS: American Megatrends v: 02WD.M007.20110810.PSA date: 08/10/2011
Battery    BAT1: charge: 45.6 Wh 97.0% condition: 47.0/52.0 Wh (90%)
           model: SAMSUNG status: N/A
CPU:       Quad core Intel Core i7-2670QM (-HT-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 17560
           clock speeds: max: 3100 MHz 1: 1095 MHz 2: 813 MHz 3: 963 MHz
           4: 1010 MHz 5: 817 MHz 6: 1146 MHz 7: 934 MHz 8: 1275 MHz
Graphics:  Card-1: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           bus-ID: 00:02.0
           Card-2: NVIDIA GF108M [GeForce GT 540M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.2 drivers: modesetting,nouveau (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz, 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel Sandybridge Mobile
           GLX Version: 3.0 Mesa 13.0.6 Direct Rendering: Yes
Audio:     Card Intel 6 Series/C200 Series Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.9.0-6-amd64
Network:   Card-1: Intel Centrino Wireless-N 100
           driver: iwlwifi bus-ID: 02:00.0
           IF: wlan0 state: down mac: <filter>
           Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: b000 bus-ID: 03:00.0
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 750.2GB (34.3% used)
           ID-1: /dev/sda model: WDC_WD7500BPVT size: 750.2GB
Partition: ID-1: / size: 15G used: 6.5G (48%) fs: ext4 dev: /dev/sda6
           ID-2: /home size: 34G used: 9.7G (31%) fs: ext4 dev: /dev/sda7
           ID-3: swap-1 size: 25.31GB used: 0.00GB (0%) fs: swap dev: /dev/sda1
Sensors:   System Temperatures: cpu: 64.0C mobo: 64.0C gpu: 56.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 237 Uptime: 4 min Memory: 1428.3/7898.2MB
           Init: systemd runlevel: 5 Gcc sys: 6.3.0
           Client: Shell (bash 4.4.121) inxi: 2.3.5 
Hope this will help !

kurotsugi
Posts: 2065
Joined: 09 Jan 2014 00:17

Re: kworker is killing my machine ...

Postby kurotsugi » 05 Jul 2018 17:50

there are several things we can do. you can pick whicever you like. first of all, there are some things you might to know. it's true that the problem is known but we never know what caused it. we know that:
1. it affect intel chip
2. it happened with pstate driver
3. it happened on swapless (i.e : no swap partition) system
4. it happened when the ram free space is low

I have this problem on several occasion but each of them have different way fix. the possible solution would be:
1. we can start by installing irqbalance. it should balance the system load and make the system more stable.
2. disable pstate driver. you can do it by adding "intel_pstate=disable" on your boot parameter.
3. reduce kernel swappiness. you can do it by editing the sysctl.conf file.

Code: Select all

vm.swappiness=20
vm.dirty_writeback_centisecs=1000
AFAIK directly using echo command won't work. you need either root access or use sysctl to correctly do that.
4. install liquorix kernel.
5. regularly clear mem cache. "sysctl -w vm.drop_caches = 3". it's the same principle with sysctl but it used for single parameter.
6. replace the cooler paste on your cpu.
7. install tlp and throttling down the cpu. it's lil bit long and complicated so I'll explain later if none of these thing works.

these things are ordered by difficulties. you can start from top and continue one by one till the bottom.

User avatar
amnesix
Posts: 99
Joined: 09 Nov 2013 12:46
Location: Berlin (Allemagne)
Contact:

Re: kworker is killing my machine ...

Postby amnesix » 06 Jul 2018 13:12

Thank you for taking the time to help !

Problem is that I'm just a user, and I have actually no idea what you are talking about. :(

So : what is involved in «installing irqbalance ? The package «irqbalance» is already installed. Is there anything I should do ? Where should write a boot parameter ?

I have a swap partition, more double sized as my RAM. I have edited sysctl.conf and added what you wrote.

I will write an update.

And, again, thank you !

kurotsugi
Posts: 2065
Joined: 09 Jan 2014 00:17

Re: kworker is killing my machine ...

Postby kurotsugi » 07 Jul 2018 01:33

yo can edit /etc/default/grub and add that parameter next to "quiet splash". after that, run "sudo update grub". as liquorix, you can visit liquorix.net to get the complete guide about liquorix kernel.

User avatar
amnesix
Posts: 99
Joined: 09 Nov 2013 12:46
Location: Berlin (Allemagne)
Contact:

Re: kworker is killing my machine ...

Postby amnesix » 07 Jul 2018 04:45

As it is, since I made what you suggested with the /etc/sysctl.conf file and added

Code: Select all

vm.swappiness=20
vm.dirty_writeback_centisecs=1000
I haven't had the dreaded symptoms (one of my cores at full capacity and my machine overheating >95°C, and the culprit designed my the task manager as «kworker»). Should this stay as it is, I will soon mark the topic as solved.

As usual, I want to thank you !

I must say that my problem had become much more acute the day I installed SolydX 201807 (Clean install, but using my «fixed» /home). I used to have this problem once or twice a day on a bad day, but since the day I installed 201807, I got to reboot my machine more than 5 times pro day, at least. This was not good.

Again, thank you for your valuable advices !

User avatar
amnesix
Posts: 99
Joined: 09 Nov 2013 12:46
Location: Berlin (Allemagne)
Contact:

Re: kworker is killing my machine ...

Postby amnesix » 11 Jul 2018 06:46

72 hours without an incident... :)

Thank you !


Return to “Software”

Who is online

Users browsing this forum: No registered users and 2 guests