The invention discloses a method for improving reading multiple streams of solid-state hard disk performance, which is characterized in that the command module separation increased in the solid state disk, command separation module within a period of time when the initial cache receives a plurality of read command stream, the logical address of adjacent read command flow separation for the same order command stream, and records the address information sequence command stream command; subsequent new separation module receiving the read command, first read address information is judged according to the sequence of commands belonging to the existing flow, if it is in order to join the corresponding command flow, if otherwise re establishment of a new order of command flow. Were separated by the mixed order flow, will close the read instruction within a period of time to restore the relationship between logical address multiple sequential streams in accordance with, as far as possible the use of prefetch mechanism of SSD, enhance the performance of mixed flow under the order of the host.
【技术实现步骤摘要】
一种提高固态硬盘中多流读出时性能的方法
本专利技术涉及固态硬盘控制技术,特别涉及一种提高固态硬盘中多流读出时性能的方法。
技术介绍
所谓预读机制指的是SSD检测到主机发起顺序读取流(顺序读取流由多个顺序读命令构成)时,在空闲期或前一读指令执行后自发先将后续的数据从NandFlash预读到DRAM,待主机命令下发后直接从DRAM传输数据至主机,性能会大大提升。主机一般都支持多任务系统,多任务存在同时访问固态硬盘的情况,当然也存在同一任务中交叉着多个对固态硬盘的访问。可能从单个应用或任务单独访问时为顺序读取指令,但混合在一起下发到固态硬盘。使得原本是多条顺序读取指令的混合在一起发往SSD后,SSD端接受到的将是一条乱序的读取流,图1是主机乱序下发命令示意图,假设主机准备下发两条顺序读取流,顺序流1为cmd0~5,这些命令的逻辑块地址LBA(LogicalBlockAddress)是连续的;顺序流2为cmd6~11,这些命令的LBA也是连续的,主机将这两条流混合下发至SSD,SSD接收到将是一条乱序流:cmd0,cmd6,cmd1,cmd7,cmd2,cmd8,cmd3 ...
【技术保护点】
一种提高固态硬盘中多流读出时性能的方法,其特征在于在固态硬盘的固件中增加了命令分离模块,命令分离模块初始时缓存一段时间内接收到的多条读流命令,将逻辑地址相邻的读流命令分离为同一顺序命令流,并记录顺序命令流的地址信息;命令分离模块后续新接收到读命令时,先根据读地址信息判定是否属于已有的顺序命令流,如果是则加入对应的顺序命令流,如果否则重新建立一个新的顺序命令流。
【技术特征摘要】
1.一种提高固态硬盘中多流读出时性能的方法,其特征在于在固态硬盘的固件中增加了命令分离模块,命令分离模块初始时缓存一段时间内接收到的多条读流命令,将逻辑地址相邻的读流命令分离为同一顺序命令流,并记录顺序命令流的地址信息;命令分离模块后续新接收到读命令时,先根据读地址信息判定是否属于已有的顺序命令流,如果是则加入对应的顺序命令流,如果否则重新建立一个新的顺序命令流。2.根据权利要求1所...
【专利技术属性】
技术研发人员:许毅,姚兰,郑春阳,
申请(专利权)人:记忆科技深圳有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。