Differences between revisions 2 and 3
Revision 2 as of 2011-10-26 07:10:43
Size: 650
Editor: GeoffSimmons
Comment: Limit automatic linking.
Revision 3 as of 2012-01-12 13:54:12
Size: 1148
Editor: ?wekt
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
  Debian can be configured so as to minimise the amount it writes to storage, which is useful when running on flash memory (such as a !CompactFlash card). Various things you may wish to configure to optimize use of flash storage, such as !CompactFlash card, MMC/SD card, or Solid State Drive (SSD), include:
 * allow the flash controller to reclaim sectors with the TRIM command
 * changing frequency of flushing writes
 * disabling, by circumvention, synchronous writes for some applications
 * changing which IO scheduler is used
 * reducing ammount of data written to the flash storage.
Line 6: Line 10:
== Inform flash controller it can reclaim sectors ==
This is done by specifying the discard option in fstab. Recognizing this option is dependent on the file system. Ext4 and BTrFS recognize and use this option.

Various things you may wish to configure to optimize use of flash storage, such as CompactFlash card, MMC/SD card, or Solid State Drive (SSD), include:

  • allow the flash controller to reclaim sectors with the TRIM command
  • changing frequency of flushing writes
  • disabling, by circumvention, synchronous writes for some applications
  • changing which IO scheduler is used
  • reducing ammount of data written to the flash storage.

Inform flash controller it can reclaim sectors

This is done by specifying the discard option in fstab. Recognizing this option is dependent on the file system. Ext4 and BTrFS recognize and use this option.

Finding recently changed files

Finding out which files have been written to recently:

sudo find / -xdev -printf '%T+ %P\n' | sort -n | tail -99

syslog

Edit /etc/rsyslog.conf and comment out any log files that are not required.

/var/run and /var/lock

sudoedit /etc/default/rcS

..then edit these lines:

RAMRUN=yes
RAMLOCK=yes

..so that /var/run and /var/lock are mounted in RAM.