---
myst:
html_meta:
"description lang=en": "Kasm Workspace resource allocation, per session CPU and memory leveraging quotas and CPU shares."
"keywords": "Kasm, Resource, Allocation,Linux,Swap"
"property=og:locale": "en_US"
---
## Swap Partition
Administrators can configure sessions to provision with any amount of cpu or memory allocations by editing the in the
{doc}`Kasm Workspace Settings <../guide/workspaces>`. However, even a host with more than enough system memory can run
into stability issues without enabling a swap partition. For this reason, the Kasm installation recommends a swap
partition to be present.
```{warning}
Install Swap partition for best stability of end user sessions. For additional details on docker resource constraints
see the following link:
[Docker Resource Constraints](https://docs.docker.com/config/containers/resource_constraints/)
```
### Creating a Swap Partition
During installation users will be prompted to create a swap partition if none are present. Following this menu a swap partition of any size can be defined depending on the needs of the deployment.
To skip this check pass the `--no-swap-check` installation flag. To automate this process the `--swap-size` installation flag can be passed with a number in megabytes for the resulting swap partition. Example:
```
sudo bash kasm_release/install.sh --accept-eula --swap-size 8192
```
This will create an 8 gigabyte swap partition during Kasm Workspaces installation and assuming the installation is unattended bypass the License prompt.
For general information on swap partitions check out the
[Ubuntu Documentation](https://help.ubuntu.com/community/SwapFaq)