Hi everyone,
I have a strange problem on memory usage. I already asked about the problem on
https://serverfault.com/questions/896282/cannot-explain-memory-occupancy-in-linux/896525#896525and on
https://stackoverflow.com/questions/48784781/what-is-kernel-dynamic-memory-in-linux-systems-and-how-to-free-itI think that this problem is related to STAR since it happen after STAR
runs but I'm not pretty sure that something in the STAR code is actually
involved.
After a run of STAR not all the RAM used is released, even if the STAR processes end.
$ free -g
total used free shared buff/cache available
Mem: 125 67 56 0 1 57
Swap: 119 0 119
So I have only 57G available, but ps show that there is no process consuming memory
$ ps aux --sort -rss | head
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 987 0.0 0.0 54284 15932 ? Ss Feb09 0:03 /lib/systemd/systemd-journald
imoline+ 49734 0.0 0.0 24640 8672 pts/0 Ss+ Feb13 0:05 /bin/bash
rstudio+ 4803 0.0 0.0 128608 7400 ? Ssl Feb09 0:39 /usr/lib/rstudio-server/bin/rserver
imoline+ 53699 0.0 0.0 23352 7220 pts/2 Ss Feb13 0:03 /bin/bash
imoline+ 68563 0.0 0.0 23200 6876 pts/1 Ss 10:37 0:00 -bash
root 1 0.0 0.0 204660 6804 ? Ss Feb09 0:05 /sbin/init
root 68556 0.0 0.0 99308 6800 ? Ss 10:37 0:00 sshd: imolineris [priv]
root 4770 0.0 0.0 69944 6484 ? Ss Feb09 0:00 /usr/sbin/sshd -D
STAR is not running
$ ps aux --sort -rss | grep -i star
I try to unload the genome in shared memory, even if in the previous runs I do not used --genomeLoad
$ STAR --genomeLoad Remove --genomeDir /data/bioinfotree/task/annotations/dataset/gencode/hsapiens/27/GRCh38.primary_assembly.star_index/2.5.4a/
Feb 14 11:03:17 ..... started STAR run
Feb 14 11:03:17 ..... loading genome
EXITING: Did not find the genome in memory, did not remove any genomes from shared memory
Feb 14 11:03:17 ...... FATAL ERROR, exiting
Smem tell me that there is a lot of kernel dynamic memory in use, but I do not know what it means.
$ sudo smem -t -w -p
[sudo] password for imolineris:
Area Used Cache Noncache
firmware/hardware 0.00% 0.00% 0.00%
kernel image 0.00% 0.00% 0.00%
kernel dynamic memory 54.68% 1.25% 53.43%
userspace memory 0.06% 0.03% 0.03%
free memory 45.26% 45.26% 0.00%
----------------------------------------------------------
100.00% 46.54% 53.46%
Do you think that this problem is related to STAR?
Do you know how to free this memory without rebooting?
Thanks.