Random system freeze and journal errors?

Hi everyone,
Journal errors fixed. Mesa drivers updated. Still freezing sometimes. I suspect its systemd-swap when I run out of ram and it has to increase.
I'm considering creating a swap partition to discard this.
Any suggestions?
Thanks,
Best,
Facundo

You could try this. :grin:

https://wiki.manjaro.org/index.php?title=Add_a_/swapfile

1 Like

Thanks grinner.
I just created the swap and disabled systemd-swap.
Performance has improved a little:

free -h
              total        used        free      shared  buff/cache   available
Mem:          7,5Gi       2,7Gi       2,9Gi       460Mi       2,0Gi       4,1Gi
Swap:         8,0Gi       815Mi       7,2Gi

Best,
Facundo

Hi Everyone,
I'm still getting some random freezes even when swap isn't being used.
Is it possible that the cpu governor or TLP is messing with this?
What do you think?
Thanks.
Best,
Facundo

Hi Everyone.
Everything was working fine. Now I have these journal errors:

-- Logs begin at Mon 2019-04-15 06:44:17 -03, end at Mon 2019-04-15 17:19:00 -03. --
abr 15 06:44:24 pafa-pc systemd-logind[421]: Cannot find the ESP partition mount point.
abr 15 09:43:38 pafa-pc bluetoothd[563]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
abr 15 11:03:16 pafa-pc bluetoothd[563]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
abr 15 14:42:19 pafa-pc kernel: print_req_error: I/O error, dev sda, sector 248646904
abr 15 14:42:19 pafa-pc kernel: print_req_error: I/O error, dev sda, sector 248142168
abr 15 14:42:19 pafa-pc kernel: print_req_error: I/O error, dev sda, sector 261603008
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32700120
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32700121
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32700122
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32700123
abr 15 14:42:19 pafa-pc kernel: print_req_error: I/O error, dev sda, sector 261771624
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32721197
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32721198
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32721199
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32721200
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32721201
abr 15 14:42:19 pafa-pc kernel: Buffer I/O error on device sda1, logical block 32721202
abr 15 16:34:41 pafa-pc bluetoothd[563]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
abr 15 17:19:00 pafa-pc kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=986545 end=986546) time 205 us, min 894, ma>

Any ideas on how to fix?
(the bluetooth isn't a problem or the ESP)
Thanks.
Best,
Facundo

I don't know if I'll be able to help but I'm curious to know. What's your kernel? Can you paste the output of inxi -Fx Also as others have mentioned check your cpu load. Feel free to paste the output of top (that command helps me a lot when testing games)

this not good with disks in MBR ,
you have better save your home ,
and recheck param in your Bios to get only UEFI ( and boot on your USB install )

you will need to format sda in GPT and create a small /boot/efi ( fat32 100Mo boot & esp flag)

Here's the output:

 inxi -Fx
System:    Host: pafa-pc Kernel: 4.19.32-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: Xfce 4.13.3git-UNKNOWN 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 2349PS5 v: ThinkPad T430 serial: <root required> 
           Mobo: LENOVO model: 2349PS5 serial: <root required> UEFI [Legacy]: LENOVO v: G1ETB9WW (2.79 ) date: 02/19/2019 
Battery:   ID-1: BAT0 charge: 38.1 Wh condition: 40.1/56.2 Wh (71%) model: SANYO 45N1013 status: Charging 
           Device-1: hid-34:88:5d:88:3b:6d-battery model: Bluetooth Mouse M336/M337/M535 charge: N/A status: Discharging 
CPU:       Topology: Dual Core model: Intel Core i5-3320M bits: 64 type: MT MCP arch: Ivy Bridge rev: 9 L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20759 
           Speed: 1788 MHz min/max: 1200/3300 MHz Core speeds (MHz): 1: 1788 2: 2004 3: 2648 4: 1926 
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           Display: x11 server: X.Org 1.20.4 driver: intel unloaded: modesetting resolution: 1600x900~60Hz 
           OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile v: 4.2 Mesa 19.0.1 direct render: Yes 
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 
           Sound Server: ALSA v: k4.19.32-1-MANJARO 
Network:   Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e v: 3.2.6-k port: 6080 bus ID: 00:19.0 
           IF: enp0s25 state: down mac: 00:21:cc:d5:0e:7b 
           Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: kernel port: efa0 bus ID: 03:00.0 
           IF: wlp3s0 state: up mac: 60:67:20:e4:79:34 
Drives:    Local Storage: total: 447.13 GiB used: 106.52 GiB (23.8%) 
           ID-1: /dev/sda vendor: Kingston model: SA400S37480G size: 447.13 GiB 
Partition: ID-1: / size: 439.11 GiB used: 106.48 GiB (24.2%) fs: ext4 dev: /dev/sda1 
Sensors:   System Temperatures: cpu: 47.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 4005 
Info:      Processes: 214 Uptime: 14m Memory: 7.50 GiB used: 2.70 GiB (36.0%) Init: systemd Compilers: gcc: 8.2.1 Shell: bash 
           v: 5.0.2 inxi: 3.0.32 

Here's TOP

top - 09:53:53 up  3:08,  1 user,  load average: 0,55, 0,60, 0,45
Tasks: 216 total,   3 running, 212 sleeping,   0 stopped,   1 zombie
%Cpu0  :  7,9 us,  3,5 sy,  0,0 ni, 83,0 id,  0,0 wa,  5,4 hi,  0,3 si,  0,0 st
%Cpu1  :  6,5 us,  1,9 sy,  0,0 ni, 91,3 id,  0,0 wa,  0,3 hi,  0,0 si,  0,0 st
%Cpu2  :  4,0 us,  2,3 sy,  0,0 ni, 93,0 id,  0,0 wa,  0,3 hi,  0,3 si,  0,0 st
%Cpu3  :  2,3 us,  2,7 sy,  0,0 ni, 94,6 id,  0,0 wa,  0,0 hi,  0,3 si,  0,0 st
KiB Mem :  7861672 total,  2452152 free,  3144840 used,  2264680 buff/cache
KiB Swap:  8388604 total,  8388604 free,        0 used.  3908192 avail Mem 

you have better save your home ,
and recheck param in your Bios to get only UEFI ( and boot on your USB install )

you will need to format sda in GPT and create a small /boot/efi ( fat32 100Mo boot & esp flag)

How do I do this Stephane?
Thanks.

He's saying to save your data because you need to reformat your hard drive to have it boot in UEFI mode. Go into your bios and see if you can find where the different boot modes are there should be one that says UEFI or maybe even two and another that says legacy. If you don't have one that says legacy there should at least be something that says UEFI as long as you have that checked off boot into the live USB and manually partition it. The type of flags she's talking about with Boot and ESP refers to how you would set the efi partition that you need for UEFI. Make the mount point of that partition be /boot/efi and there's a section below that that says boot flags you need to set flags where you need to check off boot and ESP. the size of the EFI partition should be 200 or 300 meg I've made it both and never had an issue. set the root partition to be the rest of the drive you don't need any flags for this one you just need to tell it that the melting point is / . If you prefer do also create a partition for your home folder you can do that as well. I only did it once because my main hard drive on my desktop doesn't have that much space but my secondary does.

Oh I almost forgot you also need a Linux swap partition. The mount point for this is just called Linux swap. There aren't any boot flags for either the size of it needs to be the size of your RAM I've heard different things but that's what I'm stuck with and it's been fine.

Thanks for your detailed reply.
This means I have to format and reinstall my whole Manjaro system?

Yes assuming you didn't make a separate partition for /home. (If you did you still need to do everything I explained but just not touch the /home partition)

Ok. Thanks for this.
I really don't feel confident enough with these steps to be able to accomplish what you suggest.
Is there a tutorial on how to do this step by step or will the installation GUI guide me through this?
I hope you understand my concern since I have to reinstall my whole system on UEFI mode and I wouldn't want to make a mistake and have to go through it again.
Also is there any proof that my system is freezing do to this?
Thanks a million!
Best

I used this to teach me. (and still for reference) https://www.youtube.com/watch?v=ZLocHGrEfyQ&t=610s

1 Like

Thank you very much for this information. I've just finished the complete reinstallation of my system with the partitions specified by Stephane and LinuxLoverForever.
Sorry, but I just rebooted after system upgrade and I'm still getting the ESP mountpoint error!!!
Also my boot time is double now!!

[facundo@facundo-pc ~]$ systemd-analyze
Startup finished in 5.245s (firmware) + 1.179s (loader) + 2.580s (kernel) + 2.762s (userspace) = 11.767s 
graphical.target reached after 2.506s in userspace

[facundo@facundo-pc ~]$ journalctl -p err -b
-- Logs begin at Wed 2019-04-17 07:10:14 -03, end at Wed 2019-04-17 07:56:15 -03. --
abr 17 07:44:37 facundo-pc systemd-logind[536]: Cannot find the ESP partition mount point.

The good thing is that the system is rock stable so far. I'm installing my VMs on Virtualbox and running many things at the same time with no system freezes.

Also I discovered in Lenovo BIOS CSM support and Optimized OS . Disabled CSM and I have a different boot screen now. It looks pretty cool.
Bad thing is boot-time still. Disabled ModemManager service, masked LVM2 and its a bit better. Edited grub to 3 sec. I'm thinking of adding some flags to default cmd line.
Any suggestions?

In conclusion, I have gained system responsiveness and this makes me very happy. I think I can put up with a minimally slower boot than before because of this.
Many thanks to all of you Stephane and LinuxLoverForever in particular.
Best,
Facundo

Here's the output of efibootmgr:

[facundo@facundo-pc ~]$ efibootmgr
BootCurrent: 0018
Timeout: 0 seconds
BootOrder: 0018,0000,0001,0002,0003,0007,0008,0009,000A,000B,000C,000D,000E,000F,0010,0011,0012
Boot0000  Setup
Boot0001  Boot Menu
Boot0002  Diagnostic Splash Screen
Boot0003  Lenovo Diagnostics
Boot0004  Startup Interrupt Menu
Boot0005  ME Configuration Menu
Boot0006  Rescue and Recovery
Boot0007* USB CD
Boot0008* USB FDD
Boot0009* ATAPI CD0
Boot000A* ATA HDD0
Boot000B* ATA HDD1
Boot000C* ATA HDD2
Boot000D* USB HDD
Boot000E* PCI LAN
Boot000F* ATAPI CD1
Boot0010  Other CD
Boot0011* ATA HDD3
Boot0012  Other HDD
Boot0013* IDER BOOT CDROM
Boot0014* IDER BOOT Floppy
Boot0015* ATA HDD
Boot0016* ATAPI CD:
Boot0017* PCI LAN
Boot0018* Manjaro

After a lot of research I managed to change flags on efi partition through Gparted. It was as simple as that.
I learned a lot from this. Hope it helps anybody else who goes through the same problem!
Best!

1 Like

Thanks! This error was puzzling me for weeks.

1 Like

Glad this problem helped you solve yours too!
I'm wondering if any of you know about these errors I keep getting:

abr 24 14:18:36 facundo-pc kernel: ata1.00: exception Emask 0x0 SAct 0x880000 SErr 0x40000 action 0x6 frozen
abr 24 14:18:36 facundo-pc kernel: ata1: SError: { CommWake }
abr 24 14:18:36 facundo-pc kernel: ata1.00: failed command: READ FPDMA QUEUED
abr 24 14:18:36 facundo-pc kernel: ata1.00: cmd 60/00:98:80:a2:4e/01:00:36:00:00/40 tag 19 ncq dma 131072 in
                                            res 40/00:01:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
abr 24 14:18:36 facundo-pc kernel: ata1.00: status: { DRDY }
abr 24 14:18:36 facundo-pc kernel: ata1.00: failed command: READ FPDMA QUEUED
abr 24 14:18:36 facundo-pc kernel: ata1.00: cmd 60/00:b8:80:a3:4e/01:00:36:00:00/40 tag 23 ncq dma 131072 in
                                            res 40/00:01:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
abr 24 14:18:36 facundo-pc kernel: ata1.00: status: { DRDY }
abr 24 14:18:38 facundo-pc kernel: print_req_error: I/O error, dev sda, sector 911126624
abr 24 14:18:38 facundo-pc kernel: print_req_error: I/O error, dev sda, sector 911126784
abr 24 14:18:38 facundo-pc kernel: print_req_error: I/O error, dev sda, sector 227768712
abr 24 14:18:38 facundo-pc kernel: Buffer I/O error on device sda4, logical block 72497
abr 24 14:18:38 facundo-pc kernel: print_req_error: I/O error, dev sda, sector 911123072
abr 24 14:18:38 facundo-pc kernel: print_req_error: I/O error, dev sda, sector 911123328
abr 24 16:59:33 facundo-pc kernel: [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=1823570 end=1823571) time 147 us, min 89>

I ran a gsmartcontrol test on my SSD and no errors.
Any ideas?
Thanks-
Best,

For the ata errors see here.
For the i915 error try to disable GPU powersaving with kernel boot parameter i915.enable_psr=0 (source).

1 Like

I decided to try without any kernel boot parameters and this still gave errors.
Finally I have added these two parameters: i915.enable_psr=0 and libata.force=ata1.00:udma133.
So far no errors.
Just in case in helps anyone else.
Best!

2 Likes