ASUS Z450UAK with Manjaro 18 XFCE - journald takes 90%+ of CPU and laptop freezes all the time


#1

Hello all!

I recently installed Manjaro on mt SO’s laptop. Unfortunately there have been some major performance issues that I am unable to fix.

The system often freezes completely (sometimes not even shutdown works, and she gets stuck since there’s no access to the battery).

Using my limited knowledge, I ran htop and this was the output:

As you can see, journald has spikes of 90% CPU usage (sometimes in more than one core). We noticed that’s usually when the freezes and hang-ups happen.

So I took a look into journalctl and found out there was a PCI port error message. I then investigated further and found out it was the Wireless board.

I looked up everything I could online, but although there are similar issues, none provided a workable solution for me, or were close enough even. They’re just similar but not the same. Some of the steps I took come from these posts.

The network connection doesn’t seem slow.

Any help would be appreciated. She has a paper due tomorrow and is unable to work on it because of the constant freezing and sluggishness.

inxi:

System:    Host: nandoutche Kernel: 4.19.6-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 
           Desktop: Xfce 4.13.2git-UNKNOWN Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: Z450UAK v: 1.0 serial: <root required> 
           Mobo: ASUSTeK model: Z450UAK v: 1.0 serial: <root required> UEFI: American Megatrends 
           v: Z450UAK.202 date: 11/30/2016 
Battery:   ID-1: BAT0 charge: 31.9 Wh condition: 31.9/38.0 Wh (84%) model: ASUSTeK ASUS Battery 
           status: Not charging 
CPU:       Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP arch: Kaby Lake rev: 9 
           L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21704 
           Speed: 3100 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 3100 2: 3100 3: 3100 4: 3100 
Graphics:  Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           Display: x11 server: X.Org 1.20.3 driver: intel unloaded: modesetting 
           resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.5 Mesa 18.2.6 
           direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 
           Sound Server: ALSA v: k4.19.6-1-MANJARO 
Network:   Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASUSTeK driver: r8169 v: kernel 
           port: e000 bus ID: 02:00.2 
           IF: enp2s0f2 state: down mac: 60:45:cb:b7:41:20 
           Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter vendor: ASUSTeK driver: rtl8723be 
           v: kernel port: d000 bus ID: 03:00.0 
           IF: wlp3s0 state: up mac: 70:4d:7b:d1:45:b8 
Drives:    Local Storage: total: 931.51 GiB used: 29.56 GiB (3.2%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB 
Partition: ID-1: / size: 907.53 GiB used: 29.51 GiB (3.3%) fs: ext4 dev: /dev/sda3 
           ID-2: swap-1 size: 8.00 GiB used: 51.5 MiB (0.6%) fs: swap dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 44.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 179 Uptime: 15m Memory: 3.74 GiB used: 1.89 GiB (50.7%) Init: systemd Compilers: 
           gcc: 8.2.1 Shell: bash v: 4.4.23 inxi: 3.0.27

lspci:

[nanda@nandoutche ~]$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5286 PCI Express Card Reader (rev 01)
02:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 06)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter

lspci -vt:

[nanda@nandoutche ~]$ lspci -vt
-[0000:00]-+-00.0  Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
           +-02.0  Intel Corporation HD Graphics 620
           +-04.0  Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
           +-14.0  Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller
           +-14.2  Intel Corporation Sunrise Point-LP Thermal subsystem
           +-15.0  Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0
           +-15.1  Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1
           +-16.0  Intel Corporation Sunrise Point-LP CSME HECI #1
           +-17.0  Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode]
           +-1c.0-[01]--
           +-1c.4-[02]--+-00.0  Realtek Semiconductor Co., Ltd. RTS5286 PCI Express Card Reader
           |            \-00.2  Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller
           +-1c.5-[03]----00.0  Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
           +-1f.0  Intel Corporation Sunrise Point-LP LPC Controller
           +-1f.2  Intel Corporation Sunrise Point-LP PMC
           +-1f.3  Intel Corporation Sunrise Point-LP HD Audio
           \-1f.4  Intel Corporation Sunrise Point-LP SMBus

#2

Let’s see if you have some services that failed to load, and that makes journald to go nuts:
systemctl --failed

Also, do i see the updates icon needing attention? Make sure you read the announcement (stable branch i suppose) and proceed with the update.


#3

Thanks for your help!
This is the output from the command you specified:

systemctl --failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

And, yes, that was that was the updates icon. It’s an old screenshot, but I ran all updates and the issue still remains. I didn’t have the laptop at hand when I posted, so I used the screen I had. :stuck_out_tongue:


#4

You have to find some errors to match your issue…

systemctl status *journal*
journalctl -b -p3
inxi -Fxxxz

#5

The title said nothing about wifi so luckily I caught this post. Your RTL8723BE driver has a memory leak under kernel 4.19.

Install an older kernel and test to see if the issue persists. Keep trying the older kernels until you find one without this issue. That adapter has been nothing but problems for quite some time.

Which driver are you using and which driver options?


#6

journalctl outputted literally thousands of lines. They’re basically all the same:

-- Logs begin at Thu 2018-12-06 00:42:06 -02, end at Thu 2018-12-06 22:28:51 -02. --
dez 06 18:50:11 nandoutche kernel: tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x200] vs fed40080 f80
dez 06 18:50:11 nandoutche kernel: tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x200] vs fed40080 f80
dez 06 18:50:11 nandoutche kernel: kvm: disabled by bios
dez 06 18:50:11 nandoutche kernel: kvm: disabled by bios
dez 06 18:50:11 nandoutche kernel: kvm: disabled by bios
dez 06 18:50:11 nandoutche kernel: kvm: disabled by bios
dez 06 18:50:17 nandoutche kernel: pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
dez 06 18:50:17 nandoutche kernel: pcieport 0000:00:1c.5:   device [8086:9d15] error status/mask=00000001/00002000

From here on after it just repeats ad infinitum. That’s how I figured out this error was related to the Wireless card somehow. I don’t get any network issues, however, unlike several forum posts I read.

As to the kernel, I read the linked post and will try it out now. Here are the command outputs:

inxi -Fxxxz:

System:    Host: nandoutche Kernel: 4.19.6-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 
           Desktop: Xfce 4.13.2git-UNKNOWN tk: Gtk 3.24.1 info: xfce4-panel wm: xfwm4 
           dm: LightDM 1.28.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: Z450UAK v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: Z450UAK v: 1.0 serial: <filter> UEFI: American Megatrends 
           v: Z450UAK.202 date: 11/30/2016 
Battery:   ID-1: BAT0 charge: 30.5 Wh condition: 31.3/38.0 Wh (82%) volts: 7.6/7.6 
           model: ASUSTeK ASUS Battery type: Li-ion serial: <filter> status: Discharging cycles: 116 
CPU:       Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP arch: Kaby Lake rev: 9 
           L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21704 
           Speed: 700 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 700 2: 700 3: 701 4: 700 
Graphics:  Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:5916 
           Display: x11 server: X.Org 1.20.3 driver: intel unloaded: modesetting alternate: fbdev,vesa 
           resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.5 Mesa 18.2.6 
           compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:9d71 
           Sound Server: ALSA v: k4.19.6-1-MANJARO 
Network:   Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASUSTeK driver: r8169 v: kernel 
           port: e000 bus ID: 02:00.2 chip ID: 10ec:8136 
           IF: enp2s0f2 state: down mac: <filter> 
           Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter vendor: ASUSTeK driver: rtl8723be 
           v: kernel port: d000 bus ID: 03:00.0 chip ID: 10ec:b723 
           IF: wlp3s0 state: up mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 29.83 GiB (3.2%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB speed: 6.0 Gb/s 
           rotation: 5400 rpm serial: <filter> rev: 5J scheme: GPT 
Partition: ID-1: / size: 907.53 GiB used: 29.83 GiB (3.3%) fs: ext4 dev: /dev/sda3 
           ID-2: swap-1 size: 8.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 30.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 180 Uptime: 3h 45m Memory: 3.74 GiB used: 1.10 GiB (29.3%) Init: systemd v: 239 
           Compilers: gcc: 8.2.1 Shell: bash v: 4.4.23 running in: xfce4-terminal inxi: 3.0.27 

systemctl:

● systemd-journal-flush.service - Flush Journal to Persistent Storage
   Loaded: loaded (/usr/lib/systemd/system/systemd-journal-flush.service; static; vendor preset: disabled)
   Active: active (exited) since Thu 2018-12-06 18:50:11 -02; 3h 45min ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
  Process: 243 ExecStart=/usr/bin/journalctl --flush (code=exited, status=0/SUCCESS)
 Main PID: 243 (code=exited, status=0/SUCCESS)

dez 06 18:50:03 nandoutche systemd[1]: Starting Flush Journal to Persistent Storage...
dez 06 18:50:11 nandoutche systemd[1]: Started Flush Journal to Persistent Storage.

● systemd-journald-dev-log.socket - Journal Socket (/dev/log)
   Loaded: loaded (/usr/lib/systemd/system/systemd-journald-dev-log.socket; static; vendor preset: disabled)
   Active: active (running) since Thu 2018-12-06 18:50:02 -02; 3h 45min ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
   Listen: /run/systemd/journal/dev-log (Datagram)
   CGroup: /system.slice/systemd-journald-dev-log.socket

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

● systemd-journald-audit.socket - Journal Audit Socket
   Loaded: loaded (/usr/lib/systemd/system/systemd-journald-audit.socket; static; vendor preset: disabled)
   Active: active (running) since Thu 2018-12-06 18:50:03 -02; 3h 45min ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
   Listen: audit 1 (Netlink)
   CGroup: /system.slice/systemd-journald-audit.socket

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

● systemd-journald.socket - Journal Socket
   Loaded: loaded (/usr/lib/systemd/system/systemd-journald.socket; static; vendor preset: disabled)
   Active: active (running) since Thu 2018-12-06 18:50:02 -02; 3h 45min ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
   Listen: /run/systemd/journal/stdout (Stream)
           /run/systemd/journal/socket (Datagram)
   CGroup: /system.slice/systemd-journald.socket

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

● systemd-journald.service - Journal Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static; vendor preset: disabled)
   Active: active (running) since Thu 2018-12-06 18:50:03 -02; 3h 45min ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
 Main PID: 238 (systemd-journal)
   Status: "Processing requests..."
    Tasks: 1 (limit: 4454)
   Memory: 1.3G
   CGroup: /system.slice/systemd-journald.service
           └─238 /usr/lib/systemd/systemd-journald

dez 06 18:53:27 nandoutche systemd-journald[238]: Missed 7 kernel messages
dez 06 18:53:27 nandoutche systemd-journald[238]: Missed 7 kernel messages
dez 06 18:53:27 nandoutche systemd-journald[238]: Missed 7 kernel messages
dez 06 18:53:27 nandoutche systemd-journald[238]: Missed 11 kernel messages
dez 06 18:53:27 nandoutche systemd-journald[238]: Missed 19 kernel messages
dez 06 18:53:27 nandoutche systemd-journald[238]: Missed 7 kernel messages
dez 06 18:53:27 nandoutche systemd-journald[238]: Missed 11 kernel messages
dez 06 18:53:27 nandoutche systemd-journald[238]: Missed 15 kernel messages
dez 06 22:25:29 nandoutche systemd-journald[238]: Missed 9627 kernel messages
dez 06 22:25:29 nandoutche systemd-journald[238]: Missed 2 kernel messages


#7

You probably have a HW problem. Try to re-seat your PCI-E cards.
Which one is this?

lspci -nn | grep 9d15

#8

I didn’t have this problem before installing Linux. Unfortunately the laptop is still on warranty so I cannot open it. We really want to keep using Linux, so I want to try to fix this before reinstalling Windows.

This is what I got:

00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 [8086:9d15] (rev f1)

Although from my early explorations (as pasted in the parent topic), I deduced this is the Realtek Wireless adapter, RTL8732BE.

@tbg Downgrading the kernel worked for a while, but htop still showed 90%+ CPU usage and the laptop is freezing up again after a couple hours of “heavy use” (Firefox with 3 tabs and MSOffice Online). The drivers are the default ones, I tried looking it up better but couldn’t find anything else (I did it with mhwd, is that correct? It only shows the GPU drivers).

Just in case: if I somehow disabled the adapter and wasted one of the 3 USB ports with a WIFI dongle adapter, would that fix things?


#9

Which kernels did you test. and which kernel are you currently using.

You could also switch to the testing branch and test k 4.20.

If you can disable the adapter in bios I would test that out.