The invention discloses a device for automatically testing storage cache mode, including monitoring module, mode conversion module and time generation module, the control module is respectively connected with the mode conversion module and time generating module is connected. The invention also discloses a method for automatically testing storage cache mode, including the monitoring module detects the current storage cache mode, and cache mode state information input to the mode conversion module; mode conversion module according to the cache mode state information based on mode conversion mode determine the next cache mode; mode conversion module converts the current the storage cache mode for a cache mode; time to generate time interval, interval time, a monitoring module detects the cache mode trigger. The invention solves the problem of the manual switching test of the storage buffer mode, so as to improve the efficiency and coverage of the storage test.
【技术实现步骤摘要】
本专利技术涉及服务器存储
,特别是涉及一种自动测试存储缓存模式的装置及方法。
技术介绍
存储就是根据不同的应用环境通过采取合理、安全、有效的方式将数据保存到某些介质上并能保证有效的访问,总的来讲可以包含两个方面的含义:一方面它是数据临时或长期驻留的物理媒介;另一方面,它是保证数据完整安全存放的方式或行为。随着信息数据量的迅猛增长,数据的增长和价值日益重要,因而对存储的性能、可靠性提出了更高的要求。为了满足存储性能的更高要求,存储控制器中缓存的作用不容小觑,目前存储系统中设计了多种缓存模式,以达到更优化的性能和数据可靠性。但是存储缓存模式多样,进行手动测试遍历时间长、切换复杂,在不同业务应用中,存储模式的改变对存储的性能、稳定性都有着极大的影响,并对数据的安全性有着很大的影响,对数据一致性也存在极大的考验,所以存储缓存模式的测试对于存储系统的测试来说有着至关重要的意义。
技术实现思路
本专利技术目的是提供一种自动测试存储缓存模式的装置及方法,解决了存储缓存模式手动切换测试的问题,从而提高了存储测试的效率和覆盖度。为了实现上述目的,本专利技术采用以下的技术方案:一种自动测试存储缓存模式的装置,包括:监控模块,用于检测当前存储的缓存模式;模式转换模块,用于切换缓存模式;时间生成模块,用于设定缓存模式的时间间隔;所述监控模块分别与模式转换模块和时间生成模块相连接。优选地,还包括:预定义模块,用于预定义缓存模式状态信息和模式转换方式。优选地,模式转换模块包括判断模块和转换模块;判断模块,用于根据监控模块输入的缓存模式状态信息,依据模式转换方式判断下一种缓存模式; ...
【技术保护点】
一种自动测试存储缓存模式的装置,其特征在于,包括:监控模块,用于检测当前存储的缓存模式;模式转换模块,用于切换缓存模式;时间生成模块,用于设定缓存模式的时间间隔;所述监控模块分别与模式转换模块和时间生成模块相连接。
【技术特征摘要】
1.一种自动测试存储缓存模式的装置,其特征在于,包括:监控模块,用于检测当前存储的缓存模式;模式转换模块,用于切换缓存模式;时间生成模块,用于设定缓存模式的时间间隔;所述监控模块分别与模式转换模块和时间生成模块相连接。2.根据权利要求1所述的自动测试存储缓存模式的装置,其特征在于,还包括:预定义模块,用于预定义缓存模式状态信息和模式转换方式。3.根据权利要求2所述的自动测试存储缓存模式的装置,其特征在于,模式转换模块包括判断模块和转换模块;判断模块,用于根据监控模块输入的缓存模式状态信息,依据模式转换方式判断下一种缓存模式;转换模块,用于将当前存储的缓存模式转换为下一种缓存模式。4.一种自动测试存储缓存...
【专利技术属性】
技术研发人员:葛冬玲,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南;41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。