phasseshifter
Senior member
given the fact that linux makes a swap partition...would this wear out the ssd r/w cycles on a ssd hdd would it shorten the drive life...
Linux does no such thing. Installers do that, if you tell them to automatically partition, in case you choose a file system that lacks swap file support, but don't have the RAM to run without swap.given the fact that linux makes a swap partition...
No. At least, no more than with Windows, and probably a lot less.would this wear out the ssd r/w cycles on a ssd hdd would it shorten the drive life...
Note: fdisk and gdisk do not allow the first partition to be unaligned, without a command-line argument when run, and most of the time installers align all partitions to 1MB, even if not enforced by the partition tool. So, it's automatic, like Windows'.If you wish to be prudent, it is more important to have a properly aligned partition
Add ",discard" to the mount options (without quotes, obviously). If this causes stuttering, which it can for drives that commit TRIM immediately (840 Pro, FI), you can instead run "fstrim /" as a cron job (that will do a full pass of free space at once). Due to some FSes taking time to get really stable support for TRIM, and a handful of buggy older SSDs (also, that most people will never notice the difference, if you don't tell them, and they don't run benchmarks for it), it's not usually on by default.and TRIM enabled.
Not due to how TRIM works, but the SSD's internal wear leveling. How much it may help will be dependent on workload. With solid FS and drive support for TRIM, today, and given how consistent most newer SSDs are in their performance over time, I wouldn't bother, unless on an random write heavy system (OLTP server, dedicated BT box, or something like that).Also, many people believe that leaving 10-20 percent of the drive empty (non-partitioned) can help keep overall performance up due to how TRIM works.
sudo fstrim -v /
My new years resolution is to learn Linux. TRIM is not automatic on a Linux install? How do you align the partition in a Linux install?
My new years resolution is to learn Linux. TRIM is not automatic on a Linux install? How do you align the partition in a Linux install?