SIRF-Exercises icon indicating copy to clipboard operation
SIRF-Exercises copied to clipboard

Codespace: disk usage

Open casperdcl opened this issue 6 months ago • 3 comments

notebooks/Synergistic/BrainWeb.ipynb fails during forward projection due to disk (!) space usage on the 32GB disk machines. The lowest-spec workable Codespace is the 8-core (64 GB disk) machine.

Possible solutions:

  • reduce size of data from https://github.com/SyneRBI/SIRF-Exercises/blob/a239c0b397dd85fafc77c27d2b97452b11cb85ec/.devcontainer/devcontainer.json#L16
  • write temporary data to /dev/shm (RAM) instead of disk
  • document disk usage requirements

casperdcl avatar Jun 24 '25 15:06 casperdcl

As it happens during the forward projection, we could set pet.AcquisitionData.set_storage_scheme("memory"), or whatever the syntax is (@evgueni-ovtchinnikov?), at the top.

KrisThielemans avatar Jun 24 '25 16:06 KrisThielemans

set_storage_scheme("memory") works for the first fwd projection, but the second one in the notebook triggers out of memory (on the 8GB RAM machine)...

Should we add set_storage_scheme("memory") to BrainWeb.ipynb and raise the memory requirements here? https://github.com/SyneRBI/SIRF-Exercises/blob/34ab5ab512a1130dc6606c4ef3e57db6f168eca0/.devcontainer/devcontainer.json#L5

casperdcl avatar Jun 27 '25 13:06 casperdcl

Let's consider this later, i.e. after the PiW training. Best not to make changes anymore.

KrisThielemans avatar Jun 28 '25 20:06 KrisThielemans