Skip to content

Instantly share code, notes, and snippets.

@matthijskooijman
Created December 14, 2015 13:15
Show Gist options
  • Save matthijskooijman/61bf1c8cc5f735048178 to your computer and use it in GitHub Desktop.
Save matthijskooijman/61bf1c8cc5f735048178 to your computer and use it in GitHub Desktop.
4,5c4,5
< Timing cached reads: 1696 MB in 2.00 seconds = 847.70 MB/sec
< Timing buffered disk reads: 218 MB in 3.00 seconds = 72.61 MB/sec
---
> Timing cached reads: 1664 MB in 2.00 seconds = 831.84 MB/sec
> Timing buffered disk reads: 490 MB in 3.00 seconds = 163.06 MB/sec
9c9
< 134217728 bytes (134 MB) copied, 1.20088 s, 112 MB/s
---
> 134217728 bytes (134 MB) copied, 0.513574 s, 261 MB/s
11c11
< lrwxrwxrwx 1 root root 0 Dec 14 13:53 /sys/block/sda -> ../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda
---
> lrwxrwxrwx 1 root root 0 Dec 14 13:53 /sys/block/sda -> ../devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sdb
19,20c19,20
< Serial Number: S1D5NSCDC09586Y
< LU WWN Device Id: 5 002538 8a018e31f
---
> Serial Number: S1D5NSAF266980H
> LU WWN Device Id: 5 002538 8a0230d51
28c28
< Local Time is: Mon Dec 14 14:13:00 2015 CET
---
> Local Time is: Mon Dec 14 14:13:25 2015 CET
73c73
< 177 Wear_Leveling_Count 0x0013 098 098 000 Pre-fail Always - 17
---
> 177 Wear_Leveling_Count 0x0013 096 096 000 Pre-fail Always - 46
79c79
< 190 Airflow_Temperature_Cel 0x0032 066 055 000 Old_age Always - 34
---
> 190 Airflow_Temperature_Cel 0x0032 067 057 000 Old_age Always - 33
83c83
< 241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 5085513937
---
> 241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 5295097574
106c106
< Model=Samsung SSD 840 EVO 120GB, FwRev=EXT0BB6Q, SerialNo=S1D5NSCDC09586Y
---
> Model=Samsung SSD 840 EVO 120GB, FwRev=EXT0BB6Q, SerialNo=S1D5NSAF266980H
122,128c122,128
< [ 4.248867] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
< [ 4.340901] sd 0:0:0:0: [sda] Write Protect is off
< [ 4.345808] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
< [ 4.345877] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
< [ 4.357881] sda: sda1
< [ 4.363015] sd 0:0:0:0: [sda] Attached SCSI disk
< [ 4.389948] md: bind<sda1>
---
> [ 4.249199] sd 1:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
> [ 4.249493] sd 1:0:0:0: [sda] Write Protect is off
> [ 4.249499] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
> [ 4.249596] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [ 4.252542] sda: sdb1
> [ 4.253514] sd 1:0:0:0: [sda] Attached SCSI disk
> [ 4.607121] md: bind<sda1>
+ hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1696 MB in 2.00 seconds = 847.70 MB/sec
Timing buffered disk reads: 218 MB in 3.00 seconds = 72.61 MB/sec
+ dd if=/dev/sda of=/dev/null iflag=direct,dsync,sync bs=128M count=1
1+0 records in
1+0 records out
134217728 bytes (134 MB) copied, 1.20088 s, 112 MB/s
+ ls -l /sys/block/sda
lrwxrwxrwx 1 root root 0 Dec 14 13:53 /sys/block/sda -> ../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda
+ smartctl -a /dev/sda
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.16.0-4-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Samsung based SSDs
Device Model: Samsung SSD 840 EVO 120GB
Serial Number: S1D5NSCDC09586Y
LU WWN Device Id: 5 002538 8a018e31f
Firmware Version: EXT0BB6Q
User Capacity: 120,034,123,776 bytes [120 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Mon Dec 14 14:13:00 2015 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 4200) seconds.
Offline data collection
capabilities: (0x53) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 70) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
9 Power_On_Hours 0x0032 094 094 000 Old_age Always - 26634
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 31
177 Wear_Leveling_Count 0x0013 098 098 000 Pre-fail Always - 17
179 Used_Rsvd_Blk_Cnt_Tot 0x0013 100 100 010 Pre-fail Always - 0
181 Program_Fail_Cnt_Total 0x0032 100 100 010 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 010 Old_age Always - 0
183 Runtime_Bad_Block 0x0013 100 100 010 Pre-fail Always - 0
187 Uncorrectable_Error_Cnt 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0032 066 055 000 Old_age Always - 34
195 ECC_Error_Rate 0x001a 200 200 000 Old_age Always - 0
199 CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0
235 POR_Recovery_Count 0x0012 099 099 000 Old_age Always - 23
241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 5085513937
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
+ hdparm -i /dev/sda
/dev/sda:
Model=Samsung SSD 840 EVO 120GB, FwRev=EXT0BB6Q, SerialNo=S1D5NSCDC09586Y
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=unknown, MaxMultSect=1, MultSect=1
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-2,3,4,5,6,7
* signifies the current active mode
+ dmesg
+ grep sda
[ 4.248867] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
[ 4.340901] sd 0:0:0:0: [sda] Write Protect is off
[ 4.345808] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 4.345877] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 4.357881] sda: sda1
[ 4.363015] sd 0:0:0:0: [sda] Attached SCSI disk
[ 4.389948] md: bind<sda1>
+ hdparm -tT /dev/sdb
/dev/sdb:
Timing cached reads: 1664 MB in 2.00 seconds = 831.84 MB/sec
Timing buffered disk reads: 490 MB in 3.00 seconds = 163.06 MB/sec
+ dd if=/dev/sdb of=/dev/null iflag=direct,dsync,sync bs=128M count=1
1+0 records in
1+0 records out
134217728 bytes (134 MB) copied, 0.513574 s, 261 MB/s
+ ls -l /sys/block/sdb
lrwxrwxrwx 1 root root 0 Dec 14 13:53 /sys/block/sdb -> ../devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sdb
+ smartctl -a /dev/sdb
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.16.0-4-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Samsung based SSDs
Device Model: Samsung SSD 840 EVO 120GB
Serial Number: S1D5NSAF266980H
LU WWN Device Id: 5 002538 8a0230d51
Firmware Version: EXT0BB6Q
User Capacity: 120,034,123,776 bytes [120 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Mon Dec 14 14:13:25 2015 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 4200) seconds.
Offline data collection
capabilities: (0x53) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 70) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
9 Power_On_Hours 0x0032 094 094 000 Old_age Always - 26634
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 31
177 Wear_Leveling_Count 0x0013 096 096 000 Pre-fail Always - 46
179 Used_Rsvd_Blk_Cnt_Tot 0x0013 100 100 010 Pre-fail Always - 0
181 Program_Fail_Cnt_Total 0x0032 100 100 010 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 010 Old_age Always - 0
183 Runtime_Bad_Block 0x0013 100 100 010 Pre-fail Always - 0
187 Uncorrectable_Error_Cnt 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0032 067 057 000 Old_age Always - 33
195 ECC_Error_Rate 0x001a 200 200 000 Old_age Always - 0
199 CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0
235 POR_Recovery_Count 0x0012 099 099 000 Old_age Always - 23
241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 5295097574
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
+ hdparm -i /dev/sdb
/dev/sdb:
Model=Samsung SSD 840 EVO 120GB, FwRev=EXT0BB6Q, SerialNo=S1D5NSAF266980H
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=unknown, MaxMultSect=1, MultSect=1
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-2,3,4,5,6,7
* signifies the current active mode
+ dmesg
+ grep sdb
[ 4.249199] sd 1:0:0:0: [sdb] 234441648 512-byte logical blocks: (120 GB/111 GiB)
[ 4.249493] sd 1:0:0:0: [sdb] Write Protect is off
[ 4.249499] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 4.249596] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 4.252542] sdb: sdb1
[ 4.253514] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 4.607121] md: bind<sdb1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment