tosyl
May 28, 2024, 1:33pm
1
Hello CryoSPARC Community,
I am currently experiencing an issue with CryoSPARC where the buffer/cache fills up the RAM very quickly during jobs like Refinement, leading to job freezes. When I run free -h
, it shows that my RAM is completely filled (250G), which necessitates frequent manual cache clearing to continue my work.
To mitigate this, I’ve set up an automated script to clear the cache every hour using the following crontab entry:
0 * * * * /bin/bash -c 'free -g && sync && echo 3> /proc/sys/vm/drop_caches && echo " && free -g'
While this provides a temporary solution, it’s not ideal as it requires constant intervention and could potentially disrupt other processes.
System Specifications:
Operating System: Rocky Linux release 8.9 (Green Obsidian)
GPU: 4x NVIDIA GeForce RTX 4090
CryoSPARC Version: 4.4.1
RAM: 250G
Questions and Requests:
Has anyone encountered a similar issue? If so, how did you resolve it?
Is there a more efficient way to manage the cache within CryoSPARC to prevent RAM saturation?
I’m eager to find a more sustainable solution to this issue and would greatly appreciate any advice or suggestions.
Best
Wen
Welcome to the forum @tosyl
The cache to which you refer is expected to be managed by the operating system, and is distinct from the particle cache , which is managed by CryoSPARC.
What is the output of the command
cat /sys/kernel/mm/transparent_hugepage/enabled
?
tosyl
May 29, 2024, 4:54am
3
Thank you for your prompt response!
Here is the output of the command:
[always] madvise never
Set it to never… it’ll speed up a lot of jobs as well if running them simultaneously.
Oh this immediately sounds like a transparent hugepages - related problem
(@hsnyder correct me if I’m wrong) try disabling this and check if your refinement related jobs immediately speed up:
echo never >/sys/kernel/mm/transparent_hugepage/enabled
tosyl
May 31, 2024, 2:07pm
5
Thanks! But transparent hugepages have already been disabled.
[always] madvise never
tosyl:
[always] madvise never
indicates that transparent_hugepage
has not been disabled. The expected output on a computer with disabled transparent_hugepage
should look like
always madvise [never]
(discussion ).
As @wtempel points out, [always] means enabled. Set it to [never].
1 Like
tosyl
June 3, 2024, 2:12am
8
Sorry for misunderstanding! I’m definitely going to give it a try. Appreciate the help!
1 Like