The invention discloses a solid state disk access operation monitoring method, including: the implementation of the first operation, and in the implementation of the first operation monitoring whether there are second types of operation to be performed; the first operation including write operation and / or erase operation, second kinds of operations including the read operation; if the monitoring to second type of operation to be performed, then hang up first class operation, the implementation of second class operation. In the present invention, second types of operations to be executed are monitored at the same time during the execution of the first type of operation, and if there is, the first type of operation is suspended to perform the second type of operation. The priority of the second kind of operation is higher than the first class operation, so the second class operation is carried out first, so that the time of the second kinds of operation is shorter from the instruction to the response instruction, which reduces the read delay and enhances the reading performance. Correspondingly, a solid state hard disk access operation monitoring system is also disclosed.
【技术实现步骤摘要】
一种固态硬盘访问操作的监控方法和系统
本专利技术涉及固态硬盘领域,特别涉及一种固态硬盘访问操作的监控方法和系统。
技术介绍
随着互联网、云计算、物联网等技术的发展及广泛应用,人类生活中产生了海量数据需要存储和处理。在各类存储系统中,固态硬盘因其读写速度快,能耗较低而被广泛使用。但是由于读取速度较快,写入、擦除NAND颗粒的速度较慢,与读取速度存在较大差异,如果两个读取操作之间存在一个写操作或擦操作,那么两个读操作的时间间隔太长,在测试读延时(readlatency)时波动太大。而且此时第二个读取操作从发出到获得响应的时间太久,读性能不高。
技术实现思路
有鉴于此,本专利技术的目的在于提供一种固态硬盘访问操作的监控方法和系统,来实现降低读延时的目的。其具体方案如下:一种固态硬盘访问操作监控方法,包括:执行第一类操作,并且在执行第一类操作时监测是否存在待执行的第二类操作;其中,第一类操作包括写入操作和/或擦除操作,第二类操作包括读取操作;如果监测到存在待执行的第二类操作,则挂起第一类操作,执行第二类操作。优选的,所述挂起第一类操作,执行第二类操作的过程,还包括:执行完当前 ...
【技术保护点】
一种固态硬盘访问操作监控方法,其特征在于,包括:执行第一类操作,并且在执行第一类操作时监测是否存在待执行的第二类操作;其中,第一类操作包括写入操作和/或擦除操作,第二类操作包括读取操作;如果监测到存在待执行的第二类操作,则挂起第一类操作,执行第二类操作。
【技术特征摘要】
1.一种固态硬盘访问操作监控方法,其特征在于,包括:执行第一类操作,并且在执行第一类操作时监测是否存在待执行的第二类操作;其中,第一类操作包括写入操作和/或擦除操作,第二类操作包括读取操作;如果监测到存在待执行的第二类操作,则挂起第一类操作,执行第二类操作。2.根据权利要求1所述的监控方法,其特征在于,所述挂起第一类操作,执行第二类操作的过程,还包括:执行完当前待执行的所有第二类操作后,执行恢复操作,以继续执行第一类操作。3.根据权利要求1所述的监控方法,其特征在于,所述挂起第一类操作,执行第二类操作的过程包括:挂起第一类操作,执行当前待执行的第二类操作,并对本次已执行的第二类操作计数;当本次已执行的第二类操作数目达到预设的正整数M,执行恢复操作,以继续执行第一类操作。4.根据权利要求3所述的监控方法,其特征在于,所述方法中的正整数M的获取过程,包括:计算当前待执行的第一类操作的数目和当前待执行的第二类操作的数目的比值;将所述比值取整,得到正整数M。5.根据权利要求1-4任一项所述的监控方法,其特征在于,所述执行第一类操作,并且在执行第一类操作时监测是否存在待执行的第二类操作的过程包括:执行第一类操作,并且在执行第一类操作时定时监测是否存在待执行的第二类操作。6.根据权利要求5所述的监控方法,其特征在于,还包括:当任一个第一类操作执行结束后,判...
【专利技术属性】
技术研发人员:苏军,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。