CN106649041A - Device and method for automatically testing storage caching mode - Google Patents

Device and method for automatically testing storage caching mode Download PDF

Info

Publication number
CN106649041A
CN106649041A CN201611227027.XA CN201611227027A CN106649041A CN 106649041 A CN106649041 A CN 106649041A CN 201611227027 A CN201611227027 A CN 201611227027A CN 106649041 A CN106649041 A CN 106649041A
Authority
CN
China
Prior art keywords
mode
module
cache
cache mode
conversion module
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
CN201611227027.XA
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 CN201611227027.XA priority Critical patent/CN106649041A/en
Publication of CN106649041A publication Critical patent/CN106649041A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a device for automatically testing a storage caching mode. The device comprises a monitoring module, a mode conversion module and a time generating module, wherein the monitoring module is connected to the mode conversion module and the time generating module respectively. The invention further discloses a method for automatically testing the storage caching mode. The method comprises the steps that the monitoring module tests a caching mode of current storage and inputs state information of the caching mode to the mode conversion module; the mode conversion module judges a next caching mode according to the state information of the caching mode through a mode conversion method; the mode conversion module converts the caching mode of the current storage into the next caching mode; the time generating module generates time intervals, and after the time intervals are out, the monitoring module is triggered to test the next caching mode. The device and method for automatically testing the storage caching mode solve the problem of the storage caching mode that testing needs to be manually switched, and thus the efficiency and the cover degree of storage testing are improved.

Description

Automatically the device and method of memory buffers pattern is tested
Technical field
The present invention relates to server storage technical field, more particularly to a kind of device of automatic test memory buffers pattern And method.
Background technology
Storage is exactly to store data into certain by taking reasonable, safe and effective mode according to different applied environments On a little media and effectively access is can guarantee that, can generally include the implication of two aspects:On the one hand it is that data are interim Or long-term resident physical media;On the other hand, it is mode or the behavior for ensureing the storage of data complete safety.
With the swift and violent growth of information data amount, the growth of data and value become more and more important, thus to store performance, can Put forward higher requirement by property.In order to meet the requirements at the higher level of storage performance, the effect cached in storage control is not allowed little Look, various cache modes are devised in current storage system, to reach the performance and data reliability that more optimize.But storage is slow Deposit pattern various, carry out manual test travel time length, switching complexity, in different business application, the change of memory module is right The performance of storage, stability suffer from strong influence, and the security to data has very big impact, to data consistency Greatly test is there is also, so the test of memory buffers pattern has vital meaning for the test of storage system Justice.
The content of the invention
It is an object of the present invention to provide a kind of device and method of automatic test memory buffers pattern, solves memory buffers mould The problem of formula manual switching test, so as to improve the efficiency and coverage of storage test.
To achieve these goals, the present invention adopts following technical scheme:
A kind of device of automatic test memory buffers pattern, including:
Monitoring module, for detecting currently stored cache mode;
Mode conversion module, for switching cache mode;
Time generation module, for setting the time interval of cache mode;
The monitoring module is connected respectively with mode conversion module and time generation module.
Preferably, also include:Predefined module, for predefining cache mode status information and patten transformation mode.
Preferably, mode conversion module includes judge module and modular converter;
Judge module, for the cache mode status information being input into according to monitoring module, judges next according to patten transformation mode Plant cache mode;
Modular converter, for currently stored cache mode to be converted to into a kind of lower cache mode.
The present invention also provides a kind of method of automatic test memory buffers pattern, comprises the following steps:
Monitoring module detects currently stored cache mode, and cache mode status information is inputed to into mode conversion module;
Mode conversion module is according to cache mode status information, a kind of cache mode under judging according to patten transformation mode;
Currently stored cache mode is converted to a kind of lower cache mode by mode conversion module;
Time generation module generates time interval;
After interval time arrives, triggering monitoring module detects a kind of above-mentioned lower cache mode.
Preferably, the patten transformation mode includes random transition mode or order conversion regime.
Preferably, monitoring module detects currently stored cache mode, and cache mode status information is inputed to into pattern Before modular converter, also include:Predefined cache mode status information and patten transformation mode.
Compared with prior art, the present invention has advantages below:
1. the present invention detects currently stored cache mode by monitoring module, and cache mode status information is inputed to into pattern Modular converter, mode conversion module according to the cache mode status information of present mode, and under judging according to patten transformation mode Currently stored cache mode is converted to a kind of lower cache mode by a kind of cache mode, mode conversion module, and the time generates mould Block generates time interval, after interval time arrives, continues triggering monitoring module and cache mode status information is inputed to into patten transformation Module.Automatically all cache modes of traversal of the invention storage, and switch between various cache modes, it is ensured that all cachings of storage The efficient test of pattern, improves the efficiency and coverage of storage test, reduces the time cost of tester.
2. present invention achieves testing memory buffers pattern automatically, it is not necessary to human intervention, testing efficiency is improve, reduced Human cost.
Description of the drawings
Fig. 1 is a kind of one of structural representation of device of automatic test memory buffers pattern of the present invention;
Fig. 2 is a kind of one of schematic flow sheet of method of automatic test memory buffers pattern of the present invention;
Fig. 3 is the two of a kind of structural representation of the device of automatic test memory buffers pattern of the present invention;
Fig. 4 is the two of a kind of schematic flow sheet of the method for automatic test memory buffers pattern of the present invention.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the present invention is described in further detail:
Embodiment one:A kind of device of automatic test memory buffers pattern of the present invention as shown in figure 1, including predefined module 11, Monitoring module 12, judge module 13, modular converter 14 and time generation module 15;The predefined module 11 successively order and prison Control module 12, judge module 13 are connected with modular converter 14, time generation module 15 respectively with modular converter 14 and monitor mould Block 12 is connected.
Predefined module 11 is used to predefine cache mode status information and patten transformation mode;Monitoring module 12 is used to examine Currently stored cache mode is surveyed, and the cache mode status information of the pattern is inputed to into judge module 13;Judge module 13 For the cache mode status information being input into according to monitoring module 12, judge lower a kind of slow according to predefined patten transformation mode Deposit pattern;Modular converter 14 is used to for currently stored cache mode to be converted to a kind of lower cache mode;Time generation module 15 For setting the time interval of cache mode.
Embodiment two:A kind of method of automatic test memory buffers pattern of the present invention is as shown in Fig. 2 comprise the following steps:
Step S201, predefines cache mode status information and patten transformation mode, and patten transformation mode can be turned using order Change mode or random transition mode.
Step S202, monitoring module detects currently stored cache mode, and corresponding cache mode status information is defeated Enter to mode conversion module.
Step S203, all cache modes of mode conversion module write storage, is respectively defined as first mode, the second mould Formula, the 3rd pattern etc.;Mode conversion module judges next according to the cache mode status information of input according to patten transformation mode Cache mode is planted, for example, a kind of lower cache mode is first mode.
Currently stored cache mode is converted to first mode by step S204, mode conversion module.
Step S205, time generation module automatically generates a time interval, such as 10s, the time interval can be controlled in Within the scope of one, can change, such as 0~60s.
Step S206, first mode is kept after 10s, continues to trigger monitoring module detection first mode, and by first mode Status information input to mode conversion module.
Step S207, mode conversion module judges next according to the status information of first mode according to patten transformation mode Cache mode is planted, for example, a kind of lower cache mode is second mode;
First mode is converted to second mode by step S208, mode conversion module;The rest may be inferred.
All cache modes of storage are preserved in mode conversion module, the present invention can automatically travel through all caching moulds Formula, mode conversion module automatically switches to a kind of lower cache mode and carries out according to cache mode status information and patten transformation mode Test, so as to improve the testing efficiency and coverage of memory buffers pattern.
Embodiment three:The device of another kind of memory buffers pattern of test automatically of the invention is as shown in figure 3, including monitoring module 31st, mode conversion module 32 and time generation module 33;The monitoring module 31 is given birth to respectively with mode conversion module 32 and time It is connected into module 33.
Monitoring module 31 is used to detect currently stored cache mode, and the cache mode status information of the pattern is input into To mode conversion module 32;All cache modes of the write storage of mode conversion module 32, read the slow of the input of monitoring module 31 Mode state information is deposited, and switches cache mode;Time generation module 33 is used to set the time interval of cache mode.
Example IV:The method of another kind of memory buffers pattern of test automatically of the invention is as shown in figure 4, including following step Suddenly:
Step S401, monitoring module detects currently stored cache mode, and cache mode status information is inputed to into pattern turn Mold changing block;
Step S402, mode conversion module judges a kind of lower caching according to cache mode status information according to patten transformation mode Pattern;
Currently stored cache mode is converted to a kind of lower cache mode by step S403, mode conversion module;
Step S404, time generation module generates time interval;
Step S405, after interval time arrives, triggering monitoring module detects a kind of above-mentioned lower cache mode.
The present invention is cut by mode conversion module automatic switchover cache mode, the automatic traversal for realizing various cache modes Change, execution efficiency is high, coverage is high.
Illustrated above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (6)

1. a kind of device of automatic test memory buffers pattern, it is characterised in that include:
Monitoring module, for detecting currently stored cache mode;
Mode conversion module, for switching cache mode;
Time generation module, for setting the time interval of cache mode;
The monitoring module is connected respectively with mode conversion module and time generation module.
2. the device of automatic test memory buffers pattern according to claim 1, it is characterised in that also include:
Predefined module, for predefining cache mode status information and patten transformation mode.
3. the device of automatic test memory buffers pattern according to claim 2, it is characterised in that mode conversion module bag Include judge module and modular converter;
Judge module, for the cache mode status information being input into according to monitoring module, judges next according to patten transformation mode Plant cache mode;
Modular converter, for currently stored cache mode to be converted to into a kind of lower cache mode.
4. a kind of method of automatic test memory buffers pattern, it is characterised in that comprise the following steps:
Monitoring module detects currently stored cache mode, and cache mode status information is inputed to into mode conversion module;
Mode conversion module is according to cache mode status information, a kind of cache mode under judging according to patten transformation mode;
Currently stored cache mode is converted to a kind of lower cache mode by mode conversion module;
Time generation module generates time interval;
After interval time arrives, triggering monitoring module detects a kind of above-mentioned lower cache mode.
5. the method for automatic test memory buffers pattern according to claim 4, it is characterised in that the patten transformation side Formula includes random transition mode or order conversion regime.
6. the method for automatic test memory buffers pattern according to claim 4, it is characterised in that monitoring module detection is worked as The cache mode of front storage, and cache mode status information is inputed to before mode conversion module, also include:Predefined caching Mode state information and patten transformation mode.
CN201611227027.XA 2016-12-27 2016-12-27 Device and method for automatically testing storage caching mode Pending CN106649041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611227027.XA CN106649041A (en) 2016-12-27 2016-12-27 Device and method for automatically testing storage caching mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611227027.XA CN106649041A (en) 2016-12-27 2016-12-27 Device and method for automatically testing storage caching mode

Publications (1)

Publication Number Publication Date
CN106649041A true CN106649041A (en) 2017-05-10

Family

ID=58831458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611227027.XA Pending CN106649041A (en) 2016-12-27 2016-12-27 Device and method for automatically testing storage caching mode

Country Status (1)

Country Link
CN (1) CN106649041A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114630175A (en) * 2022-03-14 2022-06-14 网络通信与安全紫金山实验室 Cache management method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236530A (en) * 2008-01-30 2008-08-06 清华大学 High speed cache replacement policy dynamic selection method
US7421540B2 (en) * 2005-05-03 2008-09-02 International Business Machines Corporation Method, apparatus, and program to efficiently calculate cache prefetching patterns for loops
CN101706740A (en) * 2009-10-28 2010-05-12 太仓市同维电子有限公司 Cache mode self-adaptive system and method for data interaction
CN103150264A (en) * 2013-01-18 2013-06-12 浪潮电子信息产业股份有限公司 Extension Cache Coherence protocol-based multi-level consistency simulation domain verification and test method
WO2014094306A1 (en) * 2012-12-21 2014-06-26 华为技术有限公司 Method and device for setting working mode of cache

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421540B2 (en) * 2005-05-03 2008-09-02 International Business Machines Corporation Method, apparatus, and program to efficiently calculate cache prefetching patterns for loops
CN101236530A (en) * 2008-01-30 2008-08-06 清华大学 High speed cache replacement policy dynamic selection method
CN101706740A (en) * 2009-10-28 2010-05-12 太仓市同维电子有限公司 Cache mode self-adaptive system and method for data interaction
WO2014094306A1 (en) * 2012-12-21 2014-06-26 华为技术有限公司 Method and device for setting working mode of cache
CN104321754A (en) * 2012-12-21 2015-01-28 华为技术有限公司 Method and device for setting working mode of Cache
CN103150264A (en) * 2013-01-18 2013-06-12 浪潮电子信息产业股份有限公司 Extension Cache Coherence protocol-based multi-level consistency simulation domain verification and test method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114630175A (en) * 2022-03-14 2022-06-14 网络通信与安全紫金山实验室 Cache management method, device, equipment and storage medium
CN114630175B (en) * 2022-03-14 2023-08-22 网络通信与安全紫金山实验室 Cache management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104459564A (en) Power source burr signal detecting circuit and method preventing power source attack
CN106649041A (en) Device and method for automatically testing storage caching mode
CN109359729B (en) System and method for realizing data caching on FPGA
CN106406493A (en) Electronic apparatus capable of reducing power consumption and method for reducing power consumption of the electronic apparatus
CN109064042A (en) A kind of violated electrical testing method of dormitory
CN112163298B (en) Method, equipment and storage medium for analyzing internal environment condition of serious accident pressure relief valve
CN109522615A (en) The zero sequence of relay protection of power system is shoved tolerance appraisal procedure and device
CN103402079A (en) VW (Video Wall)-based intelligent tracking, storing and displaying method for abnormal events
CN103197981B (en) Storage space method for early warning and system
CN107359952B (en) A kind of clock Dynamic Compression towards time-triggered network
CN105632070A (en) Intelligent fire detector alarm system
CN104217548A (en) Method and device for processing first-out alarm of gas turbines
CN107807271A (en) A kind of method and system for being compressed automatically to over-voltage monitoring data
CN202433032U (en) Move-out detection circuit
CN103034705A (en) Multi-fault-data display device and method of engineering mechanical equipment
CN107462321A (en) A kind of noise monitoring system
CN108537069A (en) Store tester data self-destruction method
CN104660968A (en) Method for storing alarm information by using multiple storage cards
Xidong et al. A game-theoretic dynamic power management policy on wireless sensor network
CN110532258A (en) Fault wave list updating method and fault wave transmission method
CN105676909B (en) The automatic method for reporting of smart machine remote status
CN203616844U (en) Safety alarm device of community
CN203825743U (en) Antitheft alarm system for cable
CN103839348A (en) Cable anti-theft alarm system
CN203798513U (en) Helium mass spectrometer data change detection additional apparatus

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

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication