I read here that:
I have been reading here and elsewhere that “discard” is not to be used as mount option for SSD partitions. Is a swap partition to be regarded as an exception?
From man swapon
-d , –discard [ = policy ]
Enable swap discards, if the swap backing device supports the discard or trim operation. This may improve performance on some Solid State Devices, but often it does not. The option allows one to select between two available swap discard policies: –discard=once to perform a single-time discard operation for the whole swap area at swapon; or –discard=pages to asynchronously discard freed swap pages before they are available for reuse. If no policy is selected, the default behavior is to enable both discard types. The /etc/fstab mount options discard , discard=once , or discard=pages may also be used to enable discard flags.
I’ll be grateful for any explanation and comment.