Code: Select all
smartctl -d ata -a /dev/sdaCode: Select all
cmartctl -d ata -t long /dev/sdaRob1n, thank you for the prompt reply. What should I be comparing the numbers to? Basically, once I receive the results how do I know "yes my drive is under performing" or "everything is normal"?Rob1n wrote:You can try smartmontools - that uses the inbuilt SMART diagnostics which may tell you whether there's any errors - after emerging do:to get a full report andCode: Select all
smartctl -d ata -a /dev/sdato start off a full test (results will be show in the full report, or see the manual pages for how to check progress and view only test results).Code: Select all
cmartctl -d ata -t long /dev/sda
For testing performance you could use "hdparm -tT /dev/sda" to get a ballpark figure. A proper testing tool like bonnie++ will give you more realistic results though.
The cached reads is affected more by memory and processor speed. The buffered disk reads is a more accurate measure of disk performance. For a standard SATA drive you should get about the same figure (they're nominally slightly faster but I don't think that really shows up), whereas for a SATA-II drive you'd be expecting a bit faster - in fact, I should have one of those hooked up around here somewhere. Ah:/dev/hda:
Timing cached reads: 1718 MB in 2.00 seconds = 859.79 MB/sec
Timing buffered disk reads: 168 MB in 3.00 seconds = 55.95 MB/sec
That system's a bit heavier loaded though./dev/sdl:
Timing cached reads: 1338 MB in 2.00 seconds = 669.28 MB/sec
Timing buffered disk reads: 204 MB in 3.03 seconds = 67.41 MB/sec
Below are the results from hdparm:Rob1n wrote:Not in the hdparm results, no - it works on the raw disk (doing read-only tests) rather than on a mounted partition.klees wrote:Good point on comparing the two disks but do filesystems play a role? My first drive is my Windows XP drive which is NTFS (RO). Will there be a difference?
Code: Select all
# hdparm -tT /dev/sda /dev/sdb
/dev/sda:
Timing cached reads: 900 MB in 2.00 seconds = 449.99 MB/sec
Timing buffered disk reads: 160 MB in 3.02 seconds = 52.97 MB/sec
/dev/sdb:
Timing cached reads: 898 MB in 2.00 seconds = 448.35 MB/sec
Timing buffered disk reads: 174 MB in 3.03 seconds = 57.49 MB/sec