How to reduce memory and CPU load for large datasets? #1468
Replies: 5 comments 1 reply
-
Reduce |
Beta Was this translation helpful? Give feedback.
-
Thank you, @kushalkolar. I tried to reduce the As I was looking through the parameters and the code, it occurred to me if this could have something to do with the CNN classifier? I'm not using an instance that has a GPU / CUDA. Could the initialization of the network be an underlying cause of this? |
Beta Was this translation helpful? Give feedback.
-
I think you'll need to run things one step at a time to figure out where you're running out of RAM or if it's a different issue. |
Beta Was this translation helpful? Give feedback.
-
Maybe you can use this command to check the log: ************* systemd-oomd[1891]: Killed /user.slice/user-1000.slice/user@1000.service/app.slice/gnome-flashback.service due to memory pressure for /user.slice/user-1000.slice/user@1000.service being 77.11% > 50.00% for > 20s with reclaim activity So you may check your OOM-killer (out of memory), and set a larger memory threshold |
Beta Was this translation helpful? Give feedback.
-
For the session in question, it seemed like each process was allocating ~ 30 GB of RAM. So fewer |
Beta Was this translation helpful? Give feedback.
-
Hi CaImAn team,
I've run into an issue with a dataset that overwhelms CPU and RAM resources during the CNMF step and I could use your insight on how or if I can optimize parameters to ensure I'm not doing anything wrong.
The dataset was acquired with the Bruker Prairie View system (generating multi-page
.ome.tif
files). It contains single plane imaging data with 89026 frames acquired at 30 fps for a total recording duration of ~ 49 minutes. The images are 512 x 512 pixels.In order to process them through CaImAn, I'm using Ubuntu/Linux AWS EC2
r7i.12xlarge
instances with a 4th gen Intel Xeon processor and 384 GB RAM. CaImAn is installed using the developer installation approach within the DockerFile. The last logger message I see before I receive aSIGTERM
error isStarting CNMF analysis...
. I'm able to run everything fine up to that point. I'm not sure which process in the CNMF step is causing the CPU/RAM resources to be overwhelmed.Also, These are the parameters I'm using to process this dataset:
Please let me know if you have any suggestions on how this can be optimized and if others have encountered similar situations. I'd be happy to reach out to them if needed to find a solution here.
Thank you!
Kushal
Beta Was this translation helpful? Give feedback.
All reactions