Machine randomly locking up after system update

My mother’s computer started locking up at random times, sometimes even a few minutes after starting up though at other times it may not do so for hours. This seems to have started after a Manjaro update late last month. It’s very annoying and I’d appreciate any advice on what I should try to see what’s happening: I forgot the exact dmesg and similar commands I’m supposed to post.

What I did so far was install the amdgpu-experimental package: The machine uses an older video card that still picks radeonsi by default. However neither module appears to influence the crash, I doubt a graphics issue is the cause.

I also left the top command running in the foreground to see if it would capture a memory leak, as I suspect Firefox could be producing one. The result frozen on the screen doesn’t seem to suggest one per say. What did surprise me is that it claims Firefox is using 163% or 109% CPU which is impossible: What could cause such an abnormal reading for the top two processes?

One thing I can suggest at the moment is how much free space is left on the filesystem?

df -h

You might need to clear old downloaded packages from the Pacman cache, etc.:

du -h /var/cache/pacman/pkg/

Free space isn’t an issue: I periodically see the bar and label in Dolphin, both the root and home drives have plenty of free GB’s on them.

OK thanks, it’s always worth checking (I have run into similar issues in the past).

As for the Firefox readings, I’ve seen it exceed “100%” before (but probably not on this system, Firefox is known to be a memory hog (and leaks like a sieve when playing lots of YouTube videos, for example).

It would be an idea to post results of inxi -zv8 (which I should have said in my previous post).

I’ve seen people have issues with insufficient RAM, no SWAP defined etc. and this will help to show us what system we are looking at.

Thanks!

1 Like

How about to post your system infos first?

inxi --admin --verbosity=5 --filter --no-host --width

And your errors from the last boot:

journalctl -p err -b -1

Or @MirceaKitsune could adjust settings (Properties) in Pamac:
Cache
Number of versions of each package to keep: 1 or max 2

How is the computer locking up? More info’s around this could helpfull…

Did you try to revive him with switching to TTY or resetting desktop with crtl+shift+12 or did you try clear memory with Reisub hotkeys?

Free memory is alt+print+f if you have enabled REISUB.

2 Likes

She mainly browses Facebook and news article sites that are very lightweight. I’m still in the process of determining whether Firefox is the trigger and exactly how this happens, hard to know as the crashes are rare enough that you can’t reproduce them on demand to get a clear verdict.

Locking up means total freeze: Can’t move the mouse cursor, can’t toggle the num lock / caps lock keyboard LED’s, can’t switch to another TTY… just the image frozen on the screen. I think red HDD led appeared to stay on, but not at full intensity rather as if it may still be working.

System:
  Kernel: 6.10.6-10-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.10-x86_64
    root=UUID=fbeb3edb-db7c-4de4-abc4-5abe718ff4ce rw radeon.si_support=0
    radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 quiet
    apparmor=1 security=apparmor udev.log_priority=3
  Console: pty pts/1 DM: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop Mobo: Gigabyte model: X58A-UD7 serial: <superuser required>
    uuid: <superuser required> BIOS: Award v: F7 date: 08/24/2010
Memory:
  System RAM: total: 24 GiB available: 23.47 GiB used: 1.58 GiB (6.7%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 48 GiB slots: 6 modules: 6 EC: None
    max-module-size: 8 GiB note: est.
  Device-1: A0 type: N/A size: 4 GiB speed: 800 MT/s volts: N/A width (bits):
    data: 4 total: 256 manufacturer: N/A part-no: N/A serial: N/A
  Device-2: A1 type: N/A size: 4 GiB speed: 800 MT/s volts: N/A width (bits):
    data: 4 total: 256 manufacturer: N/A part-no: N/A serial: N/A
  Device-3: A2 type: N/A size: 4 GiB speed: 800 MT/s volts: N/A width (bits):
    data: 4 total: 256 manufacturer: N/A part-no: N/A serial: N/A
  Device-4: A3 type: N/A size: 4 GiB speed: 800 MT/s volts: N/A width (bits):
    data: 4 total: 256 manufacturer: N/A part-no: N/A serial: N/A
  Device-5: A4 type: N/A size: 4 GiB speed: 800 MT/s volts: N/A width (bits):
    data: 4 total: 256 manufacturer: N/A part-no: N/A serial: N/A
  Device-6: A5 type: N/A size: 4 GiB speed: 800 MT/s volts: N/A width (bits):
    data: 4 total: 256 manufacturer: N/A part-no: N/A serial: N/A
CPU:
  Info: model: Intel Xeon W3670 bits: 64 type: MT MCP arch: Nehalem level: v2
    built: 2008-10 process: Intel 45nm family: 6 model-id: 0x2C (44) stepping: 2
    microcode: 0x1F
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 1726 high: 2394 min/max: 1596/3193 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1619 2: 1596
    3: 1619 4: 1596 5: 2394 6: 1596 7: 1627 8: 1596 9: 2128 10: 1596 11: 1620
    12: 1731 bogomips: 77755
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
    SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: conditional; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Curacao PRO [Radeon R7 370 / R9 270/370 OEM] vendor: Gigabyte
    driver: amdgpu v: kernel alternate: radeon arch: GCN-1 code: Southern Islands
    process: TSMC 28nm built: 2011-20 pcie: gen: 2 speed: 5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s ports: active: DP-1 off: HDMI-A-1
    empty: DVI-D-1,DVI-I-1 bus-ID: 03:00.0 chip-ID: 1002:6811 class-ID: 0300
    temp: 45.0 C
  Device-2: Microsoft LifeCam HD-5000 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-3:4
    chip-ID: 045e:076d class-ID: 0102
  Display: unspecified server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.2
    compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
    alternate: fbdev,vesa dri: radeonsi gpu: amdgpu tty: 123x27
  Monitor-1: DP-1 model: ViewSonic VX2458 Series serial: <filter> built: 2019
    res: 1920x1080 dpi: 94 gamma: 1.2 size: 521x293mm (20.51x11.54")
    diag: 600mm (23.6") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-1 model: Samsung built: 2006 res: 1280x720 dpi: 203
    gamma: 1.4 size: 160x90mm (6.3x3.54") diag: 184mm (7.2") ratio: 16:9 modes:
    max: 1280x720 min: 640x480
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi inactive: x11
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: mesa v: 24.1.6-arch1.1
    note: console (EGL sourced) renderer: llvmpipe (LLVM 18.1.8 128 bits), AMD
    Radeon R7 370 Series (radeonsi pitcairn LLVM 18.1.8 DRM 3.57
    6.10.6-10-MANJARO)
  API: Vulkan v: 1.3.279 layers: N/A device: 0 type: discrete-gpu name: AMD
    Radeon R7 370 Series (RADV PITCAIRN) driver: mesa radv v: 24.1.6-arch1.1
    device-ID: 1002:6811 surfaces: wayland
Audio:
  Device-1: Intel 82801JI HD Audio vendor: Gigabyte GA-EP45-DS5/GA-EG45M-DS2H
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:3a3e
    class-ID: 0403
  Device-2: AMD Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000
    Series] vendor: Gigabyte driver: snd_hda_intel v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 03:00.1
    chip-ID: 1002:aab0 class-ID: 0403
  Device-3: Microsoft LifeCam HD-5000 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-3:4
    chip-ID: 045e:076d class-ID: 0102
  API: ALSA v: k6.10.6-10-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.2.3 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-3: PulseAudio v: 17.0 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module tools: pacat,pactl,pavucontrol
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 8e00 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: de00 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp7s0 state: down mac: <filter>
  Device-3: Realtek RTL-8185 IEEE 802.11a/b/g Wireless LAN
    driver: rtl818x_pci v: kernel port: 9e00 bus-ID: 08:00.0 chip-ID: 10ec:8185
    class-ID: 0200
  IF: wlp8s0 state: down mac: <filter>
  Info: services: NetworkManager, sshd, systemd-timesyncd
Drives:
  Local Storage: total: 471.36 GiB used: 95.23 GiB (20.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: A-Data model: SU900 size: 238.47 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD
    serial: <filter> fw-rev: 8HD scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD2500AAKX-753CA1 size: 232.89 GiB block-size: physical: 512 B
    logical: 512 B speed: 6.0 Gb/s tech: N/A serial: <filter> fw-rev: 1H19
    scheme: GPT
  Optical-1: /dev/sr0 vendor: TSSTcorp model: CDDVDW SH-222BB rev: SB00
    dev-links: cdrom
Partition:
  ID-1: / raw-size: 238.47 GiB size: 233.67 GiB (97.99%) used: 43.3 GiB (18.5%)
    fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: Manjaro
    uuid: fbeb3edb-db7c-4de4-abc4-5abe718ff4ce
  ID-2: /home raw-size: 232.88 GiB size: 228.17 GiB (97.98%)
    used: 51.93 GiB (22.8%) fs: ext4 dev: /dev/sdb1 maj-min: 8:17 label: Home
    uuid: 7e1d4faf-5f31-42fa-9962-4cc9c0a1a51e
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 34.0 C mobo: 31.0 C gpu: amdgpu temp: 45.0 C
  Fan Speeds (rpm): cpu: 938 fan-2: 0 fan-3: 0 fan-4: 1073
  Power: 12v: N/A 5v: 2.96 3.3v: N/A vbat: 3.22
Info:
  Processes: 286 Power: uptime: 2m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 9.37 GiB services: org_kde_powerdevil,upowerd
    Init: systemd v: 256 default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1612 libs: 444 tools: pamac pm: flatpak pkgs: 0
    Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: Bash v: 5.2.32
    running-in: pty pts/1 (SSH) inxi: 3.3.35

The output for the journalctl command is much larger and seemingly more wholesome so I put that on pastebin. It’s filled with “stack trace of thread” errors apparently, both Firefox and redeonsi are mentioned though I’m now running it on amdgpu so I don’t see how that is used.

I suggest you boot a live ISO and run a filesystem check on the partitions

While you are at it - fsck - in any situation a little swap is better than none.

For a GPU that old I don’t think any experimental package will do any good.

I suggest you cut 32G from the end of your root partition and reassign as swap.

32G is really just a number, taking system memory 24G plus guessing 8GB video ram, see → Swap - Manjaro - as always decide for yourself what may be adequate.

Then activate zswap - ArchWiki

not especially strange as that gives you a total of 1200% cpu

But these numbers are quite strange - certainly indicates some runaway processes.

  • Firefox → consuming 12g virtual memory
  • Isolated Web Co → consuming 15g virtual memory
  • WebExtension → consuming 18g virtual memory
1 Like

So if your Keyboard LED’s are not blinking, like Num/Capslock/Scroll.

That means you can maybe revive your system with REISUB hotkeys,
atleast you dont need to hardpower down your system:

The journal is also filled with Firefox error’s, i hope your mother is using firefox with Ublock Origins to block all the Popups.

1 Like

I use ZSwap memory compression on my laptop: That one is much older, as in only 4GB of RAM old… it’s usable when I’m on a trip although barely, I still need to open many applications one at a time. Yet even my laptop doesn’t lock up like that, it only freezes for a few seconds when its memory gets full.

We both have UBlock Origin installed for ages, in the past we used Adblock Plus but I switched them to UBlock a while back. The main risk with Firefox used to be memory leaks, some sites would cause it to use a lot of GB for no apparent reason. However that doesn’t appear to be what’s happening here.

Checked Dolphin again: Both drives are barely using any disk space, well over 100 GB free on both / and /home. I believe I maxed that motherboard at 24 GB of RAM, it’s one of the few triple-channel memory models that existed 12 years ago. As such memory should be more than plenty, I decided not to get a SWAP partition for that reason, especially since I heard they can wear out an SSD and I already lost my first one on which I had SWAP years ago.

Swap/Pagefile could wear out a SSD mainly under Windows.

But for Linux there will not much swap usage, when there is enough free RAM available.

Swap is recommend, no matter how much RAM you have.

Anyways, when ram is the problem you can fix it instantly with REISUB, i had system freezes in the past because my swap partition wasn’t big enough.

Reisub is just a work around, but it helps a lot.

Is there a reason why you ignoring this feature?

This happened to me after the last update too. Not long after that update another update for firefox showed up. After updating it has not happened since.

While you do have a fairly decent amount of RAM…
You have no SWAP. Which would mean a lockup when that memory capacity is reached.

And by the way. I suggest zram … and if used, zswap should be disabled.

https://wiki.archlinux.org/title/Zram

I recently sent someone a quick tut on that so here it is in case helpful…

https://0x0.st/XwZr.txt

1 Like

What Firefox update fixed it for you? Was it posted yesterday? I think it froze less today, I’ll ask her tomorrow to be sure, maybe it at least improves it.

Also does REISUB still work? I remember hearing about this ancient combo ages ago, I think it did nothing when I attempted it once but that was a while ago, not sure what good it does if the keyboard itself is no longer being processed though. Manjaro doesn’t even enable Control + Alt + Backspace to kill the compositor by default, I used to have that in openSUSE and it was useful to recover from some freezes and at least do a clean restart.

And we can use control+alt+f12 :man_shrugging:

Not sure if you already know this, you can enable it in the keyboard options in the keyboard settings.

System Settings → Keyboard → Key Bindings → Key sequence to kill the X server

Yes it works, if you’ve configured it. If the system is locked up, but the kernel isn’t then it would work. The link below, already posted by @Kobold, tells you how to set it up.

When @Kobold says REISUB, in this case he means the magic sys req key used with f (ie Ctrl + Alt + F), which would call the OOM killer. REISUB would restart your computer.

https://www.kernel.org/doc/html/v6.11-rc6/admin-guide/sysrq.html

@Kobold

That takes you to tty12.

Ups i meant crlt+shift+12.