-
Notifications
You must be signed in to change notification settings - Fork 10
Various information on SSD drives.
Agregation of SSD information.
From ArchLinux wiki for EeePC 701
- Never choose to use a journaling file system on the SSD partitions
- Never use a swap partition on the SSD
- Edit your new installation fstab to mount the SSD partitions “noatime”
- Never log messages or error log to the SSD
The rules ensure that we won’t reach the maximum limit of writes on our SSD faster than we should, although this is being contested (see this link and this other link).
If you set up /var/log to be a tmpfs, umounting it will loose all logs. acpi-eeepc-generic provides a script that archives the logs. The script, acpi-eeepc-generic-logsbackup.rcd, compress /var/log folder’s content in an archive. This archive’s location is configurable from the configuration file under “LOGSBACKUP_FOLDER”.
The script can be run manually (by giving it “stop” as argument) or automatically at shutdown. For the later, add “logsbackup” to your DAEMONS array in /etc/rc.conf (under ArchLinux).
Source: tombuntu’s Four tweaks for using linux with solid state drives
- Use “noatime” instead of “elatime”
- Mount /tmp as ramfs: tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
- Set firefox’s cache to use /tmp. In about:config, set “browser.cache.disk.parent_directory” to “/tmp”
- Use “deadline” or “noop” as IO scheduler:
# echo deadline > /sys/block/sda/queue/scheduler
# echo 1 > /sys/block/sda/queue/iosched/fifo_batch