当对 I/O 子系统的性能进行粗略评估时,dd
命令已经足够。详情请参阅: 测试硬盘的性能,用dd就够了?
关于号主,姚远:
Oracle ACE(Oracle和MySQL数据库方向)
华为云最有价值专家
《MySQL 8.0运维与优化》的作者
拥有 Oracle 10g、12c和19c OCM等数十项数据库认证
曾任IBM公司数据库部门经理
20+年DBA经验,服务2万+客户
精通C和Java,发明两项计算机专利
01
—
简单测试
/dev/sde进行的简单测试:
$ echo "/dev/sde" > orion.lun$ sudo opt/oracle/product/23c/dbhomeFree/bin/orion -run simple -hugenotneededORION: ORacle IO Numbers -- Version RDBMS_23.2.0.0.0_LINUX.X64_230325orion_20240207_1526Calibration will take approximately 9 minutes.Using a large value for -cache_size may take longer.Setting ftype=0Maximum Large MBPS=536.98 @ Small=0 and Large=2Maximum Small IOPS=46447 @ Small=5 and Large=0Small Read Latency: avg=106.960 us, min=55.472 us, max=644.537 us, std dev=15.235 us @ Small=5 and Large=0Minimum Small Latency=54.889 usecs @ Small=1 and Large=0Small Read Latency: avg=54.889 us, min=51.637 us, max=216.917 us, std dev=10.820 us @ Small=1 and Large=0Small Read Write Latency Histogram @ Small=1 and Large=0Latency: # of IOs (read) # of IOs (write)0 - 32 us: 0 ( 0.00%) 0 ( 0.00%)32 - 64 us: 1057519 ( 97.95%) 0 ( 0.00%)64 - 128 us: 11053 ( 98.98%) 0 ( 0.00%)128 - 256 us: 11042 (100.00%) 0 ( 0.00%)256 - 268435456 us: 0 (100.00%) 0 ( 0.00%)
/dev/nvme0n1进行:
$ echo "/dev/nvme0n1" > orion.lun$ sudo opt/oracle/product/23c/dbhomeFree/bin/orion -run simple -hugenotneededORION: ORacle IO Numbers -- Version RDBMS_23.2.0.0.0_LINUX.X64_230325orion_20240207_1538Calibration will take approximately 9 minutes.Using a large value for -cache_size may take longer.Setting ftype=0Maximum Large MBPS=3217.10 @ Small=0 and Large=2Maximum Small IOPS=134352 @ Small=4 and Large=0Small Read Latency: avg=28.611 us, min=11.572 us, max=3603.936 us, std dev=13.502 us @ Small=4 and Large=0Minimum Small Latency=16.443 usecs @ Small=1 and Large=0Small Read Latency: avg=16.443 us, min=12.138 us, max=1528.563 us, std dev=12.727 us @ Small=1 and Large=0Small Read Write Latency Histogram @ Small=1 and Large=0Latency: # of IOs (read) # of IOs (write)0 - 8 us: 0 ( 0.00%) 0 ( 0.00%)8 - 16 us: 3363729 ( 95.96%) 0 ( 0.00%)16 - 32 us: 41453 ( 97.15%) 0 ( 0.00%)32 - 64 us: 21671 ( 97.76%) 0 ( 0.00%)64 - 128 us: 76284 ( 99.94%) 0 ( 0.00%)128 - 256 us: 2094 (100.00%) 0 ( 0.00%)256 - 512 us: 8 (100.00%) 0 ( 0.00%)512 - 1024 us: 1 (100.00%) 0 ( 0.00%)1024 - 2048 us: 3 (100.00%) 0 ( 0.00%)2048 - 268435456 us: 0 (100.00%) 0 ( 0.00%)
$ ls orion*orion_20240207_1526_hist.txt orion_20240207_1526_mbps.csvorion_20240207_1538_hist.txt orion_20240207_1538_mbps.csvorion_20240207_1526_iops.csv orion_20240207_1526_summary.txtorion_20240207_1538_iops.csv orion_20240207_1538_summary.txtorion_20240207_1526_lat.csv orion_20240207_1526_trace.txtorion_20240207_1538_lat.csv orion_20240207_1538_trace.txt
02
—
关于数据损坏的担忧
$ orion -help
ORION: ORacle IO Numbers -- Version RDBMS_19.3.0.0.0DBRU_LINUX.X64_190417
...
WARNING: IF YOU ARE PERFORMING WRITE TESTS, BE PREPARED TO LOSE ANY DATA STORED ON THE LUNS.
...
write Percentage of IOs that are writes (SEE WARNING ABOVE). Default is 0.
...
https://docs.oracle.com/en/database/oracle/oracle-database/19/tgdba/IO-configuration-and-design.html#GUID-355C99D8-29C1-421F-8B65-47A3C48324A2
文章转载自oracleace,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




