svaba icon indicating copy to clipboard operation
svaba copied to clipboard

Very large memory usage

Open fgvieira opened this issue 4 years ago • 1 comments

I'm runnning svaba to call somatic SV with a matched blood on 9 samples, like:

svaba run --threads 30 --reference-genome GCA_000001405.15_GRCh38_no_alt_analysis_set.fna --blacklist blacklist.bed --tumor-bam tumor.cram --normal-bam normal.cram --id-string temp/tumor

However, I am seeing quite a large memory usage with pestat, in some cases close to 500Gb:

Netload file /var/tmp/netload age: 143 seconds, dated 2021-07-13 14:21:45
Node      state  load    pmem ncpu   mem   resi usrs tasks NetMbit jobids/users
i-04-f0010 free    20* 1445383  40 1461767 403430  2/2    1     30    32760182
i-04-f0011 free    19* 1445383  40 1461767 530744  2/2    1     69    32760181
i-04-f0012 free    21* 1445383  40 1461767 194031  2/2    1      0    32760180
i-04-f0013 free    21* 1445383  40 1461767 261501  2/2    1     27    32760185
i-04-f0014 free    26* 1445383  40 1461767 167457  2/2    1     24    32760184
i-04-f0015 free    24* 1445383  40 1461767 229948  2/2    1     29    32760179
i-04-f0016 free    22* 1445383  40 1461767 389336  2/2    1     24    32760178
i-04-f0017 free    23* 1445383  40 1461767 212210  2/2    1     26    32760183
i-04-f0024 free    25* 1547850  40 1564234 383459  2/2    1     66    32760186

Is this normal? According to svaba paper, it should use very little memory. Is there anything I can do to optimize memory usage?

fgvieira avatar Jul 13 '21 12:07 fgvieira

I think the reason is because you are using CRAM files. I recently had this issue and my slurm jobs were getting killed because of memory exhaustion.

slurmstepd: error: Detected 1 oom-kill event(s) in StepId=40907031.batch cgroup. Some of your processes may have been killed by the cgroup out-of-memory handler.

I have tried with different resource options and still was getting this issue. When I switched to BAM files on the same samples that were failing, it works perfectly fine even with less resources. Hope this helps.

tanubrata avatar Nov 22 '23 15:11 tanubrata