CN1921019A - Method for testing storage by data compressing treatment - Google Patents

Method for testing storage by data compressing treatment Download PDF

Info

Publication number
CN1921019A
CN1921019A CN 200510092901 CN200510092901A CN1921019A CN 1921019 A CN1921019 A CN 1921019A CN 200510092901 CN200510092901 CN 200510092901 CN 200510092901 A CN200510092901 A CN 200510092901A CN 1921019 A CN1921019 A CN 1921019A
Authority
CN
China
Prior art keywords
data
sample data
compression
memory
testing
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
CN 200510092901
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN 200510092901 priority Critical patent/CN1921019A/en
Publication of CN1921019A publication Critical patent/CN1921019A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention relates to a method for testing memory via compressing data, which uses compression algorism to test the memory, wherein it comprises: first dividing the memory into at least three blocks as initial memory block, buffer memory block and target memory block; then storing the sample data into initial memory block; using compression algorism to compress the sample data while the buffer data is stored in buffer memory block; storing the compressed sample data into target memory block; at last, decompressing the compressed sample data; compressing decompressed sample data with original compress data, to judge if the memory has mistake.

Description

By the method for data compression process with testing memory
Technical field
The present invention relates to a kind of method of testing memory, particularly a kind of by the method for data compression process with testing memory.
Background technology
The algorithm of testing memory has many kinds, and the fundamental purpose of these algorithms is the situations that may make mistakes for emulation memory, to demonstrate when the machine run mistake that the storer in the use may occur.
General testing algorithm is when single-threaded operation, give the load and the insufficient pressure of storer, therefore can't test out when storer and be under the high pressure, the mistake that can occur, common algorithm is in some specific sample program write store, then read checking again, these algorithms do not carry out repeatedly readwrite tests to storer, it is high and calculated amount is less to give the load of storer, so when single-threaded operation, give the insufficient pressure of storer and central processing unit, just can't test out under high pressure conditions whether mistake can occur.
The mode of existing testing memory has been given the tester prompting, come testing memory if adopt emulation to carry out image file, just can learn from process whether storer is wrong, the back is found by analysis, compression process in the implementation is exerted pressure bigger to storer, this is worth the direction of inquiring into for one of researchist.
Summary of the invention
It is a kind of by the method for data compression process with testing memory that technical matters to be solved by this invention is to provide, because compression process can be carried out the repeated multiple times read-write to certain address in most of storer, so storer is applied big pressure, the validity of storer when simultaneous verification is read and write repeatedly is to solve the existing in prior technology problem.
Therefore, for achieving the above object, disclosed in this invention a kind of by the method for data compression process with testing memory, utilize compression algorithm, to the storer test of exerting pressure, the method comprises the following step: storer is divided at least three partly: an initial memory block, a memory buffer piece and a target memory block; Compressible sample data is deposited in the start memory piece; Utilize compression algorithm, sample data is carried out compressed action, in the memory buffer piece, store the middle transition data of the sample data in the compression process; Sample data after compression finished is deposited in the target memory block; The action that the sample data that leaves in after the compression of target memory block is decompressed; And sample data after the contrast decompression and the preceding sample data of compression.
Adopt provided by the invention by the method for data compression process with testing memory, utilize compression algorithm, data in the storer are carried out the compression and decompression test, and before the checking compression with decompression after data whether consistent, because compression process can be carried out the repeated multiple times read-write to certain address in most of storer, so can apply big pressure, can verify the validity of storer when reading and writing repeatedly simultaneously, come testing memory whether wrong storer.
Below in embodiment, be described in detail detailed features of the present invention and advantage.
Description of drawings
Fig. 1 is of the present invention by the method flow diagram of data compression process with testing memory.
Wherein, Reference numeral:
Step 110 is divided begin at least together memory block, a memory buffer piece and a target memory block with storer
Step 120 is deposited in the start memory piece with sample data;
Step 130 is carried out compressed action by compression algorithm with sample data, stores the middle transition data of the sample data in the compression process in the memory buffer piece;
Sample data after step 140 is finished compression is deposited in target memory block;
Step 150 will be deposited in the action that the sample data after the compression of target memory block decompresses;
Whether the preceding sample data of the sample data after step 160 contrast decompresses and compression is consistent;
Step 170 judges that storer is normal
Step 180 judges that storer is wrong
Step 190 changes the division position of start memory piece, memory buffer piece and target memory block, and repeats whole testing procedures
Embodiment
For making purpose of the present invention, structure, feature and function thereof there are further understanding, cooperate embodiment to be described in detail as follows now.Above about content of the present invention explanation and the explanation of following embodiment in order to demonstration with explain principle of the present invention, and provide claim of the present invention further to explain.
As shown in Figure 1, utilize compression algorithm for of the present invention by the method flow diagram of data compression process with testing memory, (Lempel-Ziv 77 as blue Bo-Li Fu 77; Lz77) algorithm is to the storer test of exerting pressure.
At first, storer is divided begin at least together memory block, a memory buffer piece and a target memory block (step 110), wherein the start memory piece is taken as identical with the size of target memory block, owing to can't predict ratio of compression, so suppose the compression result of worst be for ratio of compression be 1, then, sample data is deposited in the start memory piece (step 120), this sample data is necessary for compressible data.
By compression algorithm, sample data is carried out compressed action, in the memory buffer piece, store the middle transition data (step 130) of the sample data in the compression process, the sample data after again compression being finished leaves target memory block (step 140) in.
Afterwards, with the action (step 150) that the sample data of depositing in after the compression of target memory block decompresses, last, whether the preceding sample data of the sample data after contrast decompresses and compression consistent (step 160), when both data are inconsistent, judge storer wrong (step 180); And when both data consistents, judge storer normal (step 170).
After the step of judging storer normal (step 170), continue to change the division position of start memory piece, memory buffer piece and target memory block, and repeat whole testing procedures (step 190), this method of testing can effectively test out mistake.
The present invention utilizes compression algorithm, and the data in the storer are carried out compression and decompression tests, and before the checking compression with decompression after data whether consistent, come testing memory whether wrong storer is applied bigger pressure.
Because, several bytes in the sample data are after overcompression, can write repeatedly in certain several position (bit) of a certain byte (byte), can read a byte earlier before writing at every turn, revise several position after, write once more in this byte, thereby form the test of reading and writing certain storage address repeatedly, exert pressure to storer, similarly, the process of decompression also is a similar phenomenon.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (7)

1. one kind by the method for data compression process with testing memory, utilizes a compression algorithm, to the storer test of exerting pressure, it is characterized in that this method comprises the following step:
This storer is divided begin at least together memory block, a memory buffer piece and a target memory block;
One sample data is deposited in this start memory piece;
By this compression algorithm, this sample data is carried out compressed action, in this memory buffer piece, store the middle transition data of this sample data in the compression process;
This sample data after compression finished is deposited in this target memory block;
The action that this sample data of depositing in after the compression of this target memory block is decompressed; And
This sample data after contrast decompresses and this preceding sample data of compression.
2. according to claim 1ly it is characterized in that the step of this sample data before this sample data after this contrast decompresses and the compression is when both data are inconsistent, judges that this storer is wrong by the method for data compression process with testing memory.
3. according to claim 1ly it is characterized in that the step of this sample data before this sample data after this contrast decompresses and the compression when both data consistents, judges that this storer is normal by the method for data compression process with testing memory.
4. according to claim 1 by the method for data compression process with testing memory, it is characterized in that, after this sample data after this contrast decompresses and the step of this sample data before the compression, also include one and change the division position of this start memory piece, this memory buffer piece and this target memory block, and repeat the step of whole testing procedures.
5. according to claim 1ly it is characterized in that by the method for data compression process this sample data is compressible data with testing memory.
6. according to claim 1ly it is characterized in that by the method for data compression process this compression algorithm is blue Bo-Li Fu 77 algorithms with testing memory.
7. according to claim 1ly it is characterized in that by the method for data compression process with testing memory this start memory piece is big or small identical with this target memory block, is 1 situation to avoid ratio of compression.
CN 200510092901 2005-08-24 2005-08-24 Method for testing storage by data compressing treatment Pending CN1921019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510092901 CN1921019A (en) 2005-08-24 2005-08-24 Method for testing storage by data compressing treatment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510092901 CN1921019A (en) 2005-08-24 2005-08-24 Method for testing storage by data compressing treatment

Publications (1)

Publication Number Publication Date
CN1921019A true CN1921019A (en) 2007-02-28

Family

ID=37778704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510092901 Pending CN1921019A (en) 2005-08-24 2005-08-24 Method for testing storage by data compressing treatment

Country Status (1)

Country Link
CN (1) CN1921019A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678055A (en) * 2012-09-14 2014-03-26 成都林海电子有限责任公司 Performance testing method for storage space of PCIE bus device
CN106648955A (en) * 2016-11-15 2017-05-10 杭州华为数字技术有限公司 Compression method and relevant device
CN108039190A (en) * 2017-12-15 2018-05-15 北京京存技术有限公司 A kind of test method and device
CN108650501A (en) * 2018-03-29 2018-10-12 深圳市九洲电器有限公司 A kind of method, apparatus and electronic equipment of test stability of set-top box
CN111341374A (en) * 2018-12-18 2020-06-26 炬芯(珠海)科技有限公司 Memory test method and device and readable memory
CN113035260A (en) * 2021-03-26 2021-06-25 深圳市晶存科技有限公司 Method and system for testing dynamic random access memory

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678055A (en) * 2012-09-14 2014-03-26 成都林海电子有限责任公司 Performance testing method for storage space of PCIE bus device
CN106648955A (en) * 2016-11-15 2017-05-10 杭州华为数字技术有限公司 Compression method and relevant device
CN106648955B (en) * 2016-11-15 2020-01-31 杭州华为数字技术有限公司 Compression method and related device
CN108039190A (en) * 2017-12-15 2018-05-15 北京京存技术有限公司 A kind of test method and device
CN108650501A (en) * 2018-03-29 2018-10-12 深圳市九洲电器有限公司 A kind of method, apparatus and electronic equipment of test stability of set-top box
CN111341374A (en) * 2018-12-18 2020-06-26 炬芯(珠海)科技有限公司 Memory test method and device and readable memory
CN111341374B (en) * 2018-12-18 2022-03-15 炬芯科技股份有限公司 Memory test method and device and readable memory
CN113035260A (en) * 2021-03-26 2021-06-25 深圳市晶存科技有限公司 Method and system for testing dynamic random access memory

Similar Documents

Publication Publication Date Title
CN1921019A (en) Method for testing storage by data compressing treatment
CN107632776B (en) Data storage device for compressing input data
US8407378B2 (en) High-speed inline data compression inline with an eight byte data path
CN107947799B (en) Data compression method and device
US7733721B2 (en) Semiconductor testing device and method of testing semiconductor memory
US20120136842A1 (en) Partitioning method of data blocks
US10467222B1 (en) Recovering compressed data to reduce data loss
CN111949621A (en) Scene switching-based file compression storage method and terminal
CN1959636A (en) Method for booting embedded type device
US5905986A (en) Highly compressible representation of test pattern data
CN1139883C (en) Intelligent compression method for file of computer
CN110888851B (en) Method and device for creating and decompressing compressed file, and electronic and storage device
CN107577549A (en) It is a kind of to store the method for testing for deleting function again
CN106802837B (en) Method and device for updating error detection and correcting ECC code
US9952771B1 (en) Method and system for choosing an optimal compression algorithm
CN103810297A (en) Writing method, reading method, writing device and reading device on basis of re-deleting technology
CN109558086B (en) Data reading method, system and related components
CN106528436B (en) Data storage device and data maintenance method thereof
US7532526B2 (en) Method and system for testing address lines
CN101996660B (en) Data compression/decompression method, data decompression method, and optical disc drive utilizing the method
CN113688096A (en) Storage method, storage device and storage system
CN112965664A (en) Data compression method and related device
CN113051238A (en) Processing method and device
CN107491333B (en) Method for generating and burning software mirror image on intelligent device
CN111767171B (en) File backup and restore method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication