On Sun, Nov 25, 2001 at 08:35:29PM -0500, Lev Selector wrote: > Hello. > > Below I describe a perl script I used to measure disk performance. > My questions: > 1. Any pointers to better solutions ? > 2. What kind of results you are getting on your machines? > (Especially if somebody has fast SCSI hard drives).
hdparm. It's not Perl, but it does test disk performance fairly accurately. This is a straight measurement of hwo fast the drive can sustain a sequential data read. $ sudo hdparm -t /dev/hda /dev/hda: Timing buffered disk reads: 64 MB in 5.35 seconds = 11.96 MB/sec And this measures the overall throughput of the processor, cache, memory and filesystem. $ sudo hdparm -T /dev/hda /dev/hda: Timing buffer-cache reads: 128 MB in 2.07 seconds = 61.84 MB/sec $ sudo cat /proc/ide/hda/model IBM-DJSA-220 That an IBM Travelstar 20GN -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One I represent GOD you fuck! http://www.unamerican.com/
