CN103810065B - Method and device for testing disk array - Google Patents
Method and device for testing disk array Download PDFInfo
- Publication number
- CN103810065B CN103810065B CN201210460783.2A CN201210460783A CN103810065B CN 103810065 B CN103810065 B CN 103810065B CN 201210460783 A CN201210460783 A CN 201210460783A CN 103810065 B CN103810065 B CN 103810065B
- Authority
- CN
- China
- Prior art keywords
- matrix
- access control
- control policy
- visited
- memory space
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a method and a device for testing a disk array, and aims to solve the problems in the prior art that the abnormal running state of the disk array can not be detected and an accurate testing result can not be obtained. The method comprises the following steps of determining a preset access control policy group; executing designated operation for each access control policy in the access control policy group until all access control policies are traversed, wherein the designated operation comprises the following steps of determining a matrix element to be accessed from a storage space matrix corresponding to a logic unit to be measured specific to the disk array; determining a data block to be accessed corresponding to the matrix element to be accessed according to preset corresponding relation between pre-built matrix elements and data blocks contained in the logic unit to be tested; judging whether designated write-in data specific to the data block to be accessed are matched with data returned by the access control policy after executing reading operation or not; determining whether the running state of the disk array is abnormal or not according to a judging result.
Description
Technical field
The present invention relates to technical field of measurement and test, more particularly, to a kind of method and apparatus of testing magnetic disc array.
Background technology
One disk array includes controller and physical disk cabinet, and controller is used for running control software and various algorithm,
It is located in controller for data cached cache memory cache;And physical disk cabinet is deposited under the control of the controller
Storage data.Under normal circumstances, when disk array receives an io read request of client, if the data of request is in speed buffering
Memorizer cache does not hit, then be read into cache the data of request from the physical disk cabinet of disk array, then
Returned from cache to client;When disk array receives one io write request of client, data to be written into is write
In cache, and return successful respond to client, afterwards according to algorithm controls then by cache, this is to be written in certain time
Data writes in the physical disk cabinet in disk array.According to this operation characteristic of disk array, the survey of existing disk array
Method for testing is: simple emulation io read-write operation, it may be assumed that sending io write operation order to disk array, receives disk array and returns
Successful respond;Send the io read operation order of the data for reading write again to disk array, receive disk array and return
Data.In prior art, in said process, will not verify whether the data of write is consistent with the data reading.
In actual test, in order to obtain a higher test value, the producer of tested disk array is possible to change
The control software of disk array.Such as, for io read operation order, even if cache does not hit, it also will not be from disk array
Physical disk cabinet in read data and return to client again, but directly return other data in cache to client.
It can be seen that, existing this method of testing can not effectively detect this abnormal running status of disk array, from
And the numerical value virtual height tested can be led to, do not meet its practical operation situation.
In addition, existing test model is achieved in that being realized with the mode generating random number, as shown in figure 1, be existing
There is the schematic diagram realizing test in technology using the mode generating random number.Wherein, test model generates and comprises 100 elements
Array, each element represents a kind of specific access control policy, and the random number according to generating determines the corresponding element of selection
The access control policy representing, and according to the access control policy determining, disk array is tested.In actual applications, than
As a Transaction Processing oltp model, it generates the array comprising from 1 to 100, and this array represents an access control plan
Slightly group, the access control policy that wherein " 1-20 " represents is " reading 8k byte with random access manner ", the access that " 21-65 " represents
Control strategy is " reading 4k byte with random access manner ", and the access control policy that " 66-80 " represents is " with random access manner
Write 8k byte ", the access control policy that " 81-90 " represents is " writing 64k byte with sequential access mode ", and " 91-100 " represents
Access control policy is " reading 64k byte with sequential access mode ".It can be seen that, for the access control set by this oltp model
In strategy, the random read operation that the random read operation of 8k byte accounts for 20%, 4k byte accounts for the random writing operations of 45%, 8k byte and accounts for
The order write operation that the order read operation of 15%, 64k byte accounts for 10%, 64k byte accounts for 10%.
In actual test, the shared ratio in access control policy group of the different access control strategy of only its foundation
When meeting regulation ratio, just can obtain the most accurate test result.But, due to having no idea to control the random of generation on demand
Count and make the access control policy of test institute foundation reach such ratio, such as when the mode using generation random number is upper
State when disk array being tested in oltp model, if having 30 randoms number to fall into [1,20] in the 100 of generation randoms number
This is interval, then the access control policy corresponding to " 1-20 " will account for 30%, thus the random number generating is pointed accesses control
The shared ratio in access control policy group of system strategy is doomed will not be very accurate, therefore cannot realize well in above-mentioned model
The purpose of middle testing magnetic disc array.
Content of the invention
The embodiment of the present invention provides a kind of method and apparatus of testing magnetic disc array, in order to solve can not examine in prior art
The problem measured disk array abnormal operating condition and accurate test result can not be obtained.
The embodiment of the present invention employs the following technical solutions:
A kind of method of testing magnetic disc array, comprising:
Determine the access control policy group pre-setting;Each being directed to successively in described access control policy group accesses control
Strategy execution assigned operation processed, till traveling through whole access control policies;Wherein, described assigned operation includes: from being directed to
In the memory space matrix of the corresponding setting of the logical block to be tested of disk array, determine matrix element to be visited;According to pre-
The corresponding relation of each data block that the matrix element first set up and described logical block to be tested are comprised, is determined and is treated with described
The corresponding data block to be visited of access matrix element;And this access control policy defined read-write io action type be read behaviour
When making, judge that the write data specified by data block to be visited returns after read operation with executing according to this access control policy
Data whether mate;According to executing judged result obtained from described assigned operation for each access control policy, determine
Whether the running status of described disk array is abnormal.
A kind of device of testing magnetic disc array, comprising:
Access control policy group determining unit, for determining the access control policy group pre-setting;Performance element, is used for
Each access control policy being directed in the described access control policy group that access control policy group determining unit determines successively is held
Row assigned operation, till traveling through whole access control policies;Wherein, described assigned operation includes: from for disk array
The memory space matrix of the corresponding setting of logical block to be tested in, determine matrix element to be visited;According to pre-build
The corresponding relation of each data block that matrix element and described logical block to be tested are comprised, determines and described matrix to be visited
The corresponding data block to be visited of element;And when the read-write io action type of this access control policy defined is read operation, sentence
Broken needle executes, with according to this access control policy, the data returning after read operation to the write data specified by data block to be visited
Whether mate;Running status determining unit, for obtaining according to executing described assigned operation for each access control policy
Judged result, determine that the running status of described disk array is whether abnormal.
The having the beneficial effect that of the embodiment of the present invention:
Scheme provided in an embodiment of the present invention, when the data reading from disk array is not the data specifying write, is passed through
This judged result just can determine that this disk array has abnormal running status, writes thus overcoming and will not verifying in prior art
The data the entering defect whether consistent with the data reading, solves and can not detect disk array misoperation in prior art
The problem of state;On the other hand, by traveling through the access control policy in the access control policy group that pre-sets it is achieved that right
The reading of every access control policy is so that in actual test, can accurately visit according to the access control policy of setting
Ask that shared ratio in control strategy group is tested, and then obtain accurate test result.
Brief description
Fig. 1 is the schematic diagram realizing test in prior art using the mode generating random number;
Fig. 2 is a kind of broad flow diagram of the method for testing magnetic disc array provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of access control policy matrix provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of traversal access control policy matrix provided in an embodiment of the present invention;
Fig. 5 is that such scheme provided in an embodiment of the present invention in actual applications one implements schematic diagram;
Fig. 6 be the embodiment of the present invention in memory space matrix realize schematic diagram;
Fig. 7 is the schematic diagram of the different access method of memory space matrix provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of the device of testing magnetic disc array provided in an embodiment of the present invention.
Specific embodiment
In order to solve to detect disk array abnormal operating condition in prior art and can not accurately be surveyed
The problem of test result, embodiments provides a kind of scheme of testing magnetic disc array.Program one side is visited according to each
Ask control strategy, from the memory space matrix of setting corresponding to the logical block to be tested for disk array, determine that band is visited
Ask matrix element, corresponding with each data block that logical block to be tested is comprised further according to the matrix element pre-building
Relation, determines to be visited data block corresponding with matrix element to be visited, and then judges specified by data block to be visited
With according to access control policy, write data executes whether the data returning after read operation mates, overcoming will not in prior art
The data that checking the writes defect whether consistent with the data reading, when the data reading from disk array is not to specify write
During data, just can determine that this disk array has abnormal running status by this judged result, thus solving prior art
In can not detect the problem of disk array abnormal operating condition;On the other hand, by traveling through the access control plan pre-setting
Access control policy slightly in group, can be accurate it is achieved that reading to every access control policy is so that in actual test
The ratio shared in access control policy group of access control policy according to setting tested, and then accurately surveyed
Test result.
With reference to each accompanying drawing to embodiment of the present invention technical scheme main realize principle, specific embodiment and its
The beneficial effect that should be able to reach is explained in detail.
As shown in Fig. 2 being a kind of broad flow diagram of the method for testing magnetic disc array provided in an embodiment of the present invention, the party
Method comprises the following steps:
Step 21, determines the access control policy group pre-setting.
Generally, test model includes two test scenes of olap and oltp, and each test scene comprises different proportion, difference
Access mode, the read-write io operation of different pieces of information amount size.Such as, the access pre-setting respectively under oltp and olap scene
Control strategy group can be as shown in table 1.Wherein, in each test mould field scape, a number containing 100 elements can be generated
Group, this array represents an access control policy group, and each element represents a kind of specific access control policy.With in table 1
As a example oltp scene, 5 kinds of element element can be generated altogether, each element corresponds to a kind of access control policy
Ioprofile, as follows respectively:
A) element.size=8192, element.random=100, element.read=100;
B) element.size=4096, element.random=100, element.read=100;
C) element.size=8192, element.random=100, element.read=0;
D) element.size=65536, element.random=0, element.read=100;
E) element.size=65536, element.random=0, element.read=0;
Wherein, element.size represents data volume size;Element.random represents access mode,
Element.random=100 is random access manner, element.random=0 order of representation access mode;
Element.read represents mode of operation, and element.read=100 is read operation, and element.read=0 is write operation.Such as
By above-mentioned a) as a example, its representative access control policy be with random access manner read 8192 bytes (4kb) data volume.
According to the shared different proportion in access control policy group of every kind of access control policy, determine the number of each element
Amount, and the quantity sum of all elements is 100.
Table 1:
Step 22, is directed to each access control policy execution assigned operation in access control policy group successively, until time
Till going through whole access control policies.
Wherein it is intended that operation includes: from the memory space of setting corresponding to the logical block to be tested for disk array
In matrix, determine matrix element to be visited;Comprised according to the matrix element pre-building and logical block to be tested each
The corresponding relation of data block, determines to be visited data block corresponding with matrix element to be visited;And in this access control policy institute
When the read-write io action type of regulation is read operation, judge for the write data specified by data block to be visited with according to this visit
Ask whether the data that control strategy returns after executing read operation mates.
Optionally, comprise in the array of generation 100 elements can be organized into a 10*10 in the embodiment of the present invention
Matrix, as shown in figure 3, be a kind of schematic diagram of access control policy matrix provided in an embodiment of the present invention, by this visit
Ask the traversal of control strategy matrix, realize the reading to all access control policies.As shown in figure 4, carrying for the embodiment of the present invention
For a kind of traversal access control policy matrix schematic diagram, suitable according to the access accessing each matrix element from top to bottom successively
Sequence, first conducts interviews to the matrix element of first row, then, accesses the matrix element of secondary series according still further to above-mentioned access order,
By that analogy, until the whole traversal of the matrix element of this access control policy matrix finishes.
Wherein, in test process, only when the matrix element of this memory space matrix must all travel through and finish, survey
Examination could stop;If the matrix element of this memory space matrix does not travel through one time, then test cannot stop.Need
Bright, in test process, this ergodic process can circulate and repeatedly be performed, that is, when the matrix element of this memory space matrix
At least all traversal once, is tested and could be stopped.
Step 23, judged result according to obtained from for each access control policy execution assigned operation, determine disk
Whether array running status is abnormal.
Embodiment of the present invention one side according to each access control policy, from the logical block to be tested for disk array
In the memory space matrix of corresponding setting, determine matrix element to be visited, further according to the matrix element pre-building with to be measured
The corresponding relation of each data block that the logical block of examination is comprised, determines to be visited data corresponding with matrix element to be visited
Block, and then judge that the write data specified by data block to be visited returns after read operation with executing according to access control policy
Data whether mate, just can determine that this disk array whether there is abnormal running status by this judged result, and then solve
The problem of disk array abnormal operating condition can not be detected in prior art of having determined;On the other hand, pre-set by traversal
Access control policy group in access control policy it is achieved that reading to every access control policy, enabling to each
Type operations are accurately controlled, and then obtain accurate test result.
As shown in figure 5, in actual applications implements signal for such scheme provided in an embodiment of the present invention
Figure, the method comprises the following steps:
Step 51, determines the access control policy group pre-setting.
Step 52, for be not accessed access control policy in access control policy group, from for disk
In the memory space matrix of the corresponding setting of the logical block to be tested of array, determine matrix element to be visited.
In test process, taking travel through the whole access control policies in an access control policy group as a example, each visit
Ask control strategy meeting quilt and only can be accessed once.
Wherein, access control policy includes io action type (read operation or write operation), io data volume size and io access
Mode.And io access mode includes: io random access manner and io sequential access mode.If the data block accessing twice in front and back
Adjacent, then to be taken as sequential access;If the data block accessing twice in front and back is non-conterminous, then be taken as visiting at random
Ask.
Then this step specifically includes: according to the rating data amount of storage size of io data volume size and individual data block, really
Quantity, the read pointer further according to this memory space matrix and the io access mode of fixed matrix element to be visited, from this memory space
The matrix element to be visited of above-mentioned quantity is chosen in matrix.Wherein, the position that above-mentioned read pointer points to is this memory space matrix
In last matrix element of access memory space, choose matrix element to be visited when first from memory space matrix
When, the position that read pointer points to is the memory space of first matrix element of memory space matrix.
Introduce the set-up mode of memory space matrix in detail below:
Assume that the memory space of disk array is divided into several logical blocks, each logical block (it is assumed that its capacity
For 100gb) it is divided into continuous data block in units of 1kb.So, the data block of these 1kb can form a m row, n row
Matrix, wherein, m*n*1kb=100gb.The data block being obtained based on division, setting schematic diagram such as Fig. 6 of memory space matrix
Shown, its concrete set-up mode is: sequentially generates the first row of matrix from first data BOB(beginning of block) of logical block, that is, from m
(0,0) m(0, n-1 are arrived), common n element;Afterwards from m(1,0) arrive m(1, n-1) generate the 2nd row, the like, ultimately generate and deposit
Storage space matrix m(m*n).
Optionally, in order that reading and writing the simple and easy to do of checking in test, indication in the data block of each 1kb in logical block
Fixed write data can be rower and the row mark of its corresponding matrix element, and wherein, front 512 bytes all write matrix element
Element row i value, afterwards 512 bytes all write the row mark j value of matrix element.
It should be noted that the set-up mode of the memory space matrix in the embodiment of the present invention can be but be not limited to above-mentioned
Mode, in order that test simple, preferably above-mentioned this setup.
If according to the set-up mode of above-mentioned memory space matrix, the difference visit to memory space matrix in the embodiment of the present invention
Ask that method is as shown in Figure 7.When io access mode is io sequential access mode, according to read pointer, from positioned at indicated by read pointer
Matrix element on the right side of adjacent matrix elements start, choose the above-mentioned number arranging from left to right successively from memory space matrix
The matrix element to be visited of amount;
Matrix element when io access mode is io random access manner, according to read pointer, indicated by positioned at read pointer
Element lower section adjacent matrix elements start, choose from memory space matrix successively the above-mentioned quantity arranging from left to right wait visit
Ask matrix element.
Such as, the io data volume size that this access control policy specifies is 4kb, and io access mode is sequential access side
Formula, then rating data amount of storage size 1kb according to io data volume size 4kb and individual data block, determines matrix element to be visited
The quantity of element is 4, then, from the beginning of the adjacent matrix elements on the right side of matrix element indicated by positioned at read pointer, successively from depositing
Choose, in storage space matrix, 4 matrix elements to be visited arranging from left to right.
If it should be noted that this line that the matrix element running into this memory space matrix is located terminates, then from
The next line of this memory space matrix continues to choose the matrix element to be visited of the above-mentioned quantity arranging from left to right.If run into
The last column of this memory space matrix of this behavior that the matrix element of this memory space matrix is located, then from this memory space
The first row of matrix continues to choose the matrix element to be visited of the above-mentioned quantity arranging from left to right.
Step 53, corresponding with each data block that logical block to be tested is comprised according to the matrix element pre-building
Relation, determines to be visited data block corresponding with matrix element to be visited.
This corresponding relation determines according to the set-up mode of memory space matrix in step 52.This correspondence in the embodiment of the present invention
Relation is particularly as follows: every row matrix element of memory space matrix, according to putting in order from left to right, corresponds to be measured successively
That examination logical block is comprised, on memory space address the continuous each data block in multiple data blocks.
Step 54, obtains specified write data from the data block to be visited determining.
Wherein, for the write data specified by data block arbitrarily to be visited can be: corresponding to this data block to be visited
Numbering in memory space matrix for the matrix element, in embodiments of the present invention, matrix element is in memory space matrix
Numbering is rower in memory space matrix for this matrix element and row mark.
Step 55, judges whether io action type specified in access control policy is read operation, if so, execution step
56, otherwise execution step 59.
Step 56, executes io read operation, returns and reads data;
Step 57, judges the write data specified by data block to be visited and executes reading according to this access control policy
Whether the reading data returning after operation mates, if so, execution step 510, otherwise execution step 58.
Step 58, the running status of this disk array is abnormal, and abnormal number adds 1, execution step 510.
Step 59, executes io write operation, and returns successful respond.
Step 510, judges whether to travel through whole access control policies, and if so, then test terminates, and obtains test result, no
Then return execution step 52.Wherein, this test result can obtain according to the last abnormal number determining.Such as, Ke Yigen
According to the relatively more last abnormal number determining and the outlier threshold pre-setting, if the last abnormal number determining is more than or equal to pre-setting
Outlier threshold, then test result is that this disk array running status is abnormal, if the last abnormal number determining is less than pre-setting
Outlier threshold, then test result be this disk array running status normal.
In the embodiment of the present invention, when the data reading from disk array is not the data specifying write, by this judgement
Result just can determine that this disk array has abnormal running status, thus overcoming the number that will not verify write in prior art
According to the defect whether consistent with the data reading, solve and disk array abnormal operating condition in prior art, can not be detected
Problem;On the other hand, by traveling through the access control policy in the access control policy group pre-setting it is achieved that visiting to every
Ask the reading of control strategy so that in actual test, can accurately according to setting access control policy in access control
In tactful group, shared ratio is tested, and then obtains accurate test result.
Accordingly, the embodiment of the present invention additionally provides a kind of device of testing magnetic disc array, as shown in figure 8, being this device
Structural representation, comprising:
Access control policy group determining unit 81, for determining the access control policy group pre-setting;
Performance element 82, for being directed to successively in the access control policy group that access control policy group determining unit 81 determines
Each access control policy execution assigned operation, until traversal whole access control policies till;Wherein it is intended that operation is wrapped
Include: from the memory space matrix of setting corresponding to the logical block to be tested for disk array, determine matrix element to be visited
Element;The corresponding relation of each data block being comprised according to the matrix element pre-building and logical block to be tested, determine with
The corresponding data block to be visited of matrix element to be visited;And this access control policy defined read-write io action type be read
During operation, judge that the write data specified by data block to be visited is returned after read operation with executing according to this access control policy
Whether the data returned mates;
Running status determining unit 83, for obtaining according to executing described assigned operation for each access control policy
Judged result, determine that the running status of disk array is whether abnormal.
Optionally, the access control policy group pre-setting that access control policy group determining unit 81 determines is to access control
Strategy matrix processed, and access control policy is the matrix element in access control policy matrix.
Optionally, being directed to the write data specified by data block arbitrarily to be visited in performance element 82 is: this number to be visited
According to numbering in memory space matrix for the matrix element corresponding to block.
Wherein, access control policy includes io data volume size and io access mode;Then
Performance element 82 can specifically include:
Quantity determining module 821, for the rating data amount of storage size according to io data volume size and individual data block,
Determine the quantity of matrix element to be visited;
Choose module 822, for the read pointer according to memory space matrix and io access mode, from memory space matrix
Choose the matrix element to be visited of the quantity that quantity determining module determines.
Wherein, io access mode may include that sequential access mode and random access manner;And
Corresponding relation in 82 in performance element specifically includes:
Every row matrix element of memory space matrix, according to putting in order from left to right, corresponds described to be measured successively
That examination logical block is comprised, on memory space address the continuous each data block in multiple data blocks;Then
Performance element 82 can be specifically for:
Matrix element when io access mode is io sequential access mode, according to read pointer, indicated by positioned at read pointer
Element right side adjacent matrix elements start, choose from memory space matrix successively the described quantity arranging from left to right wait visit
Ask matrix element;
Matrix element when io access mode is io random access manner, according to read pointer, indicated by positioned at read pointer
Element lower section adjacent matrix elements start, choose from memory space matrix successively the described quantity arranging from left to right wait visit
Ask matrix element.
Wherein, the position that above-mentioned read pointer points to is the matrix element of last access in this memory space matrix
Memory space, when the first selection matrix element to be visited from memory space matrix, the position that read pointer points to is memory space
The memory space of first matrix element of matrix.
If it should be noted that this line that the matrix element running into this memory space matrix is located terminates, then from
The next line of this memory space matrix continues to choose the matrix element to be visited of the above-mentioned quantity arranging from left to right.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect
Apply the form of example.And, the present invention can be using in one or more computers wherein including computer usable program code
The upper computer program implemented of usable storage medium (including but not limited to disk memory, cd-rom, optical memory etc.) produces
The form of product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program
Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce
A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device
The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy
Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to
Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting
On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or
On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function of specifying in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to including excellent
Select embodiment and fall into being had altered and changing of the scope of the invention.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprise these changes and modification.
Claims (10)
1. a kind of method of testing magnetic disc array is it is characterised in that include:
Determine the access control policy group pre-setting;
It is directed to each access control policy execution assigned operation in described access control policy group successively, until traversal is all visited
Till asking control strategy;
Wherein, described assigned operation includes: from the memory space of setting corresponding to the logical block to be tested for disk array
In matrix, determine matrix element to be visited;Comprised according to the matrix element pre-building and described logical block to be tested
The corresponding relation of each data block, determines to be visited data block corresponding with described matrix element to be visited, described pre-builds
The corresponding relation of each data block that comprised with described logical block to be tested of matrix element specifically include: described storage is empty
Between matrix every row matrix element according to putting in order from left to right, correspond described logical block to be tested successively and wrapped
Containing, on memory space address the continuous each data block in multiple data blocks;And in this access control policy defined
When read-write io action type is read operation, judge for the write data specified by data block to be visited with according to this access control
Whether the data returning after strategy execution read operation mates;
According to executing judged result obtained from described assigned operation for each access control policy, determine described disk array
Running status whether abnormal.
2. the method for claim 1 is it is characterised in that the access control policy group pre-setting is access control policy
Matrix, and access control policy is the matrix element in access control policy matrix.
3. the method for claim 1 is it is characterised in that be directed to the write data specified by data block arbitrarily to be visited
For: numbering in described memory space matrix for the matrix element corresponding to this data block to be visited.
4. the method for claim 1 is it is characterised in that described access control policy includes io data volume size and io visits
Ask mode;Then
From described memory space matrix, determine matrix element to be visited, specifically include:
According to the rating data amount of storage size of io data volume size and individual data block, determine the number of matrix element to be visited
Amount;
Read pointer according to described memory space matrix and described io access mode, choose described from described memory space matrix
The matrix element to be visited of quantity.
5. method as claimed in claim 4 it is characterised in that
Described io access mode includes: sequential access mode and random access manner;Then
Read pointer according to described memory space matrix and described io access mode, choose described from described memory space matrix
The matrix element to be visited of quantity, specifically includes:
Square when io access mode is io sequential access mode, according to described read pointer, indicated by positioned at described read pointer
The adjacent matrix elements on array element element right side start, and choose the described number arranging from left to right successively from described memory space matrix
The matrix element to be visited of amount;
Square when io access mode is io random access manner, according to described read pointer, indicated by positioned at described read pointer
The adjacent matrix elements of array element element lower section start, and choose the described number arranging from left to right successively from described memory space matrix
The matrix element to be visited of amount.
6. a kind of device of testing magnetic disc array is it is characterised in that include:
Access control policy group determining unit, for determining the access control policy group pre-setting;
Performance element, every in the described access control policy group that access control policy group determining unit determines for being directed to successively
Individual access control policy executes assigned operation, till traveling through whole access control policies;Wherein, described assigned operation bag
Include: from the memory space matrix of setting corresponding to the logical block to be tested for disk array, determine matrix element to be visited
Element;The corresponding relation of each data block being comprised according to the matrix element pre-building and described logical block to be tested, really
Determine and the corresponding data block to be visited of described matrix element to be visited, the described corresponding relation in described performance element specifically wraps
Include: every row matrix element of described memory space matrix, according to putting in order from left to right, corresponds described to be measured successively
That examination logical block is comprised, on memory space address the continuous each data block in multiple data blocks;And in this access control
When the read-write io action type of the tactful defined of system is read operation, judge write data specified by data block to be visited with
Execute whether the data returning after read operation mates according to this access control policy;
Running status determining unit, for executing judgement obtained from described assigned operation according to for each access control policy
As a result, determine whether the running status of described disk array is abnormal.
7. device as claimed in claim 6 is it is characterised in that pre-setting of determining of access control policy group determining unit
Access control policy group is access control policy matrix, and access control policy is the matrix element in access control policy matrix
Element.
8. device as claimed in claim 6 is it is characterised in that be directed to data block indication arbitrarily to be visited in described performance element
Fixed write data is: numbering in described memory space matrix for this matrix element corresponding to data block to be visited.
9. device as claimed in claim 6 is it is characterised in that described access control policy includes io data volume size and io visits
Ask mode;Then
Performance element specifically includes:
Quantity determining module, for the rating data amount of storage size according to io data volume size and individual data block, determination is treated
The quantity of access matrix element;
Choose module, for the read pointer according to described memory space matrix and described io access mode, from described memory space
The matrix element to be visited of the quantity that quantity determining module determines is chosen in matrix.
10. device as claimed in claim 9 is it is characterised in that described io access mode includes: sequential access mode and random
Access mode;
Described performance element specifically for:
Square when io access mode is io sequential access mode, according to described read pointer, indicated by positioned at described read pointer
The adjacent matrix elements on array element element right side start, and choose the described number arranging from left to right successively from described memory space matrix
The matrix element to be visited of amount;
Square when io access mode is io random access manner, according to described read pointer, indicated by positioned at described read pointer
The adjacent matrix elements of array element element lower section start, and choose the described number arranging from left to right successively from described memory space matrix
The matrix element to be visited of amount.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210460783.2A CN103810065B (en) | 2012-11-15 | 2012-11-15 | Method and device for testing disk array |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210460783.2A CN103810065B (en) | 2012-11-15 | 2012-11-15 | Method and device for testing disk array |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103810065A CN103810065A (en) | 2014-05-21 |
CN103810065B true CN103810065B (en) | 2017-01-25 |
Family
ID=50706868
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210460783.2A Active CN103810065B (en) | 2012-11-15 | 2012-11-15 | Method and device for testing disk array |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103810065B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5383192A (en) * | 1992-12-23 | 1995-01-17 | Intel Corporation | Minimizing the likelihood of slip between the instant a candidate for a break event is generated and the instant a microprocessor is instructed to perform a break, without missing breakpoints |
CN1149735A (en) * | 1994-05-25 | 1997-05-14 | 西门子公司 | Service personal computer of modular structure |
-
2012
- 2012-11-15 CN CN201210460783.2A patent/CN103810065B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5383192A (en) * | 1992-12-23 | 1995-01-17 | Intel Corporation | Minimizing the likelihood of slip between the instant a candidate for a break event is generated and the instant a microprocessor is instructed to perform a break, without missing breakpoints |
CN1149735A (en) * | 1994-05-25 | 1997-05-14 | 西门子公司 | Service personal computer of modular structure |
Also Published As
Publication number | Publication date |
---|---|
CN103810065A (en) | 2014-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104115133B (en) | For method, system and the equipment of the Data Migration for being combined non-volatile memory device | |
CN107480039A (en) | The small documents readwrite performance method of testing and device of a kind of distributed memory system | |
Kim et al. | Androbench: Benchmarking the storage performance of android-based mobile devices | |
CN104346291B (en) | The storage method and storage system of a kind of memory | |
CN107704194A (en) | Without lock I O process method and its device | |
CN104850480B (en) | The method and device of high density storage server hard disk performance test | |
CN103959258B (en) | Background reorders --- the preventative wear control mechanism with limited expense | |
CN102306503B (en) | Method and system for detecting false capacity memory | |
CN104346284B (en) | A kind of EMS memory management process and memory management equipment | |
CN106648939A (en) | Method and equipment for inter-process resource sharing | |
CN107122126A (en) | The moving method of data, device and system | |
CN108875061A (en) | A kind of conformance test method and relevant apparatus of distributed file system | |
CN106201623A (en) | Game resource file loading method based on access order sequence and system | |
CN109597771A (en) | Method and apparatus for control hierarchy storage system | |
CN108733326A (en) | A kind of disk processing method and processing device | |
CN106569893A (en) | Traffic control method and equipment | |
CN108984421A (en) | A kind of information cuing method and device | |
CN115757066A (en) | Hard disk performance test method, device, equipment, storage medium and program product | |
CN103810065B (en) | Method and device for testing disk array | |
CN110096228A (en) | Date storage method, data storage device and data-storage system | |
CN105045894A (en) | Cache method and system oriented to distributed sequence list | |
Dong et al. | Rethinking benchmarking for nvm-based file systems | |
CN108121780A (en) | Data Analysis Model determines method and device | |
CN105867848B (en) | A kind of information processing method and hard disk mould group | |
CN106547472A (en) | Storage array management method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |