CN107943655A - 一种自动识别sata硬盘读写方式的方法 - Google Patents
一种自动识别sata硬盘读写方式的方法 Download PDFInfo
- Publication number
- CN107943655A CN107943655A CN201711190714.3A CN201711190714A CN107943655A CN 107943655 A CN107943655 A CN 107943655A CN 201711190714 A CN201711190714 A CN 201711190714A CN 107943655 A CN107943655 A CN 107943655A
- Authority
- CN
- China
- Prior art keywords
- write
- read
- disk
- automatic identification
- hard disc
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3041—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请发明一种自动识别SATA硬盘读写方式的方法,通过分析磁盘读写的具体状态,利用获取的系统值直接判定出磁盘目前所处场景,进而可以根据场景分别制定出不同的优化手段,对磁盘后续的性能优化手段提供基础识别。
Description
技术领域
本发明涉及服务器测试领域,具体涉及一种自动识别SATA硬盘读写方式的方法。
背景技术
随着计算机软硬件技术水平的不断提高,系统的性能也得到大幅提升,由于CPU和内存处理速率远远大于磁盘的处理速率,整个系统的瓶颈往往在于磁盘的瓶颈,所以对磁盘的优化显得尤为重要,在磁盘的优化中其读写效率的测定是一个很重要的方面,对顺序和随机读写的判定方式对具体的优化手段运用显得尤为重要。
SATA(Serial ATA)口的硬盘又叫串口硬盘,串行ATA总线使用嵌入式时钟信号,具备了更强的纠错能力,与以往相比其最大的区别在于能对传输指令(不仅仅是数据)进行检查,如果发现错误会自动矫正,这在很大程度上提高了数据传输的可靠性。串行接口还具有结构简单、支持热插拔的优点。
现有技术中是笼统地判定SATA磁盘当前处理的读写状态,但无法区分出是顺序读写还是随机读写的状态。因此目前需要解决的问题是,1、自动识别当前读写状态;2、如果磁盘当前处于读写状态,区分是顺序读写还是随机读写。
针对这种情况,本申请发明一种自动识别SATA硬盘读写方式的方法,能够使用工具自动识别当前处于的具体读写场景,对磁盘后续的性能优化手段提供基础识别。
发明内容
具体地,本申请请求保护一种自动识别SATA硬盘读写方式的方法,其特征在于,该方法具体包括如下步骤:
分别设置顺序读写和随机读写状态,运行fio测试工具;
使用iostat工具的-d,-x,-y参数获取磁盘当前状态,取Device,svctm和%util值;
如果%util值大于80%的阈值,说明磁盘正处于读写忙状态;
在此情况下,如果svctm值大于1则是随机读写,小于1则是顺序读写。
如上所述的自动识别SATA硬盘读写方式的方法,其特征还在于,该方法针对的服务器系统是linux系统。
如上所述的自动识别linux系统SATA硬盘读写方式的方法,其特征还在于,该方法针对的可以是windows系统。
具体实施方式
下面通过一个实施例对本发明所述的查看方法具体实现步骤进行说明。
1、使用fio磁盘测试工具,fio是最佳磁盘性能测试工具,磁盘IO是检查磁盘性能的重要指标,可以按照负载情况分成照顺序读写,随机读写两大类。在本实施例中,首先分别设置顺序读写和随机读写状态,运行fio测试工具;
2、iostat命令用来监视系统输入/输出设备负载,这通过观察与它们的平均传送速率相关的物理磁盘的活动时间来实现。iostat命令生成的报告可以用来更改系统配置来更好地平衡物理磁盘和适配器之间的输入/输出负载。
本实施例中使用iostat工具的-d,-x,-y参数获取磁盘当前状态,取Device(磁盘设备),svctm和%util值,根据获取的值判定当前磁盘的读写状态。
%util是一秒内IO操作所占的比例,计算公式是(r/s+w/s)*(svctm/1000);
Svctm是平均服务时间。
3、判定%util值
判定%util值,如果此值大于80%的阈值,说明磁盘正处于读写忙状态;
再根据svctm的值判定顺序读写还是随机读写状态,如果值大于1则是随机读写,值小于1则是顺序读写。
显而易见地,上面所示的仅仅是本发明的一个具体实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据上述实施例获得其他的技术方案,以及在本发明保护的范围内做出的等同变化均应落入本发明的保护范围内,都属于本发明保护的范围。
综上所述,本发明自动识别硬盘读写方式的方法,通过分析磁盘读写的具体状态,利用获取的系统值直接判定出磁盘目前所处场景,进而可以根据场景分别制定出不同的优化手段,对后续磁盘性能优化提供必要的前序帮助,实现快速自动化测试,极大地提高了研发测试、生产效率。本技术方案主要针对linux系统,但也可部分适用于window SATA磁盘顺序读写和随机读写的判定。
Claims (3)
1.一种自动识别SATA硬盘读写方式的方法,其特征在于,该方法具体包括如下步骤:
分别设置顺序读写和随机读写状态,运行fio测试工具;
使用iostat工具的-d,-x,-y参数获取磁盘当前状态,取Device,svctm和%ut i l值;
如果%ut i l值大于80%的阈值,说明磁盘正处于读写忙状态;
在此情况下,如果svctm值大于1则是随机读写,小于1则是顺序读写。
2.如权利要求1所述的自动识别SATA硬盘读写方式的方法,其特征还在于,该方法针对的服务器系统是l inux系统。
3.如权利要求1所述的自动识别l inux系统SATA硬盘读写方式的方法,其特征还在于,该方法针对的可以是windows系统。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711190714.3A CN107943655A (zh) | 2017-11-24 | 2017-11-24 | 一种自动识别sata硬盘读写方式的方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711190714.3A CN107943655A (zh) | 2017-11-24 | 2017-11-24 | 一种自动识别sata硬盘读写方式的方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107943655A true CN107943655A (zh) | 2018-04-20 |
Family
ID=61949676
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711190714.3A Pending CN107943655A (zh) | 2017-11-24 | 2017-11-24 | 一种自动识别sata硬盘读写方式的方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943655A (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109766059A (zh) * | 2019-01-09 | 2019-05-17 | 郑州云海信息技术有限公司 | 一种在linux中优化固态硬盘的方法与装置 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103578568A (zh) * | 2012-07-24 | 2014-02-12 | 苏州捷泰科信息技术有限公司 | 固态硬盘的性能测试方法及装置 |
CN104317693A (zh) * | 2014-10-30 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | 一种自动检测硬盘性能波动的方法 |
CN104360919A (zh) * | 2014-10-24 | 2015-02-18 | 浪潮电子信息产业股份有限公司 | 一种自动进行ssd性能、功能及稳定性测试的方法 |
-
2017
- 2017-11-24 CN CN201711190714.3A patent/CN107943655A/zh active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103578568A (zh) * | 2012-07-24 | 2014-02-12 | 苏州捷泰科信息技术有限公司 | 固态硬盘的性能测试方法及装置 |
CN104360919A (zh) * | 2014-10-24 | 2015-02-18 | 浪潮电子信息产业股份有限公司 | 一种自动进行ssd性能、功能及稳定性测试的方法 |
CN104317693A (zh) * | 2014-10-30 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | 一种自动检测硬盘性能波动的方法 |
Non-Patent Citations (1)
Title |
---|
网友: "Linux系统性能监控与调优", 《URL:HTTPS://WWW.JIANSHU.COM/P/C750ACDC10E4》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109766059A (zh) * | 2019-01-09 | 2019-05-17 | 郑州云海信息技术有限公司 | 一种在linux中优化固态硬盘的方法与装置 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10929260B2 (en) | Traffic capture and debugging tools for identifying root causes of device failure during automated testing | |
EP3306475B1 (en) | System and method for predicting disk failure | |
US20180107196A1 (en) | Method of Detecting Home Appliance Bus Control System | |
US10955461B2 (en) | Smart and efficient protocol logic analyzer configured within automated test equipment (ATE) hardware | |
CN108133732B (zh) | 闪存芯片的性能测试方法、装置、设备及存储介质 | |
CN104850480A (zh) | 高密度存储服务器硬盘性能测试的方法及装置 | |
US8977908B2 (en) | Method and apparatus for detecting a suspect memory leak | |
US10310937B2 (en) | Dynamically restoring disks based on array properties | |
CN111508551B (zh) | 固态硬盘多功能自动测试系统及其方法 | |
US20220091185A1 (en) | Margin test data tagging and predictive expected margins | |
CN105258963A (zh) | 空调机组测试方法、装置及系统 | |
CN107943655A (zh) | 一种自动识别sata硬盘读写方式的方法 | |
US20100011146A1 (en) | Conveying Information With a PCI Express Tag Field | |
TW201504650A (zh) | Sas擴展卡、實現sas擴展卡的檢修控制系統及方法 | |
CN103218277A (zh) | 服务器环境的自动检测方法与装置 | |
US7676769B2 (en) | Adaptive threshold wafer testing device and method thereof | |
WO2023050671A1 (zh) | 服务器故障定位方法、装置、电子设备及存储介质 | |
US9244807B2 (en) | Quasi disk drive for testing disk interface performance | |
CN115111703A (zh) | 用于水冷空调脏堵检测的方法、终端及存储介质 | |
US10725665B2 (en) | Storage controlling apparatus, recording medium for recording storage control program and storage controlling method | |
CN109683053A (zh) | 一种基于接口设备出厂测试的接口测试系统及测试方法 | |
CN104536932B (zh) | 专用低速usb设备的通用通讯方法 | |
JP6304951B2 (ja) | 半導体装置の試験プログラム、試験装置及び試験方法 | |
CN111124804B (zh) | 测试方法和装置 | |
US20110307744A1 (en) | Information processing system and failure processing method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180420 |