CN104392748A - Method for testing reading speed of hard disk under linux system - Google Patents
Method for testing reading speed of hard disk under linux system Download PDFInfo
- Publication number
- CN104392748A CN104392748A CN201410586241.9A CN201410586241A CN104392748A CN 104392748 A CN104392748 A CN 104392748A CN 201410586241 A CN201410586241 A CN 201410586241A CN 104392748 A CN104392748 A CN 104392748A
- Authority
- CN
- China
- Prior art keywords
- test
- hard disk
- measured
- linux system
- tested
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for testing reading speed of a hard disk under a linux system. The method specifically comprises the following steps: preparing a test environment; preparing a server to be tested, and installing the linux system in the server to be tested; displaying a magnetic disk to be tested on the server to be tested, editing a test script, and setting running permissions through the test script: setting a test block of the magnetic disk to be tested, setting times N for reading the magnetic disk to be tested, wherein N is a natural number more than or equal to 1; running the test script; reading the hard disk for N times by utilizing the test block with corresponding size; creating a blank txt file, and outputting a test result to the txt file; and calculating the speed of the magnetic disk to be tested for reading the test block according to the execution time of an order. Compared with the prior art, the test time is saved, the energy of the test personnel is reduced, the product quality is improved, the application range is wide, and the method is easy to popularize.
Description
Technical field
The present invention relates to hard disc of computer technical field of measurement and test, specifically a kind of method of testing hard disk reading speed under practical, Linux system.
Background technology
Hard disk performance test is a test indispensable in server test, be mainly used in the quality condition checking hard disk, the bad track problem of such as hard disk, hard disk occurs that bad track is mainly divided into logistic bad track and physical bad track two kinds, when there is this problem, hard disk just there will be and cannot read or situation that reading speed is excessively slow.In order to can the problem of Timeliness coverage hard disk, many instruments and method is had to carry out the read or write speed of testing hard disk in industry, to assess the performance of hard disk, and then the memory property of evaluating server complete machine, but the security of this hard disk test instrument is poor, testing efficiency is not high yet, error is larger, operation is inconvenience particularly, test process is very loaded down with trivial details, based on this, the method of testing hard disk reading speed under a kind of Linux system is now provided, the dd order that the method carries under utilizing linux system, the input file of specifying is copied in the output file of specifying, the reading speed of hard disk is calculated by the execution time of order, whole test process is simple to operation, the personnel less for relevant knowledge have more practicality than complicated instrument and program.
Summary of the invention
Technical assignment of the present invention is for above weak point, provides the method for testing hard disk reading speed under a kind of practical, Linux system.
A method for testing hard disk reading speed under Linux system, its specific implementation process is:
One, setup test environment: prepare server to be measured, this server to be measured installs linux system;
Two, show the disk to be measured on server to be measured, compiler test script, arrange operation authority by this test script: the block size namely arranging disk tester to be measured, arrange the times N reading disk to be measured, this N is the natural number of >=1;
Three, testing results script: the test block using above-mentioned size, reads hard disk N time;
Four, create blank txt file, and test result is outputted in this txt file;
Five, the speed of disk read test block to be measured is calculated by the execution time of order.
Described test block size is 1K, 2K, 4K, 8K, 16K, 32K, 64K, 128K, 256K, 512K or 1024K.
The times N of described reading hard disk is the natural number of >=200000.
The method of testing hard disk reading speed under a kind of Linux system of the present invention, has the following advantages:
Under a kind of Linux system of this invention, the method for testing hard disk reading speed is applicable to (SuSE) Linux OS, simple to operate, enormously simplify test operation flow process, and for tester's com-parison and analysis hard disk performance data, practicality is stronger; The reading speed of quick obtaining hard disk, is compared with the hard disk performance data obtained as iometer, FIO etc. by specific purpose tool, thus simply judges whether the performance data of hard disk has problem; Save the test duration, reduce tester's energy and drop into, Improving The Quality of Products, applied widely, be easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is realization flow figure of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The method of testing hard disk reading speed under a kind of Linux system is now provided, this method of testing is the dd order carried under utilizing linux system, the input file of specifying is copied in the output file of specifying, calculated the reading speed of hard disk by the execution time of order.As shown in Figure 1, its specific implementation process is:
One, setup test environment: prepare server to be measured, this server to be measured installs linux system;
Two, show the disk to be measured on server to be measured, compiler test script, arrange operation authority by this test script: the block size namely arranging disk tester to be measured, arrange the times N reading disk to be measured, this N is the natural number of >=1;
Three, testing results script: the test block using above-mentioned size, reads hard disk N time;
Four, create blank txt file, and test result is outputted in this txt file;
Five, the speed of disk read test block to be measured is calculated by the execution time of order.
Concrete, with an example, said method is described now, namely runs the script of compiling, obtain the reading speed of hard disk, more simply compile a script and result is outputted to file and perform to retain last script the data obtained.
Specific as follows:
Run the reading speed that following script obtains disk:
#!/bin/bash
{ b..d} #b..d is the disk that will test to for i in, can revise as required
do
Echo " Here is/dev/sd $ i Read Test " # shows the disk tested
For j in { can revise as required by the block size that 1K, 2K, 4K, 8K, 16K, 32K, 64K, 128K, 256K, 512K, 1024K} # tests
do
Echo " $ j Read " # shows the block tested
Dd if=/dev/sd $ i of=/dev/null bs=$ j count=200000 # reads corresponding hard disk 200000 times with j size block, and count is more large more accurate
done
done
The result that above script runs is outputted to file:
#!/bin/bash
Touch result.txt # creates blank txt file
Sh dd.sh >>result.txt 2> & 1 & # performs a upper script and operation result is outputted to txt file.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; under any a kind of Linux system according to the invention the method for testing hard disk reading speed claims and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.
Claims (3)
1. the method for testing hard disk reading speed under Linux system, it is characterized in that, its specific implementation process is:
One, setup test environment: prepare server to be measured, this server to be measured installs linux system;
Two, show the disk to be measured on server to be measured, compiler test script, arrange operation authority by this test script: the block size namely arranging disk tester to be measured, arrange the times N reading disk to be measured, this N is the natural number of >=1;
Three, testing results script: the test block using above-mentioned size, reads hard disk N time;
Four, create blank txt file, and test result is outputted in this txt file;
Five, the speed of disk read test block to be measured is calculated by the execution time of order.
2. the method for testing hard disk reading speed under a kind of Linux system according to claim 1, it is characterized in that, described test block size is 1K, 2K, 4K, 8K, 16K, 32K, 64K, 128K, 256K, 512K or 1024K.
3. the method for testing hard disk reading speed under a kind of Linux system according to claim 1, it is characterized in that, the times N of described reading hard disk is the natural number of >=200000.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410586241.9A CN104392748A (en) | 2014-10-28 | 2014-10-28 | Method for testing reading speed of hard disk under linux system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410586241.9A CN104392748A (en) | 2014-10-28 | 2014-10-28 | Method for testing reading speed of hard disk under linux system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104392748A true CN104392748A (en) | 2015-03-04 |
Family
ID=52610635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410586241.9A Pending CN104392748A (en) | 2014-10-28 | 2014-10-28 | Method for testing reading speed of hard disk under linux system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104392748A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765665A (en) * | 2015-04-14 | 2015-07-08 | 浪潮电子信息产业股份有限公司 | Method and device for testing hard disks |
CN106919483A (en) * | 2017-02-19 | 2017-07-04 | 郑州云海信息技术有限公司 | A kind of method and system of real-time display dd testing progress |
CN109542701A (en) * | 2018-11-19 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of disk performance test method and device |
CN112395145A (en) * | 2020-11-16 | 2021-02-23 | 杭州安恒信息技术股份有限公司 | Method and device for testing system stability |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080130386A1 (en) * | 2006-11-30 | 2008-06-05 | Mosaid Technologies Incorporated | Circuit and method for testing multi-device systems |
CN101819547A (en) * | 2010-03-25 | 2010-09-01 | 浪潮电子信息产业股份有限公司 | Method for testing stability and reliability of storage subsystem |
CN103473158A (en) * | 2013-09-18 | 2013-12-25 | 浪潮电子信息产业股份有限公司 | Disk pressure testing method for Linux server |
CN103744759A (en) * | 2013-12-27 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for verifying unattended disk performance and stability under Linux system |
-
2014
- 2014-10-28 CN CN201410586241.9A patent/CN104392748A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080130386A1 (en) * | 2006-11-30 | 2008-06-05 | Mosaid Technologies Incorporated | Circuit and method for testing multi-device systems |
CN101819547A (en) * | 2010-03-25 | 2010-09-01 | 浪潮电子信息产业股份有限公司 | Method for testing stability and reliability of storage subsystem |
CN103473158A (en) * | 2013-09-18 | 2013-12-25 | 浪潮电子信息产业股份有限公司 | Disk pressure testing method for Linux server |
CN103744759A (en) * | 2013-12-27 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for verifying unattended disk performance and stability under Linux system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104765665A (en) * | 2015-04-14 | 2015-07-08 | 浪潮电子信息产业股份有限公司 | Method and device for testing hard disks |
CN106919483A (en) * | 2017-02-19 | 2017-07-04 | 郑州云海信息技术有限公司 | A kind of method and system of real-time display dd testing progress |
CN109542701A (en) * | 2018-11-19 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of disk performance test method and device |
CN109542701B (en) * | 2018-11-19 | 2022-02-18 | 郑州云海信息技术有限公司 | Method and device for testing performance of magnetic disk |
CN112395145A (en) * | 2020-11-16 | 2021-02-23 | 杭州安恒信息技术股份有限公司 | Method and device for testing system stability |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9128150B2 (en) | On-chip detection of types of operations tested by an LBIST | |
US9311223B2 (en) | Prioritizing test cases using multiple variables | |
CN102567166B (en) | Testing method and testing system of graphics card | |
US20190018753A1 (en) | Software program fault localization | |
US20150370685A1 (en) | Defect localization in software integration tests | |
CN104407951A (en) | Method for automatically testing server | |
US8683282B2 (en) | Automatic identification of information useful for generation-based functional verification | |
CN105589993A (en) | Microprocessor function verifying equipment and method | |
US11302412B2 (en) | Systems and methods for simulated device testing using a memory-based communication protocol | |
CN104392748A (en) | Method for testing reading speed of hard disk under linux system | |
US10592703B1 (en) | Method and system for processing verification tests for testing a design under test | |
CN108009080B (en) | Code scanning tool evaluation method and device | |
CN110907882B (en) | Electric energy meter-oriented virtualization test method and system | |
US20220253375A1 (en) | Systems and methods for device testing to avoid resource conflicts for a large number of test scenarios | |
TW201216048A (en) | Test system | |
US7487422B2 (en) | Delayed processing of site-aware objects | |
CN107038120A (en) | A kind of method for testing software and equipment | |
Cantoro et al. | Self-test libraries analysis for pipelined processors transition fault coverage improvement | |
Luo et al. | TestAWARE: a laboratory-oriented testing tool for mobile context-aware applications | |
CN102567351B (en) | Testing method and testing device for database modification effects | |
CN107515803A (en) | A kind of storing performance testing method and device | |
Petersén et al. | Fault injection and fault handling: an MPSoC demonstrator using IEEE P1687 | |
Chaudhary | Latest software testing tools and techniques: A review | |
CN103165405A (en) | Mutli-dimensional variable code real-time generation method through general purpose interface bus (GPIB) interface | |
Moreira et al. | A systematic mapping on energy efficiency testing in android 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: 20150304 |