2024-09-07 04:07:41
2024-09-07 04:21:02
一、测试硬盘读取速度:
haparm -Tt /dev/xxx
1、获取硬盘设备名称:
fdisk -l
Disk /dev/xvdf: 365.0 GB, 365041287168 bytes
255 heads, 63 sectors/track, 44380 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: 0x00000000
2、测试硬盘读取速度
hdparm -tT /dev/xvdf
/dev/xvdf:
Timing buffered disk reads: 962 MB in 3.00 seconds = 320.56 MB/sec
3、硬盘读取速度测试结果
spec: 7200转硬盘
hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 7650 MB in 2.00 seconds = 3829.28 MB/sec
Timing buffered disk reads: 296 MB in 3.02 seconds = 98.05 MB/sec
二、查看内存信息。
$cat
/proc/meminfo
2024-09-07 02:37:15