The embodiment of the invention discloses a data reading and writing method, device, device and computer readable storage medium of a solid-state hard disk. Among them, the method includes based on multi plane, if the type of read and write instructions is message instruction, and the number of effective addresses of the effective plane group of solid-state hard disk is the same as the number of users to write data into NAND flash memory. If the type of read-write instruction is read message instruction, read data from the cache of NAND flash memory when the preset condition is satisfied; the preset condition is that the last operation of the current operation is read operation and the address corresponding to the read message instruction belongs to the same plane group. The technical scheme of this application optimizes the read-write method of solid-state hard disk based on multi-plane characteristics, effectively improves the read-write rate of solid-state hard disk, improves the performance of the whole solid-state hard disk, and further enhances the competitiveness of solid-state hard disk.
【技术实现步骤摘要】
一种固态硬盘的数据读写方法、装置、设备及存储介质
本专利技术实施例涉及固态硬盘
,特别是涉及一种固态硬盘的数据读写方法、装置、设备及计算机可读存储介质。
技术介绍
随着互联网、云计算、物联网等计算机技术的快速发展及广泛普及应用,日常工作或生活中时时刻刻会产生海量的数据需要处理和存储,数据的爆炸式增长、用户对数据的安全性要求的增高及信息技术的高速发展均对存储系统的性能提出了更高的要求。SSD(SolidStateDrives,固态硬盘),也叫固盘,为用固态电子存储芯片阵列制成的硬盘,由控制单元和固态存储单元(FLASH芯片或DRAM芯片)组成,由于闪存(FLASH芯片)性质较DRAM更为稳定,NAND闪存颗粒作为固态硬盘的存储介质被广泛采用。读写性能为衡量固态硬盘性能优劣的重要指标。lun为NAND闪存能够根据读、写、擦除等命令进行操作的最小单元,Lun内部同时只能有一种操作,lun和lun之间是可以同时执行各自的操作。层(plane)为lun下的物理概念,plane用于并发执行同一类型的操作。每个plane即为一个存储矩阵,各plane中包含多个数据块(bl ...
【技术保护点】
1.一种固态硬盘的数据读写方法,其特征在于,基于multi‑plane,包括:接收用户读写指令,并识别所述读写指令的类型;若所述读写指令的类型为写消息指令,获取固态硬盘有效plane组的有效地址数目,并同时将多组用户待写入数据写入在NAND闪存中;用户待写入数据的组数与所述有效地址的数目相同;若所述读写指令的类型为读消息指令,当满足预设条件时,则从NAND闪存的cache中读取数据;所述预设条件为当当前操作的上一个操作为读操作且地址与所述读消息指令对应地址属于同一plane组。
【技术特征摘要】
1.一种固态硬盘的数据读写方法,其特征在于,基于multi-plane,包括:接收用户读写指令,并识别所述读写指令的类型;若所述读写指令的类型为写消息指令,获取固态硬盘有效plane组的有效地址数目,并同时将多组用户待写入数据写入在NAND闪存中;用户待写入数据的组数与所述有效地址的数目相同;若所述读写指令的类型为读消息指令,当满足预设条件时,则从NAND闪存的cache中读取数据;所述预设条件为当当前操作的上一个操作为读操作且地址与所述读消息指令对应地址属于同一plane组。2.根据权利要求1所述的固态硬盘的数据读写方法,其特征在于,当不满足所述预设条件时,则从NAND闪存中读取数据。3.根据权利要求2所述的固态硬盘的数据读写方法,其特征在于,所述获取固态硬盘有效plane组的有效地址数目,并同时将多组用户待写入数据写入在NAND闪存中包括:预先根据分组指令,将所述固态硬盘中数据块分配到各个plane组中;根据接收的可用plane指令从各plane组中,选择有效plane组;判断有效plane组中包含的有效地址的数目是否不小于待写入数据的组数;若是,则同时将多组用户待写入数据写入在NAND闪存中;若否,则根据有效plane组中的有效地址数目和待写入数据的组数,分批将用户的待写入数据写入在NAND闪存中。4.根据权利要求3所述的固态硬盘的数据读写方法,其特征在于,还包括:当所述有效plane组中包含的有效地址的数目为0,则反馈错误提示信息。5.一种固态硬盘的数据读写装置,其特征在于,基于multi-plane,包括:指令接收模块,用于接收用户读写指令,并识别所述读写指令的类型;写消息优化模块,用于当所述读写指令的类型为写消息指令,获取固态硬盘有效plane组的有效地址数目,并同时将多组用户待写入数据写入在NAND闪存中;...
【专利技术属性】
技术研发人员:苏军,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。