KDE very high RAM and VRAM usage

I’m not sure when this started but I checked my ram and vram usage and plasma takes up 6 gigs of ram and 5 gigs of vram. What could cause this issue? I checked the processes and nothing under plasmashell seems to hog up memory.

I am running Plasma 5.25 with an nvidia video card. I have forced full composition on for my monitors but that’s not supposed to eat up a chunk of your ram and almost all vram right?

Does this problem appear after reboot?

If yes, check what is the output of cat /proc/meminfo

How do you check your RAM and VRAM usage? It is common people misinterpret what they read on screen.

Yes the ram usage spikes up right after I log in.
Here’s the output of meminfo:

MemTotal:       32812804 kB
MemFree:        19371636 kB
MemAvailable:   22505932 kB
Buffers:          567852 kB
Cached:          2362464 kB
SwapCached:            0 kB
Active:          1633140 kB
Inactive:       10261320 kB
Active(anon):       8084 kB
Inactive(anon):  9152356 kB
Active(file):    1625056 kB
Inactive(file):  1108964 kB
Unevictable:         540 kB
Mlocked:             540 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:              2740 kB
Writeback:             0 kB
AnonPages:       8964772 kB
Mapped:          1232112 kB
Shmem:            196288 kB
KReclaimable:     865228 kB
Slab:            1054436 kB
SReclaimable:     865228 kB
SUnreclaim:       189208 kB
KernelStack:       17232 kB
PageTables:        54108 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    16406400 kB
Committed_AS:   14141576 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      108316 kB
VmallocChunk:          0 kB
Percpu:             7136 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:     1057280 kB
DirectMap2M:    17756160 kB
DirectMap1G:    14680064 kB

nvidia-smi for vram
htop for ram

Please preformat text in Markdown.

Can you copy the details from nvidia-smi and some tools what you saw, then paste them here?


Note: I can not help as I am not an Nividia user.

Give output of free command for your ram after you boot.

Sun Oct 16 17:25:06 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 520.56.06    Driver Version: 520.56.06    CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
| 19%   56C    P0    36W / 180W |   5619MiB /  8192MiB |     23%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       826      G   /usr/lib/Xorg                     302MiB |
|    0   N/A  N/A      1078      G   /usr/bin/kwin_x11                 152MiB |
|    0   N/A  N/A      1110      G   /usr/bin/plasmashell             5084MiB |
+-----------------------------------------------------------------------------+
               total        used        free      shared  buff/cache   available
Mem:        32812804     3313480    28109624       16484     1389700    29017856
Swap:              0           0           0

But after a few seconds it climbs up:

               total        used        free      shared  buff/cache   available
Mem:        32812804     5562664    25404864       16532     1845276    26768580
Swap:              0           0           0

Login to a newly created user.

I guess you customized your desktop with something broken.

Observe what happens on a new user. I guess it will be fine.

Plasmashell eats 50MB on my side.

I created a new user and it took up like a gig or so of ram in total. vram was like 50 megs. I guess that’s the case. I guess now i gotta figure out what I’ve customized.

Look first at out of repositories customization, that you installed from KDE store, AUR, or manually. This is usually the culprit.

I don’t recall installing anything too special. I reverted my theme back to the original breeze theme and removed all my desktop widgets and nothing really happened.

Do you have something starting up with your session? Are you using a new session or do you restore previous session?

I have a new session on each startup. I had a little startup script for some stuff but removing those didnt help.

Ok I found out that some widget I wrote was haunting my desktop and that was probably the culprit. No idea why that was there or why it took up so much ram. Well thanks for the debugging help. I’ll be sure to uninstall that.

That’s what I obviously meant, anything not from default Manjaro.

Yeah I didn’t have the widget on the desktop but apparently there was 4 really small ones hiding

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.