drop discard for swapfile

This doesn't quite work as intended since the reserved file space is
dropped and it results in fragmentation.
This commit is contained in:
Daniel Micay 2024-10-26 13:54:07 -04:00
parent ef3d3f35e1
commit e2c73f3c6d
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
swap /swapfile /dev/random swap,cipher=aes-xts-plain64,size=512,sector-size=4096,no-read-workqueue,no-write-workqueue,discard swap /swapfile /dev/random swap,cipher=aes-xts-plain64,size=512,sector-size=4096,no-read-workqueue,no-write-workqueue

2
fstab
View File

@ -1,2 +1,2 @@
/dev/mapper/swap none swap discard=once 0 0 /dev/mapper/swap none swap defaults 0 0
tmpfs /etc/nginx/session-ticket-keys tmpfs size=1M,mode=700,noswap,x-systemd.before=nginx-create-session-ticket-keys.service,x-systemd.required-by=nginx-create-session-ticket-keys.service 0 0 tmpfs /etc/nginx/session-ticket-keys tmpfs size=1M,mode=700,noswap,x-systemd.before=nginx-create-session-ticket-keys.service,x-systemd.required-by=nginx-create-session-ticket-keys.service 0 0