You are not logged in.

#1 2021-12-05 15:10:09

Darktortue
Member
Registered: 2021-07-09
Posts: 3

Very frequent system freeze

Hi, I have an issue with my laptop for a few months now. I first started with Manjaro as my distrib and I don't remember having freezes but I then switched on arch and since, I have frequent system freezes. It happens almost everytime I'm dealing with large files (copy for example) or when I've got a virtual machine running with VMWare.

I'm pretty sure this is an issue related to my disk. My disk is an Intel NVME. Here's the model : intel hbrpeknx0202a
The disk is encrypted btw.

I tried to disable APST by adding

nvme_core.default_ps_max_latency_us=0

to

/etc/default/grub

but after reboot the output of the command

cat /sys/module/nvme_core/parameters/default_ps_max_latency_us

is : 10000 and not the expected 0.

journalctl did not seem to indicate anything regarding this issue

Kernel version :

Linux 5.15.6-arch2-1 x86_64 
nvme smart-log /dev/nvme0
Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
critical_warning                        : 0
temperature                             : 45 C (318 Kelvin)
available_spare                         : 100%
available_spare_threshold               : 10%
percentage_used                         : 2%
endurance group critical warning summary: 0
data_units_read                         : 6460276
data_units_written                      : 16392311
host_read_commands                      : 58241575
host_write_commands                     : 255830802
controller_busy_time                    : 3081
power_cycles                            : 278
power_on_hours                          : 1913
unsafe_shutdowns                        : 61
media_errors                            : 0
num_err_log_entries                     : 0
Warning Temperature Time                : 0
Critical Composite Temperature Time     : 0
Thermal Management T1 Trans Count       : 0
Thermal Management T2 Trans Count       : 0
Thermal Management T1 Total Time        : 0
Thermal Management T2 Total Time        : 0
badblocks -v /dev/nvme0
 
Checking blocks 0 to 500107607
Checking for bad blocks (read-only test): 
done                                                 
Pass completed, 0 bad blocks found. (0/0/0 errors)
cat /etc/fstab
 
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/vg-root
UUID=d34fabb8-088f-40d0-b93c-be097f21472b       /               ext4            rw,noatime      0 1

# /dev/mapper/vg-home
UUID=0475664b-8538-4ba7-ba29-85b9a33111bb       /home           ext4            rw,noatime      0 2

# /dev/nvme0n1p2
UUID=2FF6-29DA          /efi            vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro       0 2

# /dev/mapper/vg-swap
UUID=7d2c946d-3954-42fc-933f-a3509f759b79       none            swap            defaults        0 0

Offline

#2 2021-12-05 15:25:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,946

Re: Very frequent system freeze

I tried to disable APST by adding

nvme_core.default_ps_max_latency_us=0
to

/etc/default/grub
but after reboot the output of the command

cat /sys/module/nvme_core/parameters/default_ps_max_latency_us
is : 10000 and not the expected 0.

/etc/default/grub does nothing unless you run grub-mkconfig


/dev/mapper/vg-swap

Swap on LVM has a record of being a massive bottleneck - did you have this layout on manjaro as well?
Do you have enough RAM to test the behavior w/ "swapoff /dev/mapper/vg-swap"?

Offline

#3 2021-12-05 15:36:10

Darktortue
Member
Registered: 2021-07-09
Posts: 3

Re: Very frequent system freeze

Yes I forgot to mention but of course I did

grub-mkconfig

Honestly I don't remember on Manjaro. It was months ago and all I remember is that I did the automatic encrypted install.

I have 16go RAM. Is it enough to remove LVM Swap ?

Offline

#4 2021-12-05 15:46:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,946

Re: Very frequent system freeze

For testing purposes and unless you're about to charge the system w/ a huge amount of anon pages (transient data) - yes.

Offline

#5 2021-12-05 15:49:13

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Very frequent system freeze

Have you installed the relevant CPU µcode package? Some processors need the fixes to avoid instability.

Darktortue wrote:

Yes I forgot to mention but of course I did

grub-mkconfig

That doesn't update the configuration unless you direct the output to the correct location.

Darktortue wrote:

I have 16go RAM. Is it enough to remove LVM Swap ?

Probably not. Linux handles OOM events really badly.


Jin, Jîyan, Azadî

Offline

#6 2021-12-05 16:52:21

Darktortue
Member
Registered: 2021-07-09
Posts: 3

Re: Very frequent system freeze

Yes intel ucode is correctly installed and configured in grub, initrd etc...

I forgot to add the -o option and now, APST is correctly disable.

I did try to disable temporarily my LVM Swap and it looked like my system was more responsive (maybe it's just in my head) but I still got some random freezes for like 5-10 seconds...

Last edited by Darktortue (2021-12-05 16:55:13)

Offline

Board footer

Powered by FluxBB