![]() Mount option "commit=600" in /etc/fstab.May only be available as non-path/mount specific global settings. Kernel settings like the "dirty_buffer_ratio" etc.Optionally, make system only flush data to the disk every 10 minutes or more:./etc/fstab: line such as "tmpfs /tmp tmpfs noatime,nosuid 0 0".using systemV, set RAMTMP, RAMRUN and RAMLOCK to "yes" in /etc/default/tmpfs.Sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/ enable system-managed ramdisks Of course, this will not improve writing to the SSD if your system (filesystem holding / or /tmp) is not located on it.RAMDISK configuration may be performed via Use of RAMDISK can stop constantly changing files from hitting on the SSD (it may hit SSD via swap). Reduction of SSD write frequency via RAMDISK For older versions software raid (md device layer) that lack trim support, you could use something like mdtrim ( ).Īlternative to LVM's "issue_discards" is to blkdiscard on the LV before lvremove, or afterwards on a temporarily created LV with lvcreate -l100%FREE to trim all unused LVM space. Var UUID=01234567-89ab-cdef-0123-456789abcdef none luks,discardĪfter changing filesystem options, update settings in all initramfs images: $ sudo update-initramfs -u -k allĪlternative to setting the "discard" options is to set up an offline-trim cronjob that runs time fstrim -v on the ssd mountpoints periodically (but the WARNING at the top of the page is relevant here too). The "discard" options with on-disk-cryptography (like dm-crypt) have drawbacks with security/cryptography.Įxample for dm-crypt's /etc/crypttab: # ![]() The "discard" options is not needed if your SSD has enough overprovisioning (spare space) or you leave (unpartitioned) free space on the SSD. Alternatively, and often not recommended: Set "discard" mount option in /etc/fstab for the ext4 filesystem, swap partition, Btrfs, etc.Set "discard" option in /etc/crypttab for dm-crypt.Set "issue_discards" option in /etc/lvm/lvm.conf for LVM if you want LVM to discard on lvremove. ![]() If desirable, enable the "discard" filesystem options for automatic online TRIM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |