rufik Posted April 22, 2021 #1 Posted April 22, 2021 Is there possibility to disable disk swap?I'd like to have only compressed ram swap, not disk-based swap. Quote
flyride Posted April 23, 2021 #2 Posted April 23, 2021 It's probably possible to disable swap (and it is certainly possible to omit slow drives from swap I/O by modifying the RAID1 array to use the slow drives as hotspares) but the swap space will always be reserved on every disk that is initialized for use with DSM (partition 1). So, if your objective is to recover the space, that is not possible. If your goal is to speed up the swap access and you have certain drives that are better able to handle the I/O, see this: https://xpenology.com/forum/topic/12391-nvme-optimization-baremetal-to-esxi-report Quote
rufik Posted April 23, 2021 Author #3 Posted April 23, 2021 I only want to omit swap usage on slow hdd (/dev/md1), no space reclamation. I can easily disable it manually (swapoff as root) but how to prevent DSM from use it again after reboot? Quote
f2cal6fg Posted November 8, 2023 #4 Posted November 8, 2023 On 4/23/2021 at 9:47 AM, rufik said: I only want to omit swap usage on slow hdd (/dev/md1), no space reclamation. I can easily disable it manually (swapoff as root) but how to prevent DSM from use it again after reboot? Sorry for digging out old post, but I am also looking for this since I have terrible QD and latency on my md1 (swap) partition. Have you managed to archive that? Quote
f2cal6fg Posted November 19, 2023 #5 Posted November 19, 2023 (edited) So I enabled swapfile on a different volume with higher priority instead. Make sure swapfile priority is higher than of other swaps. Configure swapfile setup on system boot. $ sudo truncate -s 2G /volumeX/swapfile $ sudo mkswap /volumeX/swapfile $ sudo swapon -p 9 /volumeX/swapfile $ swapon --show Edited November 19, 2023 by f2cal6fg typo Quote
JeroenSt Posted October 10, 2024 #6 Posted October 10, 2024 Just create a task which is executed on boot in the settings of the nas containing the "swappoff -a" command works like a shine. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.