摘要
硬盘作为计算机中存储数据的主要载体,其性能的好坏直接决定着整个计算机系统性能的高低。本文设计实现了一种硬盘测试软件,主要模拟硬盘实际I/O读写情况,发出读操作命令,然后统计、计算测试过程中的各个参数指标值。测试的性能参数包括:瞬时、平均、最大数据传速率,平均、最大读操作响应时间,读操作次数,读错误次数及CPU占用率等。分析测试结果知,在硬盘基本性能参数测试时,顺序读操作测试的硬盘瞬时数据传输率随着读操作数据块的增加先增大后减小;随机读操作比相应数据块大小的顺序读操作的数据传输率小。模拟测试流媒体文件服务时,多用户的总数据传输率比单用户时的数据传输率要小得多。
As Hard Disk is the main storage of a computer,its performance determines the whole computer system's behave.This hard disk checking program uses Multi-threaded Programming in MFC,the Timer,Dialog and Menu of VC.The program simulates the actual I/O environments and gives off read instruction.Then the program begins to get and calculate caring parameters.These parameters include instantaneous transfer rate、average transfer rate、maximum transfer rate、average response time、maximum response time、read times、error counts and CPU utilization.In the sequential read test,the disk transfer rate rises with the read block size rising,and gets a maximum,then goes down.Under the Streaming File Server environment,multi-users' transfer rate is much lower than the single user's transfer rate.
出处
《电子设计工程》
2014年第6期67-69,72,共4页
Electronic Design Engineering
关键词
硬盘性能参数
性能测试
多线程
事务处理环境输入
输出测试
流媒体应用输入
输出
hard disk performance parameters
performance test
multi-threaded programming transaction processing environments I/O test
streaming media application I/O test