On 3/12/23 14:46, Phil Wyett wrote:
The first thing I would do before any other is to enable swap and see
what benefits that brings. I have no production laptop or desktop
(laptop with 32G being daily driver with NVME (root) and an SSD (home)
drive inside) that does not have swap. I have 8G of swap on my laptop
and it does get used by the system, but only in low amounts. Others
may have other strategies here, but this is where I would start.
I don't think it is actually a lack of memory. What I do see is all the
web browsers are up there on CPU along with nvidia-modeset.
Putting in swap may delay the time things start going awry but the cause
won't be lack of memory
top CPU
top - 14:55:15 up 44 days, 41 min, 1 user, load average: 0.19, 0.19, 0.19
Tasks: 386 total, 1 running, 385 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.6 us, 0.2 sy, 0.0 ni, 99.1 id, 0.1 wa, 0.0 hi, 0.0 si,
0.0 st
MiB Mem : 32023.4 total, 19201.2 free, 7118.7 used, 6564.6 buff/cache
MiB Swap: 977.0 total, 968.1 free, 8.9 used. 24904.6 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3433245 jeremy 20 0 2584752 210788 100352 S 4.3 0.6 0:25.77
Isolated Web Co
3423627 jeremy 20 0 1140.1g 326428 130228 S 2.6 1.0 6:12.36 chrome
3423253 jeremy 20 0 32.9g 387804 299712 S 1.0 1.2 2:25.86 chrome
723 root 20 0 0 0 0 S 0.7 0.0 269:07.26
nvidia-modeset/kthread_q
3432484 jeremy 20 0 3689468 688004 243920 S 0.7 2.1 1:01.72
firefox-esr
3433214 root 20 0 11880 5348 3196 R 0.7 0.0 0:03.16 top
3422887 jeremy 20 0 697716 55924 40800 S 0.3 0.2 0:07.98
mate-terminal
3423206 jeremy 20 0 32.8g 434756 252740 S 0.3 1.3 1:32.29 chrome
3423254 jeremy 20 0 32.4g 129252 101388 S 0.3 0.4 0:28.83 chrome
3428534 jeremy 20 0 32.6g 480104 145044 S 0.3 1.5 2:43.60
chromium
3428658 jeremy 20 0 1134.0g 212384 117084 S 0.3 0.6 7:09.41
chromium
1 root 20 0 168800 10412 6324 S 0.0 0.0 0:45.56
systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:01.82
kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00
rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00
rcu_par_gp
5 root 0 -20 0 0 0 I 0.0 0.0 0:00.00
slub_flushwq
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00
kworker/0:0H-events_highpri
top memory
top - 14:58:34 up 44 days, 45 min, 1 user, load average: 0.27, 0.23, 0.20
Tasks: 384 total, 3 running, 381 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.8 us, 0.4 sy, 0.0 ni, 98.7 id, 0.1 wa, 0.0 hi, 0.1 si,
0.0 st
MiB Mem : 32023.4 total, 19055.2 free, 7260.6 used, 6570.2 buff/cache
MiB Swap: 977.0 total, 968.1 free, 8.9 used. 24762.8 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3422963 jeremy 20 0 4032104 979264 208004 S 0.0 3.0 5:20.33
thunderbird
3432484 jeremy 20 0 3679780 711916 250108 S 1.3 2.2 1:13.98
firefox-esr
3428534 jeremy 20 0 32.6g 480364 144980 R 1.7 1.5 2:46.34
chromium
3423206 jeremy 20 0 32.8g 434600 252740 S 0.0 1.3 1:32.66 chrome
3422183 root 20 0 25.0g 419692 139016 S 0.3 1.3 0:47.61 Xorg
3423253 jeremy 20 0 32.9g 387540 299712 S 1.3 1.2 2:28.33 chrome
1750 jeremy 20 0 1163816 380224 9776 S 0.0 1.2 3:53.92
goa-daemon
3423627 jeremy 20 0 1140.1g 326700 130228 S 3.6 1.0 6:19.81 chrome
3422581 jeremy 20 0 7293420 311912 78012 S 0.3 1.0 0:40.50
dropbox
3423600 jeremy 20 0 1134.1g 294804 128548 S 0.0 0.9 0:46.53 chrome
3428484 jeremy 20 0 32.7g 266044 192084 S 0.3 0.8 0:38.63
chromium
2320 jeremy 20 0 1752388 244220 12876 S 0.0 0.7 7:20.61
evolution-calen
3433245 jeremy 20 0 2584752 212408 100480 S 0.0 0.6 0:32.45
Isolated Web Co
1664 jeremy 9 -11 240828 203652 5716 S 0.0 0.6 7,25
pipewire-pulse
3433581 jeremy 20 0 2555596 201664 98504 S 0.7 0.6 0:03.09
Isolated Web Co
3428658 jeremy 20 0 1134.0g 200140 117084 R 4.3 0.6 7:18.18
chromium
3432583 jeremy 20 0 18.7g 191500 108380 S 0.3 0.6 0:10.79
WebExtensions
3433289 jeremy 20 0 2549968 181504 97876 S 0.0 0.6 0:03.47
Isolated Web Co
3422461 jeremy 20 0 1385296 158252 94932 S 0.0 0.5 0:20.50
nextcloud
3428536 jeremy 20 0 32.4g 152468 132780 S 0.3 0.5 0:19.69
chromium
3432350 jeremy 20 0 1134.0g 143620 103132 S 0.0 0.4 0:01.76 chrome
3423380 jeremy 20 0 1132.0g 141860 100880 S 0.0 0.4 0:03.64 chrome
3423715 jeremy 20 0 1132.0g 137276 102264 S 0.0 0.4 0:02.83 chrome
3432598 jeremy 20 0 2477752 135292 98484 S 0.0 0.4 0:02.16
Privileged Cont
3431066 jeremy 20 0 1134.0g 135080 95680 S 0.0 0.4 0:02.03 chrome
3423472 jeremy 20 0 1132.0g 134920 99712 S 0.0 0.4 0:03.81 chrome
3423418 jeremy 20 0 1132.0g 134056 100544 S 0.0 0.4 0:01.79 chrome
3428594 jeremy 20 0 1132.0g 133528 93660 S 0.3 0.4 0:08.06
chromium
3423508 jeremy 20 0 1132.0g 132880 98768 S 0.0 0.4 0:02.97 chrome
3428508 jeremy 20 0 32.3g 131228 117312 S 0.0 0.4 0:00.04
chromium
3428507 jeremy 20 0 32.3g 130952 118936 S 0.0 0.4 0:00.03
chromium
3428611 jeremy 20 0 1132.0g 129212 93480 S 0.3 0.4 0:08.91
chromium
3423254 jeremy 20 0 32.4g 129136 101388 S 0.0 0.4 0:28.94 chrome
3431762 jeremy 20 0 1134.0g 128600 95628 S 0.0 0.4 0:00.77
chromium
3423409 jeremy 20 0 1132.0g 125972 94700 S 0.0 0.4 0:00.98 chrome