WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: On SSD drives is there a way to have fstab use noatime?  (Read 7464 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: On SSD drives is there a way to have fstab use noatime?
« Reply #15 on: April 15, 2012, 04:32:09 AM »
Normally to differentiate between a HDD and an SSD you would test for rotational speed greater than 0.  if speed equals 0 drive is SSD, if speed is greater than 0 drive is HDD

hdparm will report an SSD as "nominal media rotation rate: Solid State Drive"
sudo hdparm -I /dev/sda? | grep 'Rotation'

Since the rotational speed can be misrepresented this next test is considered definitive.

test for random 4k read performance with 8MB/s transfer speed set as a threshold speed.  As very few HDD's are capable of 4K random read performance greater than 2MB/s (iirc there are maybe two SCSI drives which are close to this performance),  any result less than this is definitely a HDD  whilst any result above this clearly indicates an SSD.

« Last Edit: April 15, 2012, 05:00:48 AM by coreplayer2 »