Skip to content

Commit e3ca18e

Browse files
authored
Merge pull request #78660 from sbeskin-redhat/CNV_44280_Update_swap_documentation
CNV-44280: Swap documentation update
2 parents 51ba99a + b5be628 commit e3ca18e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/virt-using-wasp-agent-to-configure-higher-vm-workload-density.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,12 @@ spec:
185185
[Service]
186186
Type=oneshot
187187
Environment=SWAP_SIZE_MB=5000
188-
ExecStart=/bin/sh -c "sudo dd if=/dev/zero of=/var/tmp/swapfile count=$SWAP_SIZE_MB bs=1MiB && sudo chmod 600 /var/tmp/swapfile && sudo mkswap /var/tmp/swapfile && sudo swapon /var/tmp/swapfile && free -h"
188+
ExecStart=/bin/sh -c "sudo dd if=/dev/zero of=/var/tmp/swapfile count=${SWAP_SIZE_MB} bs=1M && \
189+
sudo chmod 600 /var/tmp/swapfile && \
190+
sudo mkswap /var/tmp/swapfile && \
191+
sudo swapon /var/tmp/swapfile && \
192+
free -h && \
193+
sudo systemctl set-property --runtime system.slice MemorySwapMax=0 IODeviceLatencyTargetSec=\"/ 50ms\""
189194

190195
[Install]
191196
RequiredBy=kubelet-dependencies.target

0 commit comments

Comments
 (0)