You are not logged in.
Hey i am getting this issue where my swap is 8GB but its getting full past its size for around 2 day. Yesterday it was showing 168 GB full out of 8 GB swap. Now when i opened my laptop this time it was showing 21 GB full out of 8 GB and this time my laptop was freezing so i have to close the some programs. After that my swap is still showing 21 GB full. When i restart my laptop its gets fixed but sometime later swap usages is going way up the 8 GB. Am i infected with some virus?
My System Monitor image google drive link -
https://drive.google.com/file/d/1P5q6MK … sp=sharing
https://drive.google.com/file/d/1HeZ7O5 … sp=sharing
Last edited by avinash277001 (2025-11-10 16:10:26)
Offline
It does look like you have a memory leak related to webkit2gtk .
Please post the outputs of
$ free -m
$ cat /proc/meminfo
$ pacman -Qi webkit2gtkas text, not images .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Please find below the result.
avinash@archlinux ~]$ free -m
total used free shared buff/cache available
Mem: 7640 5356 310 1006 3481 2283
Swap: 8191 2727 5464
[avinash@archlinux ~]$ cat /proc/meminfo
MemTotal: 7823640 kB
MemFree: 345756 kB
MemAvailable: 2365856 kB
Buffers: 795820 kB
Cached: 2436252 kB
SwapCached: 504268 kB
Active: 2435888 kB
Inactive: 3449344 kB
Active(anon): 1946032 kB
Inactive(anon): 1708932 kB
Active(file): 489856 kB
Inactive(file): 1740412 kB
Unevictable: 294480 kB
Mlocked: 664 kB
SwapTotal: 8388604 kB
SwapFree: 5595524 kB
Zswap: 451972 kB
Zswapped: 1818936 kB
Dirty: 11776 kB
Writeback: 0 kB
AnonPages: 2819776 kB
Mapped: 1009756 kB
Shmem: 1002096 kB
KReclaimable: 304176 kB
Slab: 511680 kB
SReclaimable: 304176 kB
SUnreclaim: 207504 kB
KernelStack: 24544 kB
PageTables: 71768 kB
SecPageTables: 2056 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 12300424 kB
Committed_AS: 26732216 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 70188 kB
VmallocChunk: 0 kB
Percpu: 5600 kB
HardwareCorrupted: 0 kB
AnonHugePages: 153600 kB
ShmemHugePages: 235520 kB
ShmemPmdMapped: 0 kB
FileHugePages: 126976 kB
FilePmdMapped: 126976 kB
CmaTotal: 0 kB
CmaFree: 0 kB
Unaccepted: 0 kB
Balloon: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 205176 kB
DirectMap2M: 7880704 kB
DirectMap1G: 0 kB
[avinash@archlinux ~]$ pacman -Qi webkit2gtk
Name : webkit2gtk
Version : 2.50.1-2
Description : Web content engine for GTK
Architecture : x86_64
URL : https://webkitgtk.org
Licenses : AFL-2.0 OR GPL-2.0-or-later Apache-2.0 Apache-2.0 WITH LLVM-exception BSD-2-Clause BSD-2-Clause-Views BSD-3-Clause BSD-Source-Code
BSL-1.0 bzip2-1.0.6 GPL-2.0-only GPL-3.0-only WITH Autoconf-exception-3.0 GPL-3.0-or-later WITH Bison-exception-2.2 ICU ISC
LGPL-2.1-only LGPL-2.1-or-later MIT MPL-1.1 MPL-2.0 NCSA NCSA OR MIT OFL-1.1 SunPro Unicode-TOU
Groups : None
Provides : libjavascriptcoregtk-4.0.so=18-64 libwebkit2gtk-4.0.so=37-64
Depends On : at-spi2-core atk bubblewrap cairo enchant expat fontconfig freetype2 gcc-libs gdk-pixbuf2 glib2 glibc gst-plugins-bad-libs
gst-plugins-base-libs gstreamer gtk3 harfbuzz harfbuzz-icu hyphen icu lcms2 libavif libdrm libegl libepoxy libgcrypt libgl
libgles libjpeg-turbo libjxl libmanette libpng libseccomp libsecret libsoup libsystemd libtasn1 libwebp libx11 libxml2 libxslt
mesa openjpeg2 pango sqlite ttf-font wayland woff2 xdg-dbus-proxy zlib
Optional Deps : geoclue: Geolocation support
gst-libav: nonfree media decoding
gst-plugins-bad: media decoding [installed]
gst-plugins-good: media decoding [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 127.65 MiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Wed 05 Nov 2025 01:31:57 AM IST
Install Date : Mon 10 Nov 2025 06:07:59 PM IST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
[avinash@archlinux ~]$
Offline
Please use [code][/code] tags. Edit your post in this regard.
The swap over-commitment is likely due to zswap, https://wiki.archlinux.org/title/Zswap#Toggling_zswap
The meminfo has ~1GB unaccounted for but that calculation might be spoiled by zswap as well (and it's not reflective of the situation in your screenshots - you likely rebooted?)
It would probably make more sense to sort top by memory than CPU load.
You've currently ~2.3GB in active use (mostly anon pages) and 3.3GB inactive (50/50 between anon pages and file cache)
What does the meminfo look like when the situation is really bad?
Do you get the same w/ the LTS kernel?
https://bbs.archlinux.org/viewtopic.php?id=310037
Offline
I booted into LTS kernel but Ram usage don't seem to change. I took some samples from LTS and Regular Kernel. Please find the result below. For now i have not noticed any memory leak, when it will happen i will post again with that data. Earlier i was using Linux mint and mint was not using that much ram. When i open portmaster in Arch it used around 400 MB of ram but in Mint it was using around 100 MB, Also, i was using qBittorrent yesterday and it was consuming 800 MB of ram. I have attached some google drive image link where brave browser is using 1 GB of Ram on 2 open tabs both in LTS and Regular kernel. Also i mentioned the result from both LTS and Regular below.
Image result from Regular Kernel.
Regular
Regular
Regular
Image result from LTS Kernel.
LTS
LTS
LTS
First (Below) one is Regular Kernel result.
[avinash@archlinux ~]$ free -m
total used free shared buff/cache available
Mem: 7640 4077 1212 869 3488 3562
Swap: 8191 0 8191
[avinash@archlinux ~]$ cat /proc/meminfo
MemTotal: 7823636 kB
MemFree: 1257424 kB
MemAvailable: 3663328 kB
Buffers: 130432 kB
Cached: 3358880 kB
SwapCached: 0 kB
Active: 4524864 kB
Inactive: 732196 kB
Active(anon): 2671900 kB
Inactive(anon): 0 kB
Active(file): 1852964 kB
Inactive(file): 732196 kB
Unevictable: 791156 kB
Mlocked: 664 kB
SwapTotal: 8388604 kB
SwapFree: 8388604 kB
Zswap: 0 kB
Zswapped: 0 kB
Dirty: 2240 kB
Writeback: 0 kB
AnonPages: 2477144 kB
Mapped: 1336320 kB
Shmem: 904448 kB
KReclaimable: 97488 kB
Slab: 223632 kB
SReclaimable: 97488 kB
SUnreclaim: 126144 kB
KernelStack: 20544 kB
PageTables: 55444 kB
SecPageTables: 2056 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 12300420 kB
Committed_AS: 16031784 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 61348 kB
VmallocChunk: 0 kB
Percpu: 5952 kB
HardwareCorrupted: 0 kB
AnonHugePages: 235520 kB
ShmemHugePages: 700416 kB
ShmemPmdMapped: 0 kB
FileHugePages: 194560 kB
FilePmdMapped: 98304 kB
CmaTotal: 0 kB
CmaFree: 0 kB
Unaccepted: 0 kB
Balloon: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 180600 kB
DirectMap2M: 6856704 kB
DirectMap1G: 1048576 kB
[avinash@archlinux ~]$ pacman -Qi webkit2gtk
Name : webkit2gtk
Version : 2.50.1-2
Description : Web content engine for GTK
Architecture : x86_64
URL : https://webkitgtk.org
Licenses : AFL-2.0 OR GPL-2.0-or-later Apache-2.0 Apache-2.0 WITH LLVM-exception BSD-2-Clause BSD-2-Clause-Views BSD-3-Clause BSD-Source-Code
BSL-1.0 bzip2-1.0.6 GPL-2.0-only GPL-3.0-only WITH Autoconf-exception-3.0 GPL-3.0-or-later WITH Bison-exception-2.2 ICU ISC
LGPL-2.1-only LGPL-2.1-or-later MIT MPL-1.1 MPL-2.0 NCSA NCSA OR MIT OFL-1.1 SunPro Unicode-TOU
Groups : None
Provides : libjavascriptcoregtk-4.0.so=18-64 libwebkit2gtk-4.0.so=37-64
Depends On : at-spi2-core atk bubblewrap cairo enchant expat fontconfig freetype2 gcc-libs gdk-pixbuf2 glib2 glibc gst-plugins-bad-libs
gst-plugins-base-libs gstreamer gtk3 harfbuzz harfbuzz-icu hyphen icu lcms2 libavif libdrm libegl libepoxy libgcrypt libgl
libgles libjpeg-turbo libjxl libmanette libpng libseccomp libsecret libsoup libsystemd libtasn1 libwebp libx11 libxml2 libxslt
mesa openjpeg2 pango sqlite ttf-font wayland woff2 xdg-dbus-proxy zlib
Optional Deps : geoclue: Geolocation support
gst-libav: nonfree media decoding
gst-plugins-bad: media decoding [installed]
gst-plugins-good: media decoding [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 127.65 MiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Wed 05 Nov 2025 01:31:57 AM IST
Install Date : Mon 10 Nov 2025 06:07:59 PM IST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
[avinash@archlinux ~]$ Second (below) one is LTS Kernel result
[avinash@archlinux ~]$ free -m
total used free shared buff/cache available
Mem: 7645 4373 273 940 4239 3271
Swap: 8191 0 8191
[avinash@archlinux ~]$ cat /proc/meminfo
MemTotal: 7828596 kB
MemFree: 265848 kB
MemAvailable: 3336020 kB
Buffers: 153760 kB
Cached: 4046280 kB
SwapCached: 0 kB
Active: 5192328 kB
Inactive: 928264 kB
Active(anon): 2854220 kB
Inactive(anon): 44040 kB
Active(file): 2338108 kB
Inactive(file): 884224 kB
Unevictable: 833408 kB
Mlocked: 664 kB
SwapTotal: 8388604 kB
SwapFree: 8388604 kB
Zswap: 0 kB
Zswapped: 0 kB
Dirty: 240 kB
Writeback: 0 kB
AnonPages: 2639004 kB
Mapped: 1603948 kB
Shmem: 978020 kB
KReclaimable: 155728 kB
Slab: 280520 kB
SReclaimable: 155728 kB
SUnreclaim: 124792 kB
KernelStack: 21520 kB
PageTables: 53696 kB
SecPageTables: 2056 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 12302900 kB
Committed_AS: 16498176 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 70436 kB
VmallocChunk: 0 kB
Percpu: 5760 kB
HardwareCorrupted: 0 kB
AnonHugePages: 245760 kB
ShmemHugePages: 757760 kB
ShmemPmdMapped: 0 kB
FileHugePages: 311296 kB
FilePmdMapped: 206848 kB
CmaTotal: 0 kB
CmaFree: 0 kB
Unaccepted: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 184696 kB
DirectMap2M: 6852608 kB
DirectMap1G: 1048576 kB
[avinash@archlinux ~]$ pacman -Qi webkit2gtk
Name : webkit2gtk
Version : 2.50.1-2
Description : Web content engine for GTK
Architecture : x86_64
URL : https://webkitgtk.org
Licenses : AFL-2.0 OR GPL-2.0-or-later Apache-2.0 Apache-2.0 WITH LLVM-exception BSD-2-Clause BSD-2-Clause-Views BSD-3-Clause BSD-Source-Code
BSL-1.0 bzip2-1.0.6 GPL-2.0-only GPL-3.0-only WITH Autoconf-exception-3.0 GPL-3.0-or-later WITH Bison-exception-2.2 ICU ISC
LGPL-2.1-only LGPL-2.1-or-later MIT MPL-1.1 MPL-2.0 NCSA NCSA OR MIT OFL-1.1 SunPro Unicode-TOU
Groups : None
Provides : libjavascriptcoregtk-4.0.so=18-64 libwebkit2gtk-4.0.so=37-64
Depends On : at-spi2-core atk bubblewrap cairo enchant expat fontconfig freetype2 gcc-libs gdk-pixbuf2 glib2 glibc gst-plugins-bad-libs
gst-plugins-base-libs gstreamer gtk3 harfbuzz harfbuzz-icu hyphen icu lcms2 libavif libdrm libegl libepoxy libgcrypt libgl
libgles libjpeg-turbo libjxl libmanette libpng libseccomp libsecret libsoup libsystemd libtasn1 libwebp libx11 libxml2 libxslt
mesa openjpeg2 pango sqlite ttf-font wayland woff2 xdg-dbus-proxy zlib
Optional Deps : geoclue: Geolocation support
gst-libav: nonfree media decoding
gst-plugins-bad: media decoding [installed]
gst-plugins-good: media decoding [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 127.65 MiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Wed 05 Nov 2025 01:31:57 AM IST
Install Date : Mon 10 Nov 2025 06:07:59 PM IST
Install Reason : Explicitly installed
Install Script : No
Validated By : SignatureOffline
When i open portmaster in Arch it used around 400 MB of ram but in Mint it was using around 100 MB, Also, i was using qBittorrent yesterday and it was consuming 800 MB of ram.
This is not how memory management works. Also htop is completely taken by plasmashell (top grossing RAM consumer), you probably want to disable the thread view and then you'll have to detail where and how portmaster (which, there seem several AUR packages but nothing in the repo) and qBittorrent (which is gonna be largely driven by the current traffic) allocate the RAM.
Starting a process and looking at the "free" output at random times doesn't cut it, you might want to have a look at https://gitlab.com/thiagomacieira/rssanalyse
Offline
i am having the memory leak issue again.Please check the below result. When i opened the laptop it was freezing so much, i suspected it is happening again. In Htop and system monitor over Swap usages is showing but in Mission center swap overuse is not showing. Please help to fix this.
System Monitor Snap
Htop snap
Mission Center Snap
[avinash@archlinux ~]$ free -m
total used free shared buff/cache available
Mem: 7640 3797 2288 648 2623 3842
Swap: 8191 0 -11989
[avinash@archlinux ~]$ cat /proc/meminfo
MemTotal: 7823636 kB
MemFree: 2330792 kB
MemAvailable: 3926420 kB
Buffers: 90228 kB
Cached: 2495064 kB
SwapCached: 790668 kB
Active: 3296196 kB
Inactive: 1034232 kB
Active(anon): 1728404 kB
Inactive(anon): 678108 kB
Active(file): 1567792 kB
Inactive(file): 356124 kB
Unevictable: 542340 kB
Mlocked: 664 kB
SwapTotal: 8388604 kB
SwapFree: 18446744073697274496 kB
Zswap: 1108 kB
Zswapped: 3752 kB
Dirty: 1160 kB
Writeback: 0 kB
AnonPages: 1701268 kB
Mapped: 666432 kB
Shmem: 661648 kB
KReclaimable: 102928 kB
Slab: 260520 kB
SReclaimable: 102928 kB
SUnreclaim: 157592 kB
KernelStack: 17104 kB
PageTables: 38056 kB
SecPageTables: 2056 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 12300420 kB
Committed_AS: 9806284 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 57968 kB
VmallocChunk: 0 kB
Percpu: 5600 kB
HardwareCorrupted: 0 kB
AnonHugePages: 167936 kB
ShmemHugePages: 143360 kB
ShmemPmdMapped: 0 kB
FileHugePages: 10240 kB
FilePmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
Unaccepted: 0 kB
Balloon: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 254328 kB
DirectMap2M: 7831552 kB
DirectMap1G: 0 kB
[avinash@archlinux ~]$ pacman -Qi webkit2gtk
Name : webkit2gtk
Version : 2.50.1-2
Description : Web content engine for GTK
Architecture : x86_64
URL : https://webkitgtk.org
Licenses : AFL-2.0 OR GPL-2.0-or-later Apache-2.0 Apache-2.0 WITH LLVM-exception BSD-2-Clause BSD-2-Clause-Views BSD-3-Clause BSD-Source-Code
BSL-1.0 bzip2-1.0.6 GPL-2.0-only GPL-3.0-only WITH Autoconf-exception-3.0 GPL-3.0-or-later WITH Bison-exception-2.2 ICU ISC
LGPL-2.1-only LGPL-2.1-or-later MIT MPL-1.1 MPL-2.0 NCSA NCSA OR MIT OFL-1.1 SunPro Unicode-TOU
Groups : None
Provides : libjavascriptcoregtk-4.0.so=18-64 libwebkit2gtk-4.0.so=37-64
Depends On : at-spi2-core atk bubblewrap cairo enchant expat fontconfig freetype2 gcc-libs gdk-pixbuf2 glib2 glibc gst-plugins-bad-libs
gst-plugins-base-libs gstreamer gtk3 harfbuzz harfbuzz-icu hyphen icu lcms2 libavif libdrm libegl libepoxy libgcrypt libgl
libgles libjpeg-turbo libjxl libmanette libpng libseccomp libsecret libsoup libsystemd libtasn1 libwebp libx11 libxml2 libxslt
mesa openjpeg2 pango sqlite ttf-font wayland woff2 xdg-dbus-proxy zlib
Optional Deps : geoclue: Geolocation support
gst-libav: nonfree media decoding
gst-plugins-bad: media decoding [installed]
gst-plugins-good: media decoding [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 127.65 MiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Wed 05 Nov 2025 01:31:57 AM IST
Install Date : Mon 10 Nov 2025 06:07:59 PM IST
Install Reason : Explicitly installed
Install Script : No
Validated By : SignatureOffline
Swap: 8191 0 -11989https://bbs.archlinux.org/viewtopic.php … 3#p2267793
SwapTotal: 8388604 kB
SwapFree: 18446744073697274496 kBDisable zswap, see whether you still run into this - I assume the calculations are all bonkers because of this.
There're roughly 880MB unaccounted for, do you have an AMD GPU?
(The driver is very generous when affording itself GTT/GART)
Offline
Hey Man, i disabled the Zswap and my CPU is i3-1215u with iris Xe 64 EU integrated graphics. I checked your mentioned post and i also getting the same issue as mentioned post have when restart or shutdown my laptop sometime error shows failed to deactivate swap so i have to force shutdown with power button.
Since i have disabled the Zswap, should i use Zram for swap compression or leave it as it is.
Also, as Htop shows multiple "plasmashell --no-respawn" processes are running and using virtual ram so does the plasma-shell causing the memory leak issue. As i dig through internet and found that only one instance of "plasmashell --no-respawn" should be running at a time and they suggested that if i have the memory leak issue again i should close the plasma completely and restart again to fix this. but still no permanent solution.
Also, since i restarted my pc i am not having memory leak issue but still multiple "plasmashell --no-respawn" instances are running without any memory leak, so i don't understand the theory behind only one instance should be running or if multiple sessions are running then the plasma shell is causing the memory leak issue. Please look at the Htop image below.
Last edited by avinash277001 (2025-11-12 02:30:46)
Offline
Since i have disabled the Zswap, should i use Zram for swap compression or leave it as it is.
For the tests, I'd initially avoid all RAM backed swap.
Also, as Htop shows multiple "plasmashell --no-respawn" processes are running
Offline