CN104536866A - 一种Linux系统下测试硬盘写入速度的方法 - Google Patents

一种Linux系统下测试硬盘写入速度的方法 Download PDF

Info

Publication number
CN104536866A
CN104536866A CN201510021281.3A CN201510021281A CN104536866A CN 104536866 A CN104536866 A CN 104536866A CN 201510021281 A CN201510021281 A CN 201510021281A CN 104536866 A CN104536866 A CN 104536866A
Authority
CN
China
Prior art keywords
hard disk
script
linux system
writing speed
scripts
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
Application number
CN201510021281.3A
Other languages
English (en)
Inventor
刘博�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510021281.3A priority Critical patent/CN104536866A/zh
Publication of CN104536866A publication Critical patent/CN104536866A/zh
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

本发明提供一种Linux系统下测试硬盘写入速度的方法,涉及硬盘性能测试技术,本发明的具体步骤是1)待测服务器安装Linux系统;2)编译以上两脚本并放在同一目录下;3)为以上两脚本加执行权限;4)运行第二个脚本;5)获取测试结果result.txt。本发明可节约测试时间,减少测试人员精力投入,提升产品质量,为公司节约成本。

Description

一种Linux系统下测试硬盘写入速度的方法
技术领域
本发明涉及硬盘性能测试技术,尤其涉及一种Linux系统下测试硬盘写入速度的方法。
背景技术
随着电子技术和计算机技术的迅猛发展,人们的自身防护意识大大提高,利用越来越多的个体防护装备有效保护人身安全,计算机技术便是个体防护装备领域中的重要一员,它是人体与外界进行信息交换的信息处理中心,其发挥的作用已经深入到人们日常生活的各个方面。
硬盘作为电脑的一个主要部件,不仅肩负着记录一切数据信息的重要职责,而且它的性能对整个系统的性能有直接影响。由于磁存储介质的发展较一日千里的半导体技术落后,所以硬盘在整机系统中很多时候充当着一个“瓶颈”的角色。如果把一台整机比喻成一只水桶的话,硬盘就好比水桶中最低一侧的桶壁,水桶是否可以装更多的水就由这一侧桶壁的高度决定。由此,我们可见硬盘对整机系统性能的影响有多大。既然明白了硬盘性能在整机系统中担当的重要角色,了解如何测试硬盘的性能相信是不少电脑用户所关心的问题。
硬盘性能测试是服务器测试中必备的一项测试,行业中有许多工具及方法来测试硬盘的读写速度,以评估硬盘的性能,进而评估服务器整机的存储性能,现有的测试方法较为复杂,对于相关知识较少的人员来说较为困难。
发明内容
本发明实施提出一种Linux系统下测试硬盘写入速度的方法。利用Linux系统下自带的dd命令,把指定的输入文件拷贝到指定的输出文件中,通过命令的执行时间计算出硬盘的写入速度。
通过这种简单方法快速获取硬盘的写入速度,与通过专用工具如iometer、FIO等获取的硬盘性能数据作对比,从而简单判断硬盘的性能数据是否有问题
本发明的技术方案是:
一种Linux系统下测试硬盘写入速度的方法,
具体的操作步骤为:
1)待测服务器安装Linux系统;
2)编译以上两脚本并放在同一目录下;
3)为以上两脚本加执行权限;
4)运行第二个脚本;
5)获取测试结果result.txt。
 所述的方法,其运行编译的脚本,获取硬盘的写入速度,再简单编译一个脚本将结果输出到文件以保留前一脚本执行得到的数据。
 所述的方法,其编译运行脚本前先要进行测试环境准备。
本方法适用于Linux操作系统,操作简单,大大简化了测试操作流程,对于测试人员分析比较硬盘性能数据实用性较强。
简单易操作,对于相关知识较少的人员比复杂的工具及程序更具实用性。
节约测试时间,减少测试人员精力投入,提升产品质量,为公司节约成本。
附图说明
图1是本发明的运行流程示意图。
具体实施方式
下面对本发明的内容进行更加详细的阐述:
运行编译的脚本,获取硬盘的写入速度,再简单编译一个脚本将结果输出到文件以保留前一脚本执行得到的数据,示例如下:
    运行以下脚本获取磁盘的写入速度:

Claims (3)

1.一种Linux系统下测试硬盘写入速度的方法,其特征在于,
具体的操作步骤为:
(1)待测服务器安装Linux系统;
(2)编译以上两脚本并放在同一目录下;
(3)为以上两脚本加执行权限;
(4)运行第二个脚本;
(5)获取测试结果result.txt。
2.根据权利要求1所述的方法,其特征在于,运行编译的脚本,获取硬盘的写入速度,再编译一个脚本将结果输出到文件以保留前一脚本执行得到的数据。
3.根据权利要求2所述的方法,其特征在于,编译运行脚本前先要进行测试环境准备。
CN201510021281.3A 2015-01-16 2015-01-16 一种Linux系统下测试硬盘写入速度的方法 Pending CN104536866A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510021281.3A CN104536866A (zh) 2015-01-16 2015-01-16 一种Linux系统下测试硬盘写入速度的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510021281.3A CN104536866A (zh) 2015-01-16 2015-01-16 一种Linux系统下测试硬盘写入速度的方法

Publications (1)

Publication Number Publication Date
CN104536866A true CN104536866A (zh) 2015-04-22

Family

ID=52852396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510021281.3A Pending CN104536866A (zh) 2015-01-16 2015-01-16 一种Linux系统下测试硬盘写入速度的方法

Country Status (1)

Country Link
CN (1) CN104536866A (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040193785A1 (en) * 2003-03-11 2004-09-30 Zayas Fernando A. System for improving the performance of read/write testing in a hard drive
CN103473158A (zh) * 2013-09-18 2013-12-25 浪潮电子信息产业股份有限公司 一种Linux服务器的磁盘压力测试方法
CN103514084A (zh) * 2012-06-29 2014-01-15 上海宽带技术及应用工程研究中心 反映计算机设备硬盘读写能效的测试方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040193785A1 (en) * 2003-03-11 2004-09-30 Zayas Fernando A. System for improving the performance of read/write testing in a hard drive
CN103514084A (zh) * 2012-06-29 2014-01-15 上海宽带技术及应用工程研究中心 反映计算机设备硬盘读写能效的测试方法
CN103473158A (zh) * 2013-09-18 2013-12-25 浪潮电子信息产业股份有限公司 一种Linux服务器的磁盘压力测试方法

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ELF8848: "正确的使用dd进行磁盘读写速度测试", 《HTTP://ELF8848.ITEYE.COM/BLOG/2089055》 *
FANHONGJIE: "linux dd 测试硬盘的读写性能", 《HTTP://BLOG.ITPUB.NET/73920/VIEWSPACE-1036120/》 *
FENG4656: "Linux使用dd命令测试硬盘读写速度", 《HTTP://BLOG.CSDN.NET/FENG4656/ARTICLE/DETAILS/11054595》 *

Similar Documents

Publication Publication Date Title
PH12021550928A1 (en) Method and system for enhancing a user interface for a web application
TWI674503B (zh) 用於測試固態儲存裝置之韌體的方法與系統以及電子設備
Ferreira et al. Seflab: A lab for measuring software energy footprints
Nahir et al. Bridging pre-silicon verification and post-silicon validation
MX2010007106A (es) Sistemas y metodos para el analisis de datos de pozos.
CN103473158A (zh) 一种Linux服务器的磁盘压力测试方法
CN102081719B (zh) 基于动态污染传播的软件安全测试系统及方法
WO2015080742A1 (en) Production sampling for determining code coverage
Xu et al. The research of memory fault simulation and fault injection method for bit software test
CA2811617C (en) Commit sensitive tests
CN106951309A (zh) 一种虚拟化平台虚拟机计算性能测试的方法及系统
Christakis On narrowing the gap between verification and systematic testing
US20220197779A1 (en) Reducing trace recording overheads with targeted recording via partial snapshots
Patil et al. Pinballs: Portable and shareable user-level checkpoints for reproducible analysis and simulation
DeOrio et al. Bridging pre-and post-silicon debugging with BiPeD
CN104392748A (zh) 一种linux系统下测试硬盘读取速度的方法
CN108038031A (zh) 一种实时监控硬盘在线状态的方法及装置
CN104536866A (zh) 一种Linux系统下测试硬盘写入速度的方法
JP5551828B2 (ja) プローブレストレース収集によるアーキテクチャ実行の再生
US20110218794A1 (en) Concretization of abstracted traces
CN106095631B (zh) 一种基于有限状态机实现的多周期非流水线cpu动态调试方法
Yang et al. Theoretical Analysis and Empirical Evaluation of Coverage Indictors for Closed Source APP Testing
Aulagnon et al. Runtime function instrumentation with EZTrace
Liu et al. VST: A virtual stress testing framework for discovering bugs in SSD flash-translation layers
Nicodemos et al. Rtems core analysis for space applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150422