Bug 12072

Summary: SATA Performance problem
Product: IO/Storage Reporter: Reiser (metal)
Component: Block LayerAssignee: Jens Axboe (axboe)
Status: CLOSED OBSOLETE    
Severity: high CC: akpm, alan, altwazar, bgamari, brebs, dimitar.giormov, dr-ru, linuxdrom, lure, Strange_V, stuffcorpse, tlxr
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.27.6 Subsystem:
Regression: No Bisected commit-id:
Attachments: Boot Log

Description Reiser 2008-11-20 17:45:32 UTC
Latest working kernel version: -
Earliest failing kernel version: -
Distribution: ArchLinux
Hardware Environment: 
Motherboard:
ASUS P5B-E (Intel ICH8 Controller, Jmicron PATA)
Hard Drive: Seagate ST3400620AS 400Gb SATA2
Proccesor: Core2duo E6300

Software Environment:
ArchLinux i686, kernel 2.6.27.6
Problem Description:
I have a problem with performance when disk busy by I/O operations, example copying files. System becomes VERY slow, but CPU load above ~11%. hdparm detect mode udma6. I tried ext3/reiserfs/xfs filesysems - same results.
It is problem with controller driver? I'm found many topics on linux-forums about this problem on Intel controllers...

Steps to reproduce:
Comment 1 Tejun Heo 2008-11-20 18:40:00 UTC
Please post kernel boot log and can you please describe how the system is slow in more detail?  Also, please run "vmstat 5" while copying a large file and post the result.  Thanks.
Comment 2 Reiser 2008-11-21 07:26:53 UTC
Created attachment 18964 [details]
Boot Log
Comment 3 Reiser 2008-11-21 07:27:26 UTC
For example, applications run very slow. While copying files firefox starting about 30 seconds vs 5 in rest, navigation in Nautilus delaying about 2-5 seconds.


I copyied file 1.4Gb on one partition:

[reiser ~]$ vmstat 5
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 1  0      0 910312  13996 912444    0    0  2447  2567  170  426  2  1 74 22
 0  2      0 696276  14220 1122568    0    0     0 34859  511  957  3  5 60 31
 2  1      0 505904  14396 1312992    0    0  3482 33531  475 1040  3  5 37 55
 0  2      0 279804  14508 1535184    0    0 22221 27974  379  943  0  4 23 73
 0  2      0  74356  14616 1738656    0    0 20352 23034  376  934  1  3 24 72
 0  1      0  51268  10440 1769324    0    0 19021 18308  381  952  0  3 52 45
 0  1      0  53556   6456 1771836    0    0 21069 20445  421 1068  1  4 51 44
 1  4      0  53836   5096 1774452    0    0 23117 20246  419 1101  1  4 48 47
 0  3      0  51724   5188 1777932    0    0 19866 22562  383  991  1  3 43 53
 0  3      0  53852   5280 1778392    0    0 16768 17930  449 1157  1  4 48 47
 0  2      0  53452   5196 1779576    0    0 22067 22424  419 1051  1  4 50 46
 0  2      0  52876   4296 1782720    0    0 20871 21174  386  980  1  4 50 45
 0  2      0  53112   2980 1784364    0    0 21706 21733  515 1478  1  4 51 45
Comment 4 Tejun Heo 2008-11-21 07:29:36 UTC
Even on XFS?
Comment 5 Reiser 2008-11-21 08:07:54 UTC
Yes
Comment 6 Tejun Heo 2008-11-21 09:14:37 UTC
Hmmm... Certain level of slow down is expected but things becoming VERY slow isn't nice.  cc'ing Andrew.  Andrew, I don't have much idea how to proceed here.  Can you help?  Thanks.
Comment 7 Tejun Heo 2008-11-21 09:15:50 UTC
Also, what does "hdparm -t /dev/sda" say?  Can you also post the result of "hdparm -I /dev/sda" and "smartctl -a /dev/sda"?
Comment 8 Reiser 2008-11-21 10:43:29 UTC
bash-3.2# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads:  232 MB in  3.02 seconds =  76.73 MB/sec


bash-3.2# hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
	Model Number:       ST3400620AS                             
	Serial Number:      9QH0G4NV
	Firmware Revision:  3.AAK   
Standards:
	Supported: 7 6 5 4 
	Likely used: 7
Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors:  781422768
	device size with M = 1024*1024:      381554 MBytes
	device size with M = 1000*1000:      400088 MBytes (400 GB)
Capabilities:
	LBA, IORDY(can be disabled)
	Queue depth: 32
	Standby timer values: spec'd by Standard, no device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 16
	Recommended acoustic management value: 254, current value: 0
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	DOWNLOAD_MICROCODE
	    	SET_MAX security extension
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	   *	General Purpose Logging feature set
	   *	SATA-I signaling speed (1.5Gb/s)
	   *	SATA-II signaling speed (3.0Gb/s)
	   *	Native Command Queueing (NCQ)
	   *	Phy event counters
	    	Device-initiated interface power management
	   *	Software settings preservation
Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
		frozen
	not	expired: security count
	not	supported: enhanced erase
Checksum: correct



bash-3.2# smartctl -a /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.10 family
Device Model:     ST3400620AS
Serial Number:    9QH0G4NV
Firmware Version: 3.AAK
User Capacity:    400 088 457 216 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Fri Nov 21 21:41:59 2008 MSK
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:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
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: 		 ( 430) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					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: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 132) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   113   100   006    Pre-fail  Always       -       56004534
  3 Spin_Up_Time            0x0003   094   091   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1301
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   063   054   030    Pre-fail  Always       -       120318272646
  9 Power_On_Hours          0x0032   097   097   000    Old_age   Always       -       3031
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1308
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   068   049   045    Old_age   Always       -       32 (Lifetime Min/Max 31/35)
194 Temperature_Celsius     0x0022   032   051   000    Old_age   Always       -       32 (0 16 0 0)
195 Hardware_ECC_Recovered  0x001a   065   061   000    Old_age   Always       -       5328233
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   100   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      2930         -

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.
Comment 9 Tejun Heo 2008-11-21 22:00:52 UTC
Eh.. nothing really stands out ATA-wise.  Andrew, any ideas?
Comment 10 Andrew Morton 2008-11-21 22:13:43 UTC
Nope.

please run a `vmstat 1' trace, then send us 20 or 30 lines from that which 
correspond with the system begin slow.

What makes you think it's slow, anyway?  Have any other kernels run
faster on that machine?  Did you have other machines which seemed
quicker?
Comment 11 Reiser 2008-11-22 04:03:41 UTC
It's then copying files and starting firefox
I'm tryied other kernels (2.6.22 - 2.6.26), even compiled own builds, but nothing changed / No, i have'nt other machines anymore.

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  4      0  53644   3720 1748240    0    0 21444 13892 1215 2854  3  4 51 41
 0  3      0  53936   3752 1749252    0    0 16124     0  884 2781  2  2 46 50
 0  3      0  54028   3760 1747504    0    0 28144 16580  961 3453  3  6 51 40
 0  5      0  53684   3800 1747100    0    0 24900 53620 1068 2512  4  5 51 39
 2  6      0  52224   3820 1745744    0    0  1852  4688  736 1937  4  1 46 49
 0  6      0  54560   3956 1743052    0    0  1072     0  739 2019  2  1 45 52
 0  4      0  52744   4060 1744532    0    0  3408     4  502 1741  1  1 38 59
 0  4      0  52736   4244 1744164    0    0  6264     0  449 1443  0  1 49 49
 1  3      0  52552   4444 1745308    0    0  8264 22080  924 4504  1  3 37 58
 0  3      0  53992   4600 1744308    0    0 10284    64  661 2428  2  2 50 47
 0  3      0  52060   4704 1745956    0    0  6908     4  461 1304  0  2 50 47
 0  3      0  51572   4836 1745796    0    0 12552     0  605 2080  1  2 52 45
 0  3      0  51676   4972 1745132    0    0 23384 12712  554 1828  0  4 51 44
 0  3      0  52540   5048 1741924    0    0 22212 59484  787 2465  1  5 52 42
 0  6      0  51652   5008 1743280    0    0 24148 13904  794 2414  1  3 52 44
 0  4      0  51564   5024 1739064    0    0 23972 34300  805 2226  2  4 51 42
 1  4      0  52604   5032 1738840    0    0  1904  1240  576 1584  0  1 51 47
 0  4      0  54272   5108 1736836    0    0 14152     4  851 3014  4  4 30 62
 0  7      0  52016   5136 1737584    0    0 22552 19340  752 2087  1  6 41 51
 0  6      0  52988   5188 1738072    0    0 14104   128  645 1914  1  3 14 82
 0  3      0  52616   5140 1738712    0    0 14852 20308  896 2905  2  5 44 50
 0  3      0  53328   5116 1743620    0    0 28808 51684 1244 4004  5  8 33 54
Comment 12 Strange_V 2008-11-22 08:22:30 UTC
Confirm bug.

Distribution: Ubuntu
Motherboard: ASUS P5K (ICH9)
Hard Drive: Seagate ST3400620AS 400Gb SATA2
Proccesor: Core2duo E6550

Software Environment:
Ubuntu x86_64, kernel 2.6.27-7
Comment 13 Anton Tarassov 2008-11-26 19:39:11 UTC
Confirm bug.
Distribution: Debian
Motherboard: Supermicro
Hard Drive: Seagate ST3400620AS 400Gb SATA2
Processor: Intel(R) Xeon(TM) CPU 3.20GHz

Software Environment:
Debian i386, 2.6.18-12-fza-686
Comment 14 Anton Tarassov 2008-11-26 19:40:09 UTC
vz1host:/etc# vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  3    148 122344 275132 959556    0    0    66    16   18   41  4  2 88  7
 0  5    148 122344 275144 959544    0    0     4   552 3243 2650  3  1 31 65
 0  5    148 123136 275164 959688    0    0    12   488 3483 3004  4  2 38 56
 2  4    148 122384 275172 959680    0    0     8   728 3481 2989  4  2 38 56
 0  3    148 121252 275184 959716    0    0     4   500 3463 2961  4  2 35 58
 0  2    148 121376 275188 959712    0    0     4   564 4075 3475  4  2 36 58
 1  4    148 121624 275204 959704    0    0     4   564 6141 5711  8  3 30 60
 0  3    148 121748 275208 959700    0    0     0   464 5389 4976  6  3 43 48
 0  4    148 122616 275212 959856    0    0     0  2544 3799 2971  4  2 19 75
 1  2    148 121996 275212 959856    0    0     0   388 3670 3128  3  3 40 54
 0  6    148 121656 275216 959840    0    0     0   348 3572 3221  4  2 30 63
 0  4    148 121904 275224 959832    0    0     4   676 5535 6064  7  4 46 42
 1  3    148 121880 275236 959840    0    0     8   380 4552 5463  9  3 38 50
Comment 15 Denis Zhdanov 2008-11-26 21:24:19 UTC
Confirm bug.

sad@sad-desktop ~ $ vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  6   2860  25600  40616 2630884    0    0    43    12    4   10  9  0 90  0
 1  5   2860  28972  39732 2626580    0    0 41680     0  523 1775  1  4  2 94
 0  4   2860  32824  39168 2622828    0    0 28504     4  417 1468  0  3  4 93
 1  3   2860  27476  38692 2628376    0    0 26788   120  503 1475  7  3 28 62
 0  6   2860  30520  38056 2623604    0    0 27808 87756  392 1583 18  4 27 51
 0  6   2860  25844  37640 2628292    0    0 21864 32656  421 1429  4  3 42 52
 1  5   2860  26168  36848 2627636    0    0 34004 31744  525 1821 22  3 15 61
 1  6   2860  29500  36272 2623808    0    0 23836 32768  578 2489 27  3 14 57
 1  6   2860  26292  35864 2626952    0    0 22780 32772  435 2350 24  2 25 49
 1  5   2860  26572  35172 2626296    0    0 27548 32792  508 1799 25  3 38 34
 1  5   2860  29048  34940 2624264    0    0  7432 48292  265  867 19  1  3 77
 1  3   2860  25912  34344 2629528    0    0 28700 17576  571 1718 24  5 23 48
 1  5   2860  28196  33592 2629316    0    0 31072 33872  465 1777 25  3 36 35
 1  3   2860  30628  33216 2627832    0    0 16400 43360  392 1296 25  2  8 65
 1  7   2860  25588  32656 2632968    0    0 25436 32280  445 1590 22  2 11 65
 1  6   2860  35500  31276 2623304    0    0 50224 16384  625 2007 25  4  6 65
 3  5   2860  27204  31136 2632472    0    0 11016 19488  252  965 25  1  6 68
 2  6   2860  34360  30580 2629492    0    0 21144 41440  414 1406 16  3 19 63
 2  2   2860  31616  29920 2631876    0    0 27040 13072  387 1406 24  3 13 61

System became unresponsible.
While writing big files to disk, it even hard to type "vmstat 1" in the shell.

sad-desktop ~ # hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   6794 MB in  2.00 seconds = 3399.20 MB/sec
 Timing buffered disk reads:  228 MB in  3.00 seconds =  75.90 MB/sec

sad-desktop ~ # hdparm -i /dev/sda | grep UDMA && hdparm -i /dev/sdb | grep UDMA
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6

Distribution: Gentoo (but try many others).
Motherboard: Asus p5e ws pro, Asus Striker Extreme.
Hard Drive: SAMSUNG HD321KJ, SAMSUNG HD753LJ, SATA-II 320Gb Seagate 7200 Barracuda 7200.11 [ST3320613AS] (and many others).
Processor: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz

On my older machine's (4-6 years old) i dont see any slowness at all.
Sorry for my bad english.
Comment 16 Dmitry Rudakov 2008-11-30 03:39:34 UTC
Confirm bug.

Distribution: Fedora 9, 10 (amd64)
Motherboard: Gigabyte g33
Hard Drive: WDC WD5000AAKS-00A7B0
Proccesor: Intel(R) Core(TM)2 Duo CPU     E6750  @ 2.66GHz
Comment 17 Luka Renko 2008-12-03 13:45:11 UTC
Similar regression in Ubuntu: https://launchpad.net/bugs/131094
Comment 18 Evgeniy Chudaykin 2008-12-04 10:27:00 UTC
Confirm bug.

Distribution: Archlinux current
Chipset: Intel Corporation Mobile PM965/GM965/GL960
Hard Drive: WDC WD1600BEVT-75ZCT0
Proccesor: Intel(R) Pentium(R) Dual  CPU  T2370  @ 1.73GHz
Comment 19 Individo 2008-12-16 10:08:31 UTC
Confirm bug.

Distribution: Ubuntu 8.10, openSUSE 11.0
Motherboard: Asus P5B
Hard Drive: ST3320620AS, ST31000340AS, ST3500630AS
Proccesor: Intel(R) Core(TM)2 Quad CPU     Q6600  @ 2.4GHz
Memory:   2xHynix HYMP512U64CP8-S5
Comment 20 Reiser 2009-01-01 07:29:47 UTC
What a status of this bug?
Comment 21 Reiser 2009-01-01 11:55:45 UTC
I think problem in agressive caching to RAM while copying big files
It can seen on this `vmstat 1` output (kernel 2.6.28):

 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  2      0  16812   4436 1606708    0    0 71556 70140 1320 1830  5 10 43 41
 2  1      0  16448   4448 1607440    0    0 70628 70036 1224 1672  5  9 41 44
 2  1      0  16356   4412 1607152    0    0 80588 78384 1381 1712  5 10 37 48
 0  2      0  15496   4404 1607724    0    0 80920 78440 1388 1741  4 11 30 55
 1  0      0  16152   4396 1607084    0    0 79672 78376 1383 2132  6 10 36 48
 1  0      0  15652   4404 1608312    0    0 74508 74248 1310 2042  7  9 45 40
 0  1      0  16584   4396 1607052    0    0 79360 82484 1491 2419  6  9 44 41
 2  1      0  15864   4448 1607904    0    0 76260 78396 1474 2103  7 13 42 38
 0  1      0  16448   4424 1607440    0    0 78828 74276 1390 2245  6 11 42 42

System slower (almost unrespondable) when in begin of this thread
Comment 22 Antony Williams 2009-01-14 13:39:57 UTC
I've had this problem ever since CFS' debut in 2.6.23
Comment 23 linuxdrom 2009-05-04 02:35:21 UTC
Confirm bug.

Distribution: Gentoo
Motherboard: GIGABYTE GA-P35-DS4 (ICH9R+JMB363)
Hard Drive: Samsung HD103UJ SATA2
Proccesor: Core2duo E8200

Software Environment:
Gentoo x86_64 2.6.28-gentoo-r5
Comment 24 Alex 2009-07-03 08:13:23 UTC
Confirm bug.

Distribution: Ubuntu 9.04
Motherboard: GIGABYTE GA-M52S-S3P (nForce 430)
Hard Drive: Samsung HD103UJ SATA2
Proccesor: AMD 64 x2 6000+
Memory: 2x1Gb

Software Environment:
Ubuntu x86_64 2.6.28-13-generic, FS - ext4/ntfs

-----------------------------------------------
alex@alex-desktop:~$ sudo hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads:  344 MB in  3.01 seconds = 114.42 MB/sec
alex@alex-desktop:~$ sudo hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
	Model Number:       SAMSUNG HD103UJ                         
	Serial Number:      S13PJDWS220889      
	Firmware Revision:  1AA01113
Standards:
	Used: ATA-8-ACS revision 3b 
	Supported: 7 6 5 4 
Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors: 1953525168
	device size with M = 1024*1024:      953869 MBytes
	device size with M = 1000*1000:     1000204 MBytes (1000 GB)
Capabilities:
	LBA, IORDY(can be disabled)
	Queue depth: 32
	Standby timer values: spec'd by Standard, no device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 16
	Advanced power management level: 254
	Recommended acoustic management value: 254, current value: 0
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 udma7 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	DOWNLOAD_MICROCODE
	   *	Advanced Power Management feature set
	    	Power-Up In Standby feature set
	   *	SET_FEATURES required to spinup after power up
	    	SET_MAX security extension
	    	Automatic Acoustic Management feature set
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	    	Media Card Pass-Through
	   *	General Purpose Logging feature set
	   *	64-bit World wide name
	   *	WRITE_UNCORRECTABLE_EXT command
	   *	{READ,WRITE}_DMA_EXT_GPL commands
	   *	Segmented DOWNLOAD_MICROCODE
	   *	SATA-I signaling speed (1.5Gb/s)
	   *	SATA-II signaling speed (3.0Gb/s)
	   *	Native Command Queueing (NCQ)
	   *	Host-initiated interface power management
	   *	Phy event counters
	   *	unknown 76[12]
	    	DMA Setup Auto-Activate optimization
	    	Device-initiated interface power management
	   *	Software settings preservation
	   *	SMART Command Transport (SCT) feature set
	   *	SCT Long Sector Access (AC1)
	   *	SCT LBA Segment Access (AC2)
	   *	SCT Error Recovery Control (AC3)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
		supported: enhanced erase
	168min for SECURITY ERASE UNIT. 168min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000f00fb5f37
	NAA		: 5
	IEEE OUI	: f0
	Unique ID	: 0fb5f37
Checksum: correct
alex@alex-desktop:~$ sudo smartctl -a /dev/sda
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG HD103UJ
Serial Number:    S13PJDWS220889
Firmware Version: 1AA01113
User Capacity:    1 000 204 886 016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 3b
Local Time is:    Fri Jul  3 15:05:22 2009 NOVST

==> WARNING: May need -F samsung or -F samsung2 enabled; see manual for details.

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: 		 (11434) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					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: 	 ( 191) minutes.
Conveyance self-test routine
recommended polling time: 	 (  20) minutes.
SCT capabilities: 	       (0x003f)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0007   075   075   011    Pre-fail  Always       -       8290
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       40
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   253   253   051    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   100   100   015    Pre-fail  Offline      -       9886
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       63
 10 Spin_Retry_Count        0x0033   100   100   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0012   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       34
 13 Read_Soft_Error_Rate    0x000e   100   100   000    Old_age   Always       -       0
183 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
184 Unknown_Attribute       0x0033   100   100   000    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   068   061   000    Old_age   Always       -       32 (Lifetime Min/Max 18/32)
194 Temperature_Celsius     0x0022   064   060   000    Old_age   Always       -       36 (Lifetime Min/Max 18/36)
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       417138
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   100   100   000    Old_age   Always       -       16
200 Multi_Zone_Error_Rate   0x000a   100   100   000    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   253   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%        43         -

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.