CN1983201A - Method for testing CPU system performance - Google Patents
Method for testing CPU system performance Download PDFInfo
- Publication number
- CN1983201A CN1983201A CN 200610087282 CN200610087282A CN1983201A CN 1983201 A CN1983201 A CN 1983201A CN 200610087282 CN200610087282 CN 200610087282 CN 200610087282 A CN200610087282 A CN 200610087282A CN 1983201 A CN1983201 A CN 1983201A
- Authority
- CN
- China
- Prior art keywords
- memory
- test
- loop test
- internal memory
- cpu
- 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.)
- Granted
Links
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
A method for testing performance of central processor system includes continuously distributing internal memory module by CPU in utilizing character of using operation system to manage internal memory till all internal memories are exhausted, utilizing existed internal memory unit test means to carry out cyclic test on all internal memory block being distributed with internal memory for realizing to have high acquisition ratio of CPU and internal memory at long time in test course so as to raise quality and effect of performance test.
Description
Technical field
The present invention relates to a kind of method of testing, relate in particular to a kind of central processing unit system performance test methods.
Background technology
At present, along with development of Communication Technique, the veneer kind is more and more, and travelling speed is more and more faster, therefore to the demands for higher performance of veneer.Central processing unit on the veneer (CPU) system generally comprises: CPU, synchronous dynamic random access memory (SDRAM) and flash memory (FLASH), the FLASH here refer in particular to the FLASH that preserves Basic Input or Output System (BIOS) (BIOS).
Wherein, CPU is the core of veneer, is used to carry out the operations of board software appointment.SDRAM is a kind of dynamic storer, and after the veneer power down, the program or the data that are kept at SDRAM will be lost, and CPU can carry out read-write operation to SDRAM apace.FLASH is a kind of storer of electric erasable, even veneer power down, the program or the data that are kept at wherein can not lost yet, and CPU can read the content among the FLASH easily, and the content of preserving in only just can be to FLASH under specific situation is wiped and write operation.Here, SDRAM belongs to internal memory.
The characteristics of above-mentioned two kinds of storeies itself have determined that CPU is slower to the reading and writing data among the FLASH, and very fast to the reading and writing data among the SDRAM.So general board software all is to be stored among the FLASH, after Board Power up carries out necessary initialization, the program of preserving among the FLASH and data are read among the SDRAM moved again, can guarantee that like this veneer moves with fast speeds.
Cpu system is very important concerning veneer, therefore is necessary cpu system is carried out strict performance test, so that find the potential faults that it may exist.
Existing C PU system performance testing method generally all is to improve CPU usage by some programs of operation in cpu system, but never has good way for how improving memory usage, and therefore, in this case, the test effect also is difficult to guarantee.Such as, people often will carry out so-called " strike-machine ", the performance of coming test computer to it after buying new computer.Common method of testing is: some commercial testing softwares that consume very much internal memory of long-play test, or move some big games, allow computer keep under the situation of higher memory usage, the CPU running at full capacity checks that crashing can or can not appear in computer or abnormal conditions such as reset.These method of testings generally all need the very long test duration, and the test effect is difficult to guarantee.
As can be seen from the above description, though the method that cpu system is tested can satisfy the requirement of cpu system performance test to a certain extent in the prior art, but still there is following shortcoming:
1) how the common concern of commercial testing software makes the CPU running at full capacity, but is difficult to keep highest level for the occupancy of internal memory always.
2) commercial testing software needs the computer operating system support and could move, and can not directly be put on the veneer of communication facilities to move.
3) though adopt the mode of running game to seem effective, but thing very time-consuming, effort, in a single day and stopping recreation, the occupancy of CPU and internal memory will obviously reduce, can not guarantee to allow CPU keep long-time running at full capacity, internal memory can not take especially for a long time in a large number always.And this method can be used for the system test of computer, but can not use on the single-board testing of communication facilities.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of cpu system performance test methods, can guarantee CPU and internal memory long term maintenance under a kind of running at full capacity state, improves test mass and effect.
The invention discloses a kind of cpu system performance test methods, this method may further comprise the steps:
The internal memory of A, distribution central processing unit system, the memory block number that record distributes;
The state of B, preservation metadata cache is closed metadata cache;
C, invoke memory unit testing algorithm carry out loop test to all memory blocks that distribute;
D, determine that loop test finishes after, discharge all internal memories that distribute.
The described storage allocation of steps A is: according to identical memory block size storage allocation or different memory block size storage allocations.
The described storage allocation of steps A is: carry out Memory Allocation by the set memory array of pointers, the memory block size that the element number of described internal memory array of pointers adopts during by memory size and storage allocation is determined.
After finishing, the described definite loop test of step D further comprises: the state of restore data buffer memory.
The described internal storage location testing algorithm of step C further comprises: the state of the buffer memory of holding instruction, OPEN buffer memory before all memory blocks that distribute are carried out loop test.
After the described definite loop test of step D finishes, further comprise: the state that recovers Instructions Cache.
The described definite loop test of step D ends up being: whether cycle index or loop test time according to definition arrive to determine whether loop test finishes.
The described internal storage location testing algorithm of step C includes but not limited to: five-step approach, nine footworks or increment penalty method.
Described central processing unit system is: computer main board central processing unit system or communication equipment veneer central processing unit system.
This shows, in the present invention, the characteristics that cpu system can utilize the operating system management internal memory are the storage allocation buffer zone constantly, idle internal memory is constantly reduced, thereby make the CPU of system can keep high occupancy for a long time, and realized the high utilization rate of internal memory, thereby greatly improved the test mass and the effect of cpu system.
Cpu system method of testing of the present invention has range of application very widely, comprise: the cpu system performance test of various veneers, carry CPU veneer environmental test and aging in test, computer system test, be used to produce the busiest state of cpu system, the condition of creation reproduction problem and on-line testing or the routine test of carrying out cpu system in the system testing process.
Method of testing of the present invention can promote the effect of aging middle test, make cpu system in ageing process, keep running at full capacity always, can improve the aging quality of veneer, that is to say, can shorten the time that reaches identical aging effect, thereby reach the purpose that reduces aging cost.
Method of testing of the present invention can also be by distributing the memory block that surpasses the internal memory of single board size, and realization is to the hard disk of the veneer of computer main board and similar computer main board or the test of CF card.
Description of drawings
Fig. 1 is the process flow diagram of cpu system performance test methods of the present invention;
Fig. 2 is the process flow diagram of a preferred embodiment of the inventive method shown in Figure 1;
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with drawings and the specific embodiments.
Core concept of the present invention is: cpu system can utilize the mechanism of the operating system management internal memory that self has, storage allocation buffer zone constantly, idle internal memory is reduced, and the memory block that utilizes existing internal storage location testing algorithm loop test to be assigned to, thereby make that the CPU of system and internal memory can keep high occupancy for a long time when carrying out the cpu system test.
Referring to Fig. 1, Fig. 1 is the process flow diagram of cpu system performance test methods of the present invention.As shown in Figure 1, this flow process may further comprise the steps:
Here, described distribution can be carried out Memory Allocation by definition internal memory array of pointers or alternate manner.
In this step, may further include: the state of the buffer memory of holding instruction, OPEN buffer memory then.Here, the purpose of OPEN buffer memory is in order to improve test speed, because Instructions Cache can be used for storing test instruction, and more faster from the speed of Instructions Cache read test instruction than directly from the internal memory of cpu system, reading.
Wherein, described internal storage location testing algorithm can be five-step approach, nine footworks or increment penalty method, also can be other internal storage location testing algorithm.How concrete internal storage location testing algorithm realizes it being those skilled in the art's known technology, repeats no more here.
Whether loop test finishes and can judge by the definition cycle index in this step, when reaching defined cycle index, judges that loop test finishes.Just can reach the purpose of adjusting the test duration by adjusting the loop test number of times.Extend the test duration if desired, can realize by increasing cycle index.In theory, the test duration can reach infinitely great.
Judge whether loop test finishes also can directly judge by setting the loop test time, the loop test that sets when arrival judges that loop test finishes during the time.
After loop test finishes, may further include the step of the state of the state of restore data buffer memory and Instructions Cache before the step 106.
Referring to Fig. 2, Fig. 2 is the process flow diagram of a preferred embodiment of the inventive method shown in Figure 1.As shown in Figure 2, this flow process may further comprise the steps:
The situation that with the memory size is 1G is an example: supposing that memory size is total up to 1G, is 1024 elements according to memory size definition internal memory array of pointers, distributes 1M then at every turn, can distribute the internal memory of 1G altogether, so just can guarantee internal memory is all distributed.
But, if have only the internal memory of 1G in the cpu system, and the test procedure that is moving has taken a part, therefore, unlikely the internal memory with 1G all distributes, promptly when the big or small summation of all memory blocks that distributed is less than 1G, just can not be redistributed to memory block, just can think that internal memory exhausts this moment.After confirming that internal memory has exhausted, the memory block number that record distributes.
Closing metadata cache is not have in the write memory unit in order to prevent test data from just writing metadata cache, guarantees the validity of memory test; The OPEN buffer memory is in order to improve the speed of reading command, to improve testing efficiency before memory test.
The described Memory Allocation mode of step 202 in the foregoing description is that the purpose of doing like this is that all internal memories all are assigned to, and conveniently carries out loop test according to the memory block of identical size storage allocation successively.But be not to adopt this mode to carry out Memory Allocation, can realize the distribution of internal memory by memory block not of uniform size yet, as long as the mode that all internal memories all can be assigned to can adopt.
Cpu system performance test methods provided by the invention can also be applied to communication facilities environmental test and aging in.The communication facilities environmental test is meant under the condition that high temperature or temperature cycles change, and the cpu system of communication facilities is carried out performance test, and can the checking cpu system satisfy the requirement of working under rugged surroundings.
Aging being meant of communication facilities powers on in hot environment the veneer of communication facilities for a long time, and veneer is carried out environmental stress screening.If in veneer aging, adopt method of testing of the present invention to allow CPU and internal memory in the ageing process keep running at full capacity always, in same digestion time, can improve the aging quality of veneer so, or under same aging quality, can shorten digestion time.Therefore adopt cpu system method of testing of the present invention, can improve aging effect.
Cpu system performance test methods of the present invention can be applied in the test of veneer of computer main board and similar computer main board.This type of veneer generally all has CPU, internal memory, hard disk or CF card, and hard disk or CF card can be set to the virtual memory of veneer.Can use method of testing of the present invention not only can test to this class veneer, can also stick into the row test the hard disk and the CF of veneer to CPU and internal memory.
Such as in the step 201 of embodiment shown in Figure 2, definition surpasses the array of pointers of internal memory of single board size, suppose that memory size is total up to 1G, definition internal memory array of pointers is 2048 elements, distribute 1M then at every turn, the internal memory that can distribute 2G altogether, the memory block that surpasses 1G that distributes like this is exactly to have pointed to hard disk or the CF card that virtual memory is provided for veneer.When utilizing the internal storage location method of testing that these memory blocks are carried out loop test, just realized test to hard disk or CF card.
Utilize method of testing of the present invention can also carry out the on-line testing or the routine test of cpu system.As computer in normal operation, move Windows operating system, VC++ supervisor on it, at this moment can utilize method of testing provided by the invention to carry out the cpu system test.In this case, computer can't reset or crash, and the speed when just moving other program descends, and significant reaction postpones.After test finished, system can recover normal operating conditions automatically.Therefore,, may influence system performance if utilize cpu system method of testing provided by the invention to carry out on-line testing, but can interrupting service, so can be with cpu system method of testing of the present invention as a kind of typical on-line testing method.
In addition, method of testing of the present invention also can be applied to the routine test to cpu system, promptly can utilize method of testing provided by the invention regularly cpu system to be tested.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1, a kind of central processing unit system performance test methods is characterized in that, this method may further comprise the steps:
The internal memory of A, distribution central processing unit system, the memory block number that record distributes;
The state of B, preservation metadata cache is closed metadata cache;
C, invoke memory unit testing algorithm carry out loop test to all memory blocks that distribute;
D, determine that loop test finishes after, discharge all internal memories that distribute.
2, the method for claim 1 is characterized in that, the described storage allocation of steps A is: according to identical memory block size storage allocation or different memory block size storage allocations.
3, method as claimed in claim 1 or 2, it is characterized in that, the described storage allocation of steps A is: carry out Memory Allocation by the set memory array of pointers, the memory block size that the element number of described internal memory array of pointers adopts during by memory size and storage allocation is determined.
4, method as claimed in claim 1 or 2 is characterized in that, after the described definite loop test of step D finishes, further comprises: the state of restore data buffer memory.
5, method as claimed in claim 1 or 2 is characterized in that, the described invoke memory unit testing of step C algorithm further comprises: the state of the buffer memory of holding instruction, OPEN buffer memory before all memory blocks that distribute are carried out loop test.
6, method as claimed in claim 5 is characterized in that, after the described definite loop test of step D finishes, further comprises: the state that recovers Instructions Cache.
7, method as claimed in claim 1 or 2 is characterized in that, the described definite loop test of step D ends up being: whether cycle index or loop test time according to definition arrive to determine whether loop test finishes.
8, method as claimed in claim 1 or 2 is characterized in that, the described internal storage location testing algorithm of step C includes but not limited to: five-step approach, nine footworks or increment penalty method.
9, the method for claim 1 is characterized in that, described central processing unit system is: computer main board central processing unit system or communication equipment veneer central processing unit system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100872829A CN100478900C (en) | 2006-06-14 | 2006-06-14 | Method for testing CPU system performance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100872829A CN100478900C (en) | 2006-06-14 | 2006-06-14 | Method for testing CPU system performance |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1983201A true CN1983201A (en) | 2007-06-20 |
CN100478900C CN100478900C (en) | 2009-04-15 |
Family
ID=38165754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100872829A Expired - Fee Related CN100478900C (en) | 2006-06-14 | 2006-06-14 | Method for testing CPU system performance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100478900C (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544098A (en) * | 2012-07-10 | 2014-01-29 | 百度在线网络技术(北京)有限公司 | Method and device for testing pressure |
CN108781170A (en) * | 2016-03-03 | 2018-11-09 | 华为技术有限公司 | A kind of configuration device and method |
CN111628902A (en) * | 2019-02-28 | 2020-09-04 | 腾讯科技(深圳)有限公司 | Rate testing method and apparatus, electronic device, and computer-readable storage medium |
-
2006
- 2006-06-14 CN CNB2006100872829A patent/CN100478900C/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544098A (en) * | 2012-07-10 | 2014-01-29 | 百度在线网络技术(北京)有限公司 | Method and device for testing pressure |
CN103544098B (en) * | 2012-07-10 | 2017-12-12 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus of pressure test |
CN108781170A (en) * | 2016-03-03 | 2018-11-09 | 华为技术有限公司 | A kind of configuration device and method |
CN108781170B (en) * | 2016-03-03 | 2020-12-08 | 华为技术有限公司 | Configuration device and method |
CN111628902A (en) * | 2019-02-28 | 2020-09-04 | 腾讯科技(深圳)有限公司 | Rate testing method and apparatus, electronic device, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN100478900C (en) | 2009-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Baek et al. | Refresh now and then | |
CN101236530B (en) | High speed cache replacement policy dynamic selection method | |
Cooper-Balis et al. | Buffer-on-board memory systems | |
CN103229149B (en) | Use layered interrupts management compression memorizer | |
US7484074B2 (en) | Method and system for automatically distributing real memory between virtual memory page sizes | |
Ye et al. | Prototyping a hybrid main memory using a virtual machine monitor | |
CN102306503B (en) | Method and system for detecting false capacity memory | |
CN103229136B (en) | Disk array brush method and disk array brush device | |
Guo et al. | Parallelism and garbage collection aware I/O scheduler with improved SSD performance | |
CN111324303B (en) | SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium | |
US8078890B2 (en) | System and method for providing memory performance states in a computing system | |
Beckmann et al. | Energy-efficient sorting using solid state disks | |
CN108710583A (en) | Management method, device, computer equipment and the medium in SSD write buffers area | |
CN103064792A (en) | Method and device for writing data | |
Kim et al. | CAUSE: Critical application usage-aware memory system using non-volatile memory for mobile devices | |
CN110888592B (en) | Request scheduling method and system based on delay SSD system intelligent parallel resource utilization | |
CN109491613A (en) | A kind of continuous data protection storage system and its storage method using the system | |
Kim et al. | Charge-aware DRAM refresh reduction with value transformation | |
Ye et al. | Energy-efficient storage in virtual machine environments | |
CN100478900C (en) | Method for testing CPU system performance | |
US20120084531A1 (en) | Adjusting memory allocation of a partition using compressed memory paging statistics | |
CN101729421A (en) | Storage method and device based on time division multiplex | |
CN103927203A (en) | Computer system and control method | |
Zhang et al. | Quantifying server memory frequency margin and using it to improve performance in hpc systems | |
US10365997B2 (en) | Optimizing DRAM memory based on read-to-write ratio of memory access latency |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090415 Termination date: 20160614 |