Optimize for SSD or better HDD performance


Home Forums Computer – PC Linux – general Optimize for SSD or better HDD performance

This topic contains 0 replies, has 1 voice, and was last updated by  PMB 3 years, 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3103

    PMB
    Keymaster

    Ref:
    http://askubuntu.com/questions/1400/how-do-i-optimize-the-os-for-ssds
    .
    1) Manage the swap file
    With enough RAM to run all your applications, then in theory you do not need a swap partition.
    With SSD and HDD, put swap on the HDD only.
    2) No Writes for Read Timestamps (suitable for SSD’s and hard drives)
    Add noatime option to fstab to prevent access time stamp updates. Note: may not be possible in some mail server applications.
    3) Minimising writes from the OS and applications
    Add these lines to the end off FSTAB – writes logs to RAM
    # Uncomment these after all server based applications installed – eg. apache
    #tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
    #tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
    #tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
    #tmpfs /var/log/apt tmpfs defaults,noatime 0 0
    # none /var/cache unionfs dirs=/tmp:/var/cache=ro 0 0
    4) SSD Performance – TRIM
    add discard option to fstab mount options

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.