Allocating Notebook Session Swap Space

Learn how we recommend that you allocate block volume space for notebook sessions.

Swap space is allocated on disk and is used as memory when the RAM is full. Space on the attached Block Volume is allocated for swap space for a notebook session. The swap space you allocate to the notebook is the minimum of the memory-configuration of the Compute shape you selected or 25% of the total Block Volume storage.

For example, if the memory of the Compute shape is 16 GB and the Block Volume is 100 GB, then the swap space allocated to the notebook is 16 GB. This is because 16 GB is smaller than 25 GB, which is 25% of the total Block Volume.

Another example is if the Compute shape memory is 32 GB and the Block Volume is 100 GB, then the notebook session would be allocated 25 GB of swap space.

Note

Spillage into swap space can result in massively slow performance because of page swapping. We recommend that you find ways to design code to better manage memory usage.