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
Device
Boot Start End Blocks Id System
/dev/cciss/c0d0p1 1 2432 19530752 83 Linux
/dev/cciss/c0d0p2 2432 3405 7812096 82 Linux swap / Solaris
/dev/cciss/c0d0p3 3405 27744 195507201 5 Extended
/dev/cciss/c0d0p5 3405 3429 194560 83 Linux
/dev/cciss/c0d0p6 3429 27744 195311616 83 Linux
root@ubuntu:~# hdparm -t
/dev/cciss
/dev/cciss:
BLKGETSIZE failed: Inappropriate ioctl for
device
BLKFLSBUF failed: Inappropriate ioctl for device
root@ubuntu:~# hdparm -t
/dev/cciss/c0d0
/dev/cciss/c0d0:
Timing buffered disk reads: 550
MB 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文件中