RAM usage grows significantly after waking up PC from sleep

Here is another one:

ext4_inode_cache        23787   23787   1192    27      8       :       tunables        0       0       0       :       slabdata        881     881     0
ext4_inode_cache        23868   23868   1192    27      8       :       tunables        0       0       0       :       slabdata        884     884     0
---
PING    960     960     1024    16      4       :       tunables        0       0       0       :       slabdata        60      60      0
PING    992     992     1024    16      4       :       tunables        0       0       0       :       slabdata        62      62      0
---
skbuff_ext_cache        2991    3066    192     21      1       :       tunables        0       0       0       :       slabdata        146     146     0
skbuff_ext_cache        3482    4998    192     21      1       :       tunables        0       0       0       :       slabdata        238     238     0
---
skbuff_fclone_cache     80      80      512     16      2       :       tunables        0       0       0       :       slabdata        5       5       0
skbuff_fclone_cache     112     112     512     16      2       :       tunables        0       0       0       :       slabdata        7       7       0
---
file_lock_cache 90      90      216     18      1       :       tunables        0       0       0       :       slabdata        5       5       0
file_lock_cache 108     108     216     18      1       :       tunables        0       0       0       :       slabdata        6       6       0
---
buffer_head     69381   69381   104     39      1       :       tunables        0       0       0       :       slabdata        1779    1779    0
buffer_head     70005   70005   104     39      1       :       tunables        0       0       0       :       slabdata        1795    1795    0
---
proc_inode_cache        3237    3358    688     23      4       :       tunables        0       0       0       :       slabdata        146     146     0
proc_inode_cache        6969    6969    688     23      4       :       tunables        0       0       0       :       slabdata        303     303     0
---
seq_file        136     136     120     34      1       :       tunables        0       0       0       :       slabdata        4       4       0
seq_file        170     170     120     34      1       :       tunables        0       0       0       :       slabdata        5       5       0
---
shmem_inode_cache       2706    2706    728     22      4       :       tunables        0       0       0       :       slabdata        123     123     0
shmem_inode_cache       2609    2728    728     22      4       :       tunables        0       0       0       :       slabdata        124     124     0
---
kernfs_node_cache       36864   37024   128     32      1       :       tunables        0       0       0       :       slabdata        1157    1157    0
kernfs_node_cache       37270   39296   128     32      1       :       tunables        0       0       0       :       slabdata        1228    1228    0
---
filp    10768   10768   256     16      1       :       tunables        0       0       0       :       slabdata        673     673     0
filp    10756   11040   256     16      1       :       tunables        0       0       0       :       slabdata        690     690     0
---
inode_cache     23634   23634   616     26      4       :       tunables        0       0       0       :       slabdata        909     909     0
inode_cache     23790   23790   616     26      4       :       tunables        0       0       0       :       slabdata        915     915     0
---
dentry  66210   66234   192     21      1       :       tunables        0       0       0       :       slabdata        3154    3154    0
dentry  70558   70875   192     21      1       :       tunables        0       0       0       :       slabdata        3375    3375    0
---
vm_area_struct  86480   86480   200     20      1       :       tunables        0       0       0       :       slabdata        4324    4324    0
vm_area_struct  86722   87220   200     20      1       :       tunables        0       0       0       :       slabdata        4361    4361    0
---
mm_struct       180     180     1088    30      8       :       tunables        0       0       0       :       slabdata        6       6       0
mm_struct       240     240     1088    30      8       :       tunables        0       0       0       :       slabdata        8       8       0
---
signal_cache    364     364     1152    28      8       :       tunables        0       0       0       :       slabdata        13      13      0
signal_cache    420     420     1152    28      8       :       tunables        0       0       0       :       slabdata        15      15      0
---
sighand_cache   270     270     2112    15      8       :       tunables        0       0       0       :       slabdata        18      18      0
sighand_cache   360     360     2112    15      8       :       tunables        0       0       0       :       slabdata        24      24      0
---
task_struct     744     780     8000    4       8       :       tunables        0       0       0       :       slabdata        195     195     0
task_struct     811     860     8000    4       8       :       tunables        0       0       0       :       slabdata        215     215     0
---
cred_jar        567     567     192     21      1       :       tunables        0       0       0       :       slabdata        27      27      0
cred_jar        887     966     192     21      1       :       tunables        0       0       0       :       slabdata        46      46      0
---
anon_vma_chain  53184   53184   64      64      1       :       tunables        0       0       0       :       slabdata        831     831     0
anon_vma_chain  53692   54848   64      64      1       :       tunables        0       0       0       :       slabdata        857     857     0
---
anon_vma        30130   30130   88      46      1       :       tunables        0       0       0       :       slabdata        655     655     0
anon_vma        31536   31924   88      46      1       :       tunables        0       0       0       :       slabdata        694     694     0
---
trace_event_file        2806    2806    88      46      1       :       tunables        0       0       0       :       slabdata        61      61      0
trace_event_file        2852    2852    88      46      1       :       tunables        0       0       0       :       slabdata        62      62      0
---
radix_tree_node 13717   13720   584     28      4       :       tunables        0       0       0       :       slabdata        490     490     0
radix_tree_node 13871   14028   584     28      4       :       tunables        0       0       0       :       slabdata        501     501     0
---
vmap_area       5120    5120    64      64      1       :       tunables        0       0       0       :       slabdata        80      80      0
vmap_area       5116    5248    64      64      1       :       tunables        0       0       0       :       slabdata        82      82      0
---
kmalloc-rcl-512 80      80      512     16      2       :       tunables        0       0       0       :       slabdata        5       5       0
kmalloc-rcl-512 80      96      512     16      2       :       tunables        0       0       0       :       slabdata        6       6       0
---
kmalloc-rcl-96  756     756     96      42      1       :       tunables        0       0       0       :       slabdata        18      18      0
kmalloc-rcl-96  798     798     96      42      1       :       tunables        0       0       0       :       slabdata        19      19      0
---
kmalloc-rcl-64  3392    3392    64      64      1       :       tunables        0       0       0       :       slabdata        53      53      0
kmalloc-rcl-64  3516    3520    64      64      1       :       tunables        0       0       0       :       slabdata        55      55      0
---
kmalloc-8k      92      92      8192    4       8       :       tunables        0       0       0       :       slabdata        23      23      0
kmalloc-8k      122     128     8192    4       8       :       tunables        0       0       0       :       slabdata        32      32      0
---
kmalloc-4k      1026    1032    4096    8       8       :       tunables        0       0       0       :       slabdata        129     129     0
kmalloc-4k      1036    1040    4096    8       8       :       tunables        0       0       0       :       slabdata        130     130     0
---
kmalloc-2k      708     720     2048    16      8       :       tunables        0       0       0       :       slabdata        45      45      0
kmalloc-2k      816     816     2048    16      8       :       tunables        0       0       0       :       slabdata        51      51      0
---
kmalloc-1k      4239    4288    1024    16      4       :       tunables        0       0       0       :       slabdata        268     268     0
kmalloc-1k      4687    5200    1024    16      4       :       tunables        0       0       0       :       slabdata        325     325     0
---
kmalloc-512     4983    5104    512     16      2       :       tunables        0       0       0       :       slabdata        319     319     0
kmalloc-512     5064    5184    512     16      2       :       tunables        0       0       0       :       slabdata        324     324     0
---
kmalloc-256     4336    4336    256     16      1       :       tunables        0       0       0       :       slabdata        271     271     0
kmalloc-256     5570    5664    256     16      1       :       tunables        0       0       0       :       slabdata        354     354     0
---
kmalloc-192     10647   10647   192     21      1       :       tunables        0       0       0       :       slabdata        507     507     0
kmalloc-192     10169   11130   192     21      1       :       tunables        0       0       0       :       slabdata        530     530     0
---
kmalloc-128     3584    3584    128     32      1       :       tunables        0       0       0       :       slabdata        112     112     0
kmalloc-128     4448    4448    128     32      1       :       tunables        0       0       0       :       slabdata        139     139     0
---
kmalloc-96      3780    3780    96      42      1       :       tunables        0       0       0       :       slabdata        90      90      0
kmalloc-96      5407    5754    96      42      1       :       tunables        0       0       0       :       slabdata        137     137     0
---
kmalloc-64      11392   11392   64      64      1       :       tunables        0       0       0       :       slabdata        178     178     0
kmalloc-64      11643   12480   64      64      1       :       tunables        0       0       0       :       slabdata        195     195     0
---
kmalloc-32      13952   13952   32      128     1       :       tunables        0       0       0       :       slabdata        109     109     0
kmalloc-32      14591   14592   32      128     1       :       tunables        0       0       0       :       slabdata        114     114     0
---

This time system fresh after reboot (only browser running) so smaller jump - from 2.2Gi used to 2.8Gi.

I created a bug report, perhaps there will be additional information.

Iā€™m not sure if nixpkgs repo is the best place to post such a issue through. Isnā€™t that repo for reporting issues with packages and not the system itself?

bugzilla.kernel. org

If you did not compile your own kernel from scratch, you are probably in the wrong place.
Please use the following links to report a bug to your distribution instead:

Itā€™s necessary to notify maintainers. I think that necessary to create bug report in Manjaro bug tracker too.

I reduced the amount of available memory through the mem kernel parameter, and it didnā€™t help.

$ free -m
              total        used        free      shared  buff/cache   available
Mem:           6731        2927         217         495        3586        3068
Swap:          3940           5        3935

What do you mean by saying you ā€œreduced the amount of available memory and it didnā€™t helpā€? Donā€™t we want to increase it? More available memory = More free RAM.

Btw, what kind of hardware do you have? Maybe we can find a correlation here.

Just above, it was said that on a laptop with 8 GB, this behavior does not appear. I decided to check this case. In order not to disassemble the device and not to pull out the memory, I passed the kernel a parameter to reduce the maximum amount available to the system.

I switched from one machine to another. Both of them demonstrate same behavior.

old:
Manjaro Gnome, AMD A12-9720P, 16 Gb Ram with zram.

now:
NixOS 20.09 (Nightingale), AMDĀ® Ryzen 5 3500u with radeon vega mobile gfx Ɨ 8, AMDĀ® Raven, Linux nixos 5.11.21, 10Gb zram swap.

I updated to NixOS 21.05 (Okapi) and the problem disappeared.

Thatā€™s great to hear!

I wonder what problem the update fixed because I still donā€™t know what the cause for this issue is.

Nevertheless, I will be reinstalling my OS in a couple of weeks so Iā€™ll see if this issue is related to my current installation or not.

Problem went away when I reinstalled manjaro. No clue what it was, but itā€™s gone now.

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