Very high RAM usage from kernel dynamic memory

Hello,

$ free -h
               total        used        free      shared  buff/cache   available
Mem:            15Gi        13Gi       1,2Gi       775Mi       1,6Gi       1,8Gi
Swap:           23Gi       754Mi        22Gi

# swapon -s
Filename                                Type            Size            Used            Priority
/swap/swapfile                          file            8388604         0               -2
/dev/zram0                              partition       16049832        772352          100

$ grep -i Huge /proc/meminfo 
AnonHugePages:    227328 kB
ShmemHugePages:    65536 kB
FileHugePages:     26624 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB

# slabtop -s c -o | head -n 20
 Active / Total Objects (% used)    : 1483699 / 2145013 (69,2%)
 Active / Total Slabs (% used)      : 40183 / 40183 (100,0%)
 Active / Total Caches (% used)     : 162 / 231 (70,1%)
 Active / Total Size (% used)       : 419037,59K / 499492,20K (83,9%)
 Minimum / Average / Maximum Object : 0,01K / 0,23K / 32,54K

  OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME                   
383194 280173  73%    0,57K  13750       28    220000K radix_tree_node        
 43254  43213  99%    1,01K   1538       31     49216K btrfs_inode            
155274 149032  95%    0,19K   3697       42     29576K dentry                 
  1550   1507  97%   10,25K    518        3     16576K task_struct            
 80146  67641  84%    0,18K   1823       44     14584K vm_area_struct         
 14357  13654  95%    0,70K    313       46     10016K proc_inode_cache       
 74730  74483  99%    0,13K   2491       30      9964K kernfs_node_cache      
  9568   9378  98%    1,00K    299       32      9568K kmalloc-1k             
 11012   9233  83%    0,62K    442       25      7072K inode_cache            
  3472   3388  97%    2,00K    217       16      6944K kmalloc-2k             
 79101  77947  98%    0,08K   1551       51      6204K Acpi-State             
  1392   1342  96%    4,00K    174        8      5568K kmalloc-4k             
  6775   6397  94%    0,77K    167       41      5344K shmem_inode_cache

$ cat /proc/meminfo
cat /proc/meminfo 
MemTotal:       16049836 kB
MemFree:         1125960 kB
MemAvailable:    1303600 kB
Buffers:              12 kB
Cached:          1230464 kB
SwapCached:         2996 kB
Active:         10268236 kB
Inactive:        3198292 kB
Active(anon):   10070164 kB
Inactive(anon):  3009092 kB
Active(file):     198072 kB
Inactive(file):   189200 kB
Unevictable:      289464 kB
Mlocked:             168 kB
SwapTotal:      24438436 kB
SwapFree:       23101092 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               636 kB
Writeback:             0 kB
AnonPages:       3195760 kB
Mapped:           374928 kB
Shmem:            843120 kB
KReclaimable:     103260 kB
Slab:             340808 kB
SReclaimable:     103260 kB
SUnreclaim:       237548 kB
KernelStack:       27408 kB
PageTables:        51496 kB
SecPageTables:      2088 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    32463352 kB
Committed_AS:   14256464 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      253200 kB
VmallocChunk:          0 kB
Percpu:            10480 kB
HardwareCorrupted:     0 kB
AnonHugePages:    137216 kB
ShmemHugePages:    55296 kB
ShmemPmdMapped:        0 kB
FileHugePages:    137216 kB
FilePmdMapped:    137216 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:     8778840 kB
DirectMap2M:     7675904 kB
DirectMap1G:     1048576 kB

# Top processes by RAM usage from ps
456.38 MB      /usr/lib/vmware/view/bin/vmware-view 
359.66 MB      /usr/lib64/firefox/firefox 
293.54 MB      /usr/lib64/firefox/firefox
276.14 MB      vmware-remotemks
269.21 MB      /usr/lib64/firefox/firefox
255.45 MB      /usr/bin/plasmashell --no-respawn 
254.81 MB      /usr/lib64/firefox/firefox
230.74 MB      /usr/lib64/firefox/firefox
216.01 MB      /usr/lib64/firefox/firefox
214.38 MB      /usr/lib64/firefox/firefox

$ smem -wk
Area                           Used      Cache   Noncache 
firmware/hardware                 0          0          0 
kernel image                      0          0          0 
kernel dynamic memory         10.8G     918.2M       9.9G 
userspace memory               3.3G     403.2M       2.9G 
free memory                    1.2G       1.2G          0 

For context, this is a fresh installation of OpenSuse Tumbleweed with BTRFS. My device is an Intel laptop with an Nvidia dGPU. The system is vanilla apart from installing Nvidia drivers, I followed PRIME offloading steps on Arch wiki to power down the GPU while unused.

Thank you,
Kind regards.

What is your concern? Memory leak?Percentage can be good

>  sudo smem -t -w -p

The next time you boot up, run that before executing any apps, then execute it occasionally to compare.

Thanks for the reply. It appears to be caused by a non-opensuse program.

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