Hello,
I’ve noticed lately a strange behavior on my install due to my recent heavier use of RAM.
My system has 32GB of RAM, it is detected by the System Monitor, /proc/meminfo, and everything that seem to handle RAM.
The thing is that from time to time, I’ve noticed my computer freezing and slowing down, which made me curious about what was happening. Every time it slows down, the swap usage goes up, and it happens always around the use of 16GB of RAM, which is half what I’ve got.
Finding that strange, I’ve tried lowering the swappiness of the system, which changed nothing, and disabling completely the swap, which lead to a complete system freeze around 16GB use of RAM, kind of expected.
I’ve reproduced this by firing my firefox instance which has several hundreds of tabs (I know, but you’ll never know when you’ll need these tabs), and 2 or 3 instances of Jetbrain’s IDEs which are based on java (no docker or anything that could have “invisible” use of RAM).
This tends to push the overall RAM use to above 16GB.
When this happens, or near this happening (so around the use of 16GB RAM), I get a notice from some installed by default app called nohang that tells me that not much RAM is left and that I should close applications, even though I have almost 16GB free RAM to use.
Strangest thing is that it doesn’t happen when allocating more than 16GB block of memory through nohang’s own check (nohang -m).
Doing that, I can use my 32GB of ram without any swap happening.
I checked nohang’s config without seeing anything strange, and I cannot identify anything out of the ordinary overall that would explain this kind of behavior, so if anybody has a clue …
–
garuda-inxi:
System:
Kernel: 6.5.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=2a2936a6-cd5b-4072-b26c-35c719f86da7 rw rootflags=subvol=@
quiet
cryptdevice=UUID=47f3b1d0-c3ce-4a6e-bca6-cfe8ae775c2c:luks-47f3b1d0-c3ce-4a6e-bca6-cfe8ae775c2c
root=/dev/mapper/luks-47f3b1d0-c3ce-4a6e-bca6-cfe8ae775c2c
rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.10 info: latte-dock
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: CSL- GmbH & KG product: 5930 v: N/A
serial: <superuser required>
Mobo: ASUSTeK model: ROG STRIX X570-E GAMING WIFI II v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 4204
date: 02/24/2022
CPU:
Info: model: AMD Ryzen 9 5900X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
Topology: cpus: 1x cores: 12 tpc: 2 threads: 24 smt: enabled cache:
L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB desc: 12x512 KiB
L3: 64 MiB desc: 2x32 MiB
Speed (MHz): avg: 3578 high: 4563 min/max: 2200/4950 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3639 2: 3623
3: 3616 4: 3653 5: 4563 6: 4491 7: 3593 8: 3652 9: 3590 10: 4491 11: 3617
12: 2200 13: 3700 14: 3595 15: 3139 16: 2200 17: 3590 18: 2869 19: 3593
20: 3611 21: 3593 22: 4072 23: 3609 24: 3580 bogomips: 177252
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6900 XT] driver: amdgpu v: kernel
arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie:
gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-1,DP-2
empty: DP-3,HDMI-A-1 bus-ID: 0d:00.0 chip-ID: 1002:73af class-ID: 0300
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.1
compositor: kwin_wayland driver: X: loaded: amdgpu
unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
gpu: amdgpu d-rect: 5120x1440 display-ID: 0
Monitor-1: DP-1 pos: primary,left res: 2560x1440 size: N/A modes: N/A
Monitor-2: DP-2 pos: right res: 2560x1440 size: N/A modes: N/A
API: OpenGL v: 4.6 Mesa 23.1.7-arch1.1 renderer: AMD Radeon RX 6900 XT
(navi21 LLVM 16.0.6 DRM 3.54 6.5.3-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0d:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0f:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: FiiO K7 driver: snd-usb-audio type: USB rev: 2.0 speed: 480 Mb/s
lanes: 1 mode: 2.0 bus-ID: 7-3:4 chip-ID: 2972:0047 class-ID: fe01
Device-4: Elgato Systems GmbH Wave:3 driver: snd-usb-audio type: USB
rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 7-4:7 chip-ID: 0fd9:0070
class-ID: fe01 serial: <filter>
API: ALSA v: k6.5.3-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.80 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: MEDIATEK MT7921K Wi-Fi 6E 80MHz driver: mt7921e v: kernel pcie:
gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 14c3:0608
class-ID: 0280
IF: wlp5s0 state: down mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 06:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-3: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 07:00.0
chip-ID: 8086:1539 class-ID: 0200
IF: enp7s0 state: down mac: <filter>
IF-ID-1: pan1 state: down mac: <filter>
Bluetooth:
Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:3 chip-ID: 0e8d:0608
class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
lmp-v: 11 status: discoverable: no pairing: no class-ID: 7e0104
Drives:
Local Storage: total: 1.36 TiB used: 355.35 GiB (25.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 1B4QFXO7 temp: 30.9 C
scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: Samsung model: SSD 980 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 1B4QFXO7 temp: 52.9 C
scheme: GPT
Partition:
ID-1: / raw-size: 431.01 GiB size: 431.01 GiB (100.00%)
used: 353.34 GiB (82.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-47f3b1d0-c3ce-4a6e-bca6-cfe8ae775c2c
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 26.1 MiB (8.7%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:4
ID-3: /home raw-size: 431.01 GiB size: 431.01 GiB (100.00%)
used: 353.34 GiB (82.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-47f3b1d0-c3ce-4a6e-bca6-cfe8ae775c2c
ID-4: /var/log raw-size: 431.01 GiB size: 431.01 GiB (100.00%)
used: 353.34 GiB (82.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-47f3b1d0-c3ce-4a6e-bca6-cfe8ae775c2c
ID-5: /var/tmp raw-size: 431.01 GiB size: 431.01 GiB (100.00%)
used: 353.34 GiB (82.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-47f3b1d0-c3ce-4a6e-bca6-cfe8ae775c2c
Swap:
Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: partition size: 34.45 GiB used: 1.99 GiB (5.8%)
priority: -2 dev: /dev/dm-1 maj-min: 254:1
mapped: luks-37248bd4-9b18-4bc6-9e4f-f90d911370b1
Sensors:
System Temperatures: cpu: 48.0 C mobo: 46.0 C gpu: amdgpu temp: 62.0 C
mem: 62.0 C
Fan Speeds (rpm): N/A gpu: amdgpu fan: 538
Info:
Processes: 643 Uptime: 11h 58m wakeups: 0 Memory: total: 32 GiB
available: 31.25 GiB used: 15.67 GiB (50.1%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
Packages: pm: pacman pkgs: 2639 libs: 542 tools: octopi,paru pm: rpm pkgs: 0
Shell: fish v: 3.6.1 running-in: konsole inxi: 3.3.29
Garuda (2.6.16-1):
System install date: 2021-12-31
Last full system update: 2023-09-23 ↻
Is partially upgraded: No
Relevant software: snapper NetworkManager mkinitcpio
Windows dual boot: Probably (Run as root to verify)
Failed units: