[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107562554A - A kind of memory reliability method of testing and server - Google Patents

A kind of memory reliability method of testing and server Download PDF

Info

Publication number
CN107562554A
CN107562554A CN201710742159.4A CN201710742159A CN107562554A CN 107562554 A CN107562554 A CN 107562554A CN 201710742159 A CN201710742159 A CN 201710742159A CN 107562554 A CN107562554 A CN 107562554A
Authority
CN
China
Prior art keywords
small documents
random number
random
catalogue
generation
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
CN201710742159.4A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710742159.4A priority Critical patent/CN107562554A/en
Publication of CN107562554A publication Critical patent/CN107562554A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiment of the present invention, which provides a kind of memory reliability method of testing and server, this method, to be included:Target step is repeated until the small documents of generation predetermined quantity;The target step includes:Random number is generated, the file size of small documents is determined with the random number, the file size is stored in size variable;Reliable random number sequence is obtained, based on the reliable random number sequence, generation content is at random and file size is the small documents indicated by the size variable;According to the small documents of the predetermined quantity, memory reliability test is carried out to storage device to be measured, obtains memory reliability test result.Memory reliability method of testing provided in an embodiment of the present invention, can lift the reliability of memory reliability test result, and be suitable for the testing requirement of different size storage device.

Description

A kind of memory reliability method of testing and server
Technical field
The present invention relates to technical field of measurement and test, and in particular to a kind of memory reliability method of testing and server.
Background technology
Current storage devices (especially enterprise-level storage device) by large-scale application, these storage devices finance, Each different field such as internet, cloud computing played an important role, and receive the test of different application scenarios, wherein With SAN (Storage Area Network, storage area network) storages and NAS (Network Attached Storage, net The attached storage of network) store being most widely used for both storage devices.The memory reliability of storage device is that storage device is A no qualified Fundamentals, therefore the memory reliability of storage device test particularly necessary.
The memory reliability of storage device refers to that can storage device normally playing under Various Complex application scenarios A kind of characteristic of its function;The storage of storage device is carried out based on small documents (size of small documents is generally between 2KB-1MB) Reliability testing, it is a kind of usual way of memory reliability test.But the problem of currently encountering is, enter based on small documents During the memory reliability test of row storage device, usually realize that this causes memory reliability to test using existing small documents The reliability of conclusion can not be protected.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of memory reliability method of testing and server, can to lift storage By the reliability of property test result.
To achieve the above object, the embodiment of the present invention provides following technical scheme:
A kind of memory reliability method of testing, including:
Target step is repeated until the small documents of generation predetermined quantity;The target step includes:Generate random number, The file size of small documents is determined with the random number, the file size is stored in size variable;Obtain reliable random Number Sequence, based on the reliable random number sequence, generation content is random and file size is indicated by the size variable Small documents;
According to the small documents of the predetermined quantity, memory reliability test is carried out to storage device to be measured, obtaining storage can By property test result.
Optionally, the generation random number includes:
Random number is produced using $ RANDOM variables;$ RANDOM are the environmental variances in the shell of linux system, and $ The scope of RANDOM variables generation number is arranged to, the kilobytes KB magnitude ranges of small documents setting.
Optionally, the reliable random number sequence of acquisition includes:
The reliable random number sequence of acquisition/dev/urandom equipment output;/ dev/urandom is that linux system provides Generation random number equipment;
It is described based on the reliable random number sequence, generation content is random and file size is the size variable institute The small documents of instruction include:
Based on the reliable random number sequence, obtain content at random using dd instruments and file size is the size Small documents indicated by variable;Wherein, dd instruments are the file backup instruments in linux system.
Optionally, it is described to repeat target step until the small documents of generation predetermined quantity include:
Using shell scripts, target step is repeated until the small text of generation predetermined quantity;The shell scripts envelope Operation equipped with the target step.
Optionally, the small documents according to the predetermined quantity, memory reliability test is carried out to storage device to be measured, Obtaining memory reliability test result includes:
Create directory one and catalogue two, and controls the lun1 carries of storage device to be measured in catalogue one, storage device to be measured Lun2 carries in catalogue two;
The small documents of the predetermined quantity are individually copied to catalogue one and catalogue two;
Control the small documents of the predetermined quantity to be moved between catalogue one and catalogue two, determine to store according to situation of movement Reliability testing conclusion.
The embodiment of the present invention also provides a kind of server, including:
Mass small documents generation module, for repeating target step until the small documents of generation predetermined quantity;It is described Target step includes:Random number is generated, the file size of small documents is determined with the random number, the file size is stored in In size variable;Reliable random number sequence is obtained, based on the reliable random number sequence, generation content is random and file is big The small small documents indicated by the size variable;
Testing execution module, for the small documents according to the predetermined quantity, storage device to be measured store reliably Property test, obtain memory reliability test result.
Optionally, the mass small documents generation module, for generating random number, is specifically included:
Random number is produced using $ RANDOM variables;$ RANDOM are the environmental variances in the shell shell of linux system, and $ The scope of RANDOM variables generation number is arranged to, the kilobytes KB magnitude ranges of small documents setting.
Optionally, the mass small documents generation module, for obtaining reliable random number sequence, is specifically included:
The reliable random number sequence of acquisition/dev/urandom equipment output;/ dev/urandom is that linux system provides Generation random number equipment;
The mass small documents generation module, for based on the reliable random number sequence, generation content it is random and File size is the small documents indicated by the size variable, is specifically included:
Based on the reliable random number sequence, obtain content at random using dd instruments and file size is the size Small documents indicated by variable;Wherein, dd instruments are the file backup instruments in linux system.
Optionally, the mass small documents generation module, for repeating target step until generating predetermined quantity Small documents, specifically include:
Using shell scripts, target step is repeated until the small text of generation predetermined quantity;The shell scripts envelope Operation equipped with the target step.
Optionally, the testing execution module, for the small documents according to the predetermined quantity, storage device to be measured is entered Row memory reliability is tested, and is obtained memory reliability test result, is specifically included:
Create directory one and catalogue two, and controls the lun1 carries of storage device to be measured in catalogue one, storage device to be measured Lun2 carries in catalogue two;
The small documents of the predetermined quantity are individually copied to catalogue one and catalogue two;
Control the small documents of the predetermined quantity to be moved between catalogue one and catalogue two, determine to store according to situation of movement Reliability testing conclusion.
Based on above-mentioned technical proposal, memory reliability method of testing provided in an embodiment of the present invention includes:Generate random number, The file size of small documents is determined with the random number, the file size is stored in size variable;Obtain reliable random Number Sequence, based on the reliable random number sequence, generation content is random and file size is indicated by the size variable Small documents;Repeat the above steps until the small documents of generation predetermined quantity;According to the small documents of the predetermined quantity, to be measured Storage device carries out memory reliability test, obtains memory reliability test result.
It is that file is big because the embodiment of the present invention carries out memory reliability test used test data to storage device to be measured Small and content is the small documents generated at random, and this fully simulates the characteristic of storage device practical application scene small file, Influence of the subjective factor for test result is reduced, improves the reliability of memory reliability test result;Small documents simultaneously Controllable quantity, it is adapted to the testing requirement of different size storage device.Therefore, memory reliability provided in an embodiment of the present invention Method of testing, can lift the reliability of memory reliability test result, and be suitable for the testing requirement of different size storage device.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the structured flowchart of memory reliability test system provided in an embodiment of the present invention;
Fig. 2 is the flow chart of memory reliability method of testing provided in an embodiment of the present invention;
Fig. 3 is another flow chart of memory reliability method of testing provided in an embodiment of the present invention;
Fig. 4 is the flow chart for carrying out memory reliability test to storage device to be measured based on small documents;
Fig. 5 is the structured flowchart of server provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 is the structured flowchart of memory reliability test system provided in an embodiment of the present invention, can based on storage shown in Fig. 1 By property test system, memory reliability method of testing provided in an embodiment of the present invention can be achieved;Reference picture 1, the memory reliability Test system can include:Server 10 and at least one storage device to be measured 20;
Existing memory reliability test is realized using existing small documents, because the content of small documents lacks randomness, File size also lacks randomness, and the quantity of small documents is also uncontrollable, leads to not effectively draw storage device in magnanimity Under the application scenarios of small documents whether reliable conclusion the problem of;
In consideration of it, in embodiments of the present invention, server 10 can generate a number of small documents at random, and (what is generated is small The file size of file is random, content is random), a number of small documents that server generates at random can be used as storage to be measured Equipment carries out the test data of memory reliability test, by carrying out including write-in, deletion to storage device to be measured, reading, multiple A series of test operations including system, the reliability testing conclusion of storage device to be measured is obtained, memory reliability test can be lifted The reliability of conclusion.
Based on memory reliability test system shown in Fig. 1, the embodiment of the present invention is provided from the angle of server below Memory reliability method of testing be introduced;Fig. 2 is the flow of memory reliability method of testing provided in an embodiment of the present invention Figure, this method can be applied to server, and optionally, Linux server can be selected in the server;
Reference picture 2, the memory reliability method of testing can include:
Step S100, random number is generated, the file size of small documents is determined with the random number, the file size is protected Exist in size variable.
Optionally, the embodiment of the present invention can utilize the RANDOM variables in linux system to produce random number, with random number To control the file size of small documents, identified file size can be stored in size variable (size variables);
Optionally, random number can be added KB (kilobytes) unit, the file size as small documents by the embodiment of the present invention; Optionally, the number range of random number be small documents setting KB magnitude ranges, as random number number range 2 to 1021 it Between;
$ RANDOM are an environmental variances in the shell (shell) of linux system, it is generally the case that $ RANDOM variables The number of 0 to 32767 scope can be generated, it is small documents setting that the embodiment of the present invention, which sets the scope of $ RANDOM variables generation number, KB magnitude ranges, using the KB magnitude ranges for causing the number range of random number to be set as small documents.
For example, order " size=$ (($ RANDOM%1023+2)) " can be performed in Linux server, generation 2 to Random number between 1021, the random number of generation is stored in size variables.
Step S110, obtain reliable random number sequence, based on the reliable random number sequence, generation content it is random and File size is the small documents indicated by the size variable.
In the file size of small documents for determining to generate at random by step S100, and after being recorded in size variable, The file content for the small documents that need to be generated at random can reliably determine that the reliable random number sequence can lead to based on random number sequence / dev/urandom equipment output is crossed ,/dev/urandom is the equipment for the generation random number that linux system provides;
Optionally, the embodiment of the present invention can obtain/dev/urandom equipment output reliable random number sequence, can with this Based on random number sequence, content is obtained using dd instruments (dd instruments are a file backup instruments in linux system) Random and file size is the small documents indicated by the size variable;The file size of the small documents generated is with random The random number of generation determines, the file contents of small documents is the reliable random number sequence using/dev/urandom equipment output as base Plinth determines;
For example, the embodiment of the present invention can be performed in Linux server order " dd if=/dev/urandom of=/ Tmp/testfile/file1.img bs=1K count=size ", it is interior so as to generate the file size that size becomes amount instruction Hold random small documents.
Optionally, the small documents generated can be stored in predefined paths;For example, the small documents generated can be stored in "/ In tmp/testfile/file1.img " paths.
Step S120, repeat the above steps S100 to step S110, until the small documents of generation predetermined quantity.
Above-mentioned steps S100 to step S110 illustrates the generation of the small documents that file size is random, content is random Journey, above-mentioned steps S100 to step S110 can be described as target step;The embodiment of the present invention repeats performance objective step (above-mentioned step Rapid S100 to step S110), until the quantity of the small documents generated reaches predetermined quantity;Predetermined quantity can be previously set Test used in small documents quantity, can according to actual conditions define adjust.
Optionally, the embodiment of the present invention can utilize shell scripts, and control above-mentioned steps S100 to step S110 repetition are held OK, at the same the generated small documents of control quantity;For example, above-mentioned steps S100 can be encapsulated by shell scripts to step S110 operation, circulation create random small documents, and by controlling cycle-index, obtain the file size of specified quantity with The random small documents of machine, content;
Optionally, as a kind of example, the content of shell scripts can be as follows, and wherein num variables can control generation The quantity of small documents:
!#/bin/bash
Num=100000
for iin$(seq 1$num)
do
Size=$ (($ RANDOM%1023+2))
Dd if=/dev/urandom of=/tmp/testfile/file $ i.img bs=1K count=$ size done。
Step S130, according to the small documents of the predetermined quantity, memory reliability test is carried out to storage device to be measured, obtained To memory reliability test result.
Optionally, storage device to be measured can be carried out including writing using the small documents of the predetermined quantity as test data Enter, delete, reading, being replicated in a series of interior test operations, obtaining storage device when carrying out mass small documents data manipulation The valid conclusion of reliability.
This have the advantage that the file size and content of test data are random generation, fully simulation The characteristic of practical application scene small file, and influence of the subjective factor for test result is reduced, while small documents number Measure controllable, be adapted to the testing requirement of different size storage device.
It is understood that the storage to mass small documents is a kind of commonly used scene of storage device, internet, Mobile operator fields are especially common, because the data that these industries are stored often relate to picture, audio, text, daily record etc. Small files, and enormous amount, therefore the storage which kind of storage device all can be to small documents in design carries out some spies Other optimization;Using the embodiment of the present invention, using small documents (the small text of these predetermined quantities of the predetermined quantity generated at random In part, the file size of small documents is random, and content is random) reliability testing of storage device to be measured is carried out, solve existing use The problem of existing small documents are tested, and the reliability of caused reliability testing conclusion can not ensure, improves reliability The reliability of test result;
It can be seen that the read-write of the storage device based on the random small documents of the magnanimity reliability testing side that the embodiment of the present invention is provided Method, the R & D Enterprises and buying enterprise for storage device are all significant.
Memory reliability method of testing provided in an embodiment of the present invention includes:Random number is generated, is determined with the random number The file size of small documents, the file size is stored in size variable;Reliable random number sequence is obtained, with described reliable Based on random number sequence, generation content is at random and file size is the small documents indicated by the size variable;Repeat above-mentioned Step is until the small documents of generation predetermined quantity;According to the small documents of the predetermined quantity, storage device to be measured is stored Reliability testing, obtain memory reliability test result.
It is that file is big because the embodiment of the present invention carries out memory reliability test used test data to storage device to be measured Small and content is the small documents generated at random, and this fully simulates the characteristic of storage device practical application scene small file, Influence of the subjective factor for test result is reduced, improves the reliability of memory reliability test result;Small documents simultaneously Controllable quantity, it is adapted to the testing requirement of different size storage device.Therefore, memory reliability provided in an embodiment of the present invention Method of testing, can lift the reliability of memory reliability test result, and be suitable for the testing requirement of different size storage device.
Optionally, Fig. 3 shows another flow of memory reliability method of testing provided in an embodiment of the present invention, reference picture 3, this method can be applied to server, and the memory reliability method of testing can include:
Step S200, random number is produced using $ RANDOM variables, the file size of small documents, institute is controlled with random number The file size of determination is stored in size variables.
Step S210, the reliable random number sequence of acquisition/dev/urandom equipment output, with the reliable random number sequence Basis is classified as, the small documents that content is random and file size is indicated by the size variables are obtained using dd instruments.
Step S220, using shell scripts, step S200 to step S210 is repeated, until generation predetermined quantity Small documents.
Step S230, according to the small documents of the predetermined quantity, memory reliability test is carried out to storage device to be measured, obtained To memory reliability test result.
After the small documents of predetermined quantity are obtained, the embodiment of the present invention can carry out memory reliability survey to storage device to be measured Examination;Based on system shown in Figure 1, before carrying out memory reliability test, the embodiment of the present invention need to determine to be storage devices under being in Stable state, in the case of ensureing that network connection between server and Devices to test is unobstructed, it can be based on by method shown in Fig. 4 Small documents, memory reliability test is carried out to storage device to be measured, method can be applied to server shown in Fig. 4;
Reference picture 4, this method can include:
Step S300, create directory one and catalogue two on the server, and controls the lun1 carries of storage device to be measured to exist Catalogue one, the lun2 carries of storage device to be measured are in catalogue two.
Optionally, the embodiment of the present invention can be created in storage device to be measured two lun (Logical Unit Number, LUN), it is named as lun1 (LUN one) and lun2 (LUN two);Optionally, single lun capacity 1TB is should be greater than, system default can be used in other parameters;
Meanwhile establishment/mnt/lun1 (be referred to as catalogue one, for carry lun1) ,/mnt/lun2 (are referred to as on the server Catalogue two, for carry lun2).
Optionally, iSCSI (Internet Small Computer System Interface, Internet can be passed through Small computer system interface) agreement, the lun1 carries being storage devices under using mount orders (carry order) control are in mesh Record one, the lun2 carries of storage device to be measured are in catalogue two;I.e. by iSCSI protocol, storage to be measured is controlled using mount orders In catalogue/mnt/lun1 of the lun1 carries of equipment in Linux server, the lun2 carries of storage device to be measured are in Linux In catalogue/mnt/lun2 on server.
Step S310, the small documents of the predetermined quantity are individually copied to catalogue one and catalogue two.
Optionally, cp orders (cp orders are used to replicate file or catalogue) can be used in the embodiment of the present invention, by the pre- of generation The small documents of fixed number amount are individually copied to/mnt/lun1 and/mnt/lun2 catalogues in.
Step S320, the small documents of the predetermined quantity are controlled to be moved between catalogue one and catalogue two, according to mobile feelings Condition determines memory reliability test result.
Optionally, mv orders can be used in the embodiment of the present invention, control the small documents of predetermined quantity /mnt/lun1 with/ Moved between mnt/lun2, so as to according to the small documents of predetermined quantity in/mobile feelings between mnt/lun1 and/mnt/lun2 Condition, determine memory reliability test result;
Optionally, in test process can by small documents /movement between mnt/lun1 and/mnt/lun2 come, The common I/O operations such as small documents write-in, reading, deletion are simulated, can quickly draw effective reliability testing conclusion.
It is understood that if method shown in Fig. 4 can be smoothly completed, realize the small documents of predetermined quantity in catalogue one Moved between catalogue two, then storage device and Linux server to be measured are without exception is reported an error, then test is completed, and output storage can By property test result, it is believed that storage device to be measured has good reliability for mass small documents application scenarios;Otherwise it is assumed that treat It is not perfect enough to survey support of the storage device for mass small documents.
Memory reliability method of testing provided in an embodiment of the present invention, using the $ RANDOM variables in Linux and/ Dev/urandom equipment, the random small documents of magnanimity are produced as test data, it is random and literary that its randomness is embodied in file size Part content is random;And then the random small documents of magnanimity are mutually shifted on two LUN of same storage device, to draw storage device For the reliability of mass small documents application scenarios, memory reliability test result is determined.Storage provided in an embodiment of the present invention Method for testing reliability, can lift the reliability of memory reliability test result, and be suitable for the survey of different size storage device Examination demand.
Server provided in an embodiment of the present invention is introduced below, server described below may be considered, clothes Business device is to realize the program module content set needed for memory reliability method of testing provided in an embodiment of the present invention;It is described below Server content can be corresponding to should refer to above-described memory reliability method of testing content.
Fig. 5 is the structured flowchart of server provided in an embodiment of the present invention, and reference picture 5, the server can include:
Mass small documents generation module 100, for repeating target step until the small documents of generation predetermined quantity;Institute Stating target step includes:Random number is generated, the file size of small documents is determined with the random number, the file size is preserved In size variable;Reliable random number sequence is obtained, based on the reliable random number sequence, generation content is random and file Size is the small documents indicated by the size variable;
Testing execution module 200, for the small documents according to the predetermined quantity, carrying out storage to storage device to be measured can Tested by property, obtain memory reliability test result.
Optionally, mass small documents generation module 100, for generating random number, specifically include:
Random number is produced using $ RANDOM variables;$ RANDOM are the environmental variances in the shell shell of linux system, and $ The scope of RANDOM variables generation number is arranged to, the kilobytes KB magnitude ranges of small documents setting.
Optionally, mass small documents generation module 100, for obtaining reliable random number sequence, specifically include:
The reliable random number sequence of acquisition/dev/urandom equipment output;/ dev/urandom is that linux system provides Generation random number equipment;
Optionally, mass small documents generation module 100, for based on the reliable random number sequence, generating content Random and file size is the small documents indicated by the size variable, is specifically included:
Based on the reliable random number sequence, obtain content at random using dd instruments and file size is the size Small documents indicated by variable;Wherein, dd instruments are the file backup instruments in linux system.
Optionally, mass small documents generation module 100, for repeating target step until generating the small of predetermined quantity File, specifically include:
Using shell scripts, target step is repeated until the small text of generation predetermined quantity;The shell scripts envelope Operation equipped with the target step.
Optionally, testing execution module 200, for the small documents according to the predetermined quantity, storage device to be measured is entered Row memory reliability is tested, and is obtained memory reliability test result, is specifically included:
Create directory one and catalogue two, and controls the lun1 carries of storage device to be measured in catalogue one, storage device to be measured Lun2 carries in catalogue two;
The small documents of the predetermined quantity are individually copied to catalogue one and catalogue two;
Control the small documents of the predetermined quantity to be moved between catalogue one and catalogue two, determine to store according to situation of movement Reliability testing conclusion.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments in the case where not departing from the core concept or scope of the present invention.Therefore, originally Invention is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty Consistent most wide scope.

Claims (10)

  1. A kind of 1. memory reliability method of testing, it is characterised in that including:
    Target step is repeated until the small documents of generation predetermined quantity;The target step includes:Random number is generated, with institute The file size that random number determines small documents is stated, the file size is stored in size variable;Obtain reliable random number sequence Row, based on the reliable random number sequence, generation content is random and file size is small indicated by the size variable File;
    According to the small documents of the predetermined quantity, memory reliability test is carried out to storage device to be measured, obtains memory reliability Test result.
  2. 2. memory reliability method of testing according to claim 1, it is characterised in that the generation random number includes:
    Random number is produced using $ RANDOM variables;$ RANDOM are the environmental variances in the shell shell of linux system, and $ The scope of RANDOM variables generation number is arranged to, the kilobytes KB magnitude ranges of small documents setting.
  3. 3. memory reliability method of testing according to claim 1, it is characterised in that described to obtain reliable random number sequence Including:
    The reliable random number sequence of acquisition/dev/urandom equipment output;/ dev/urandom is the production that linux system provides The equipment of raw random number;
    It is described based on the reliable random number sequence, generation content is random and file size is indicated by the size variable Small documents include:
    Based on the reliable random number sequence, obtain content at random using dd instruments and file size is the size variable Indicated small documents;Wherein, dd instruments are the file backup instruments in linux system.
  4. 4. memory reliability method of testing according to claim 1, it is characterised in that described to repeat target step straight Small documents to generation predetermined quantity include:
    Using shell scripts, target step is repeated until the small text of generation predetermined quantity;The shell scripts are packaged with The operation of the target step.
  5. 5. according to the memory reliability method of testing described in claim any one of 1-4, it is characterised in that described according to described pre- The small documents of fixed number amount, memory reliability test is carried out to storage device to be measured, obtaining memory reliability test result includes:
    Create directory one and catalogue two, and controls the lun1 carries of storage device to be measured in catalogue one, storage device to be measured Lun2 carries are in catalogue two;
    The small documents of the predetermined quantity are individually copied to catalogue one and catalogue two;
    Control the small documents of the predetermined quantity to be moved between catalogue one and catalogue two, determine that storage is reliable according to situation of movement Property test result.
  6. A kind of 6. server, it is characterised in that including:
    Mass small documents generation module, for repeating target step until the small documents of generation predetermined quantity;The target Step includes:Random number is generated, the file size of small documents is determined with the random number, the file size is stored in size In variable;Reliable random number sequence is obtained, based on the reliable random number sequence, generation content is random and file size is Small documents indicated by the size variable;
    Testing execution module, for the small documents according to the predetermined quantity, memory reliability survey is carried out to storage device to be measured Examination, obtains memory reliability test result.
  7. 7. server according to claim 6, it is characterised in that the mass small documents generation module, for generate with Machine number, is specifically included:
    Random number is produced using $ RANDOM variables;$ RANDOM are the environmental variances in the shell shell of linux system, and $ The scope of RANDOM variables generation number is arranged to, the kilobytes KB magnitude ranges of small documents setting.
  8. 8. server according to claim 6, it is characterised in that the mass small documents generation module, can for obtaining By random number sequence, specifically include:
    The reliable random number sequence of acquisition/dev/urandom equipment output;/ dev/urandom is the production that linux system provides The equipment of raw random number;
    The mass small documents generation module, for based on the reliable random number sequence, generation content is random and file Size is the small documents indicated by the size variable, is specifically included:
    Based on the reliable random number sequence, obtain content at random using dd instruments and file size is the size variable Indicated small documents;Wherein, dd instruments are the file backup instruments in linux system.
  9. 9. server according to claim 6, it is characterised in that the mass small documents generation module, for repeating to hold Row target step specifically includes until the small documents of generation predetermined quantity:
    Using shell scripts, target step is repeated until the small text of generation predetermined quantity;The shell scripts are packaged with The operation of the target step.
  10. 10. according to the server described in claim any one of 5-9, it is characterised in that the testing execution module, for basis The small documents of the predetermined quantity, memory reliability test is carried out to storage device to be measured, obtains memory reliability test result, Specifically include:
    Create directory one and catalogue two, and controls the lun1 carries of storage device to be measured in catalogue one, storage device to be measured Lun2 carries are in catalogue two;
    The small documents of the predetermined quantity are individually copied to catalogue one and catalogue two;
    Control the small documents of the predetermined quantity to be moved between catalogue one and catalogue two, determine that storage is reliable according to situation of movement Property test result.
CN201710742159.4A 2017-08-25 2017-08-25 A kind of memory reliability method of testing and server Pending CN107562554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710742159.4A CN107562554A (en) 2017-08-25 2017-08-25 A kind of memory reliability method of testing and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710742159.4A CN107562554A (en) 2017-08-25 2017-08-25 A kind of memory reliability method of testing and server

Publications (1)

Publication Number Publication Date
CN107562554A true CN107562554A (en) 2018-01-09

Family

ID=60976959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710742159.4A Pending CN107562554A (en) 2017-08-25 2017-08-25 A kind of memory reliability method of testing and server

Country Status (1)

Country Link
CN (1) CN107562554A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683567A (en) * 2018-05-30 2018-10-19 郑州云海信息技术有限公司 A kind of switch port fault testing method and system based on MCS and server
CN108829573A (en) * 2018-06-20 2018-11-16 郑州云海信息技术有限公司 A kind of method for testing reliability pre-reading function based on linux system small documents
CN109614330A (en) * 2018-12-06 2019-04-12 广东浪潮大数据研究有限公司 Storage system service test method, device, system, storage control and medium
CN110557299A (en) * 2019-07-31 2019-12-10 苏州浪潮智能科技有限公司 network transmission function batch test method, system, terminal and storage medium
CN111221691A (en) * 2019-12-27 2020-06-02 广东睿江云计算股份有限公司 Test method for automatic snapshot data recovery of disk

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020162066A1 (en) * 2001-03-09 2002-10-31 Ajay Khoche Test vector compression method
CN103514958A (en) * 2012-12-31 2014-01-15 Tcl集团股份有限公司 Method for detecting service life of EMMC (embedded multi-media card) chip
CN106095635A (en) * 2016-06-28 2016-11-09 浪潮电子信息产业股份有限公司 Hard disk performance test method based on dd

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020162066A1 (en) * 2001-03-09 2002-10-31 Ajay Khoche Test vector compression method
CN103514958A (en) * 2012-12-31 2014-01-15 Tcl集团股份有限公司 Method for detecting service life of EMMC (embedded multi-media card) chip
CN106095635A (en) * 2016-06-28 2016-11-09 浪潮电子信息产业股份有限公司 Hard disk performance test method based on dd

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高泽栋: "一种优化HDFS小写文件存储策略研究与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683567A (en) * 2018-05-30 2018-10-19 郑州云海信息技术有限公司 A kind of switch port fault testing method and system based on MCS and server
CN108829573A (en) * 2018-06-20 2018-11-16 郑州云海信息技术有限公司 A kind of method for testing reliability pre-reading function based on linux system small documents
CN109614330A (en) * 2018-12-06 2019-04-12 广东浪潮大数据研究有限公司 Storage system service test method, device, system, storage control and medium
CN110557299A (en) * 2019-07-31 2019-12-10 苏州浪潮智能科技有限公司 network transmission function batch test method, system, terminal and storage medium
CN111221691A (en) * 2019-12-27 2020-06-02 广东睿江云计算股份有限公司 Test method for automatic snapshot data recovery of disk
CN111221691B (en) * 2019-12-27 2023-09-01 广东睿江云计算股份有限公司 Test method for automatic snapshot data recovery of disk

Similar Documents

Publication Publication Date Title
CN107562554A (en) A kind of memory reliability method of testing and server
US10235055B1 (en) Storage performance testing to evaluate moving data among arrays
CN103136243B (en) File system duplicate removal method based on cloud storage and device
CN107480039B (en) Small file read-write performance test method and device for distributed storage system
US20100115496A1 (en) Filter generation for load testing managed environments
US8667247B2 (en) Volume record data set optimization apparatus and method
CN109376046A (en) A kind of method for testing hard disk, device, equipment and computer readable storage medium
US9824000B1 (en) Testing calling code dynamically with random error injection based on user-specified configuration
CN107479823A (en) Data verification method and device in the test of random read-write file
US10803166B1 (en) Automated determination of application privileges
CN107704347A (en) A kind of automatic method for carrying out hard disc data uniformity test
CN106201857B (en) The choosing method and device of test case
US6868434B1 (en) System and method for testing server latencies using multiple concurrent users in a computer system
CN106126427A (en) A kind of method and system of fast quick-recovery test
US9501390B1 (en) Enhancing automated mobile application testing
BRPI0904262A2 (en) automated load model
CN105183641A (en) Data consistency check method and system for kernel module
CN115129572A (en) Performance test method, device, equipment and medium
US10997996B1 (en) Flexible on-cylinder limit for drive performance management
US10599880B1 (en) Systems and methods for simulating real-world IO workloads in a parallel and distributed storage system
CN111026656A (en) Automatic testing system, method, equipment and storage medium for distributed storage
US10725877B2 (en) System, method and computer program product for performing a data protection operation
CN106557262A (en) A kind of data processing method and device
US9298390B2 (en) Systems and methods for copying data maintained in a dynamic storage volume and verifying the copied data
US9547582B2 (en) Selectable data on file viewing in a debugger

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: 20180109