root@ubuntu:~# fdisk -l
Disk /dev/cciss/c0d0: 300.0 GB, 299966445568 bytes
255 heads, 63 sectors/track, 36468 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cbb89
DeviceBootStartEndBlocks IdSystem
/dev/cciss/c0d0p11243219530752 83Linux
/dev/cciss/c0d0p2243234057812096 82Linux swap / Solaris
/dev/cciss/c0d0p33405277441955072015 Extended
/dev/cciss/c0d0p534053429194560 83Linux
/dev/cciss/c0d0p6342927744195311616 83Linux
root@ubuntu:~# hdparm -t/dev/cciss
/dev/cciss:
BLKGETSIZE failed: Inappropriate ioctl fordevice
BLKFLSBUF failed: Inappropriate ioctl for device
root@ubuntu:~# hdparm -t/dev/cciss/c0d0
/dev/cciss/c0d0:
Timing buffered disk reads: 550MB in 3.01 seconds = 182.76 MB/se
单个硬盘转速测试命令:
在linux下,可以查看硬盘的读写速度,比如#hdparm -t /dev/hda 查看硬盘读写速度
最后可以看到
timing buffered disk reads:.......
开启DMA功能
hdparm -d 1 /dev/hda 开启DMA功能,可把它添加到/etc/rc.local文件中