The invention discloses a method for improving solid state disk write performance, which is characterized in that the dynamic dynamic adjustment according to the size of SLC cache overall effective data of the size of the total; when idle, idle most of converted to SLC block mlc/tlc block; when the total effective amount of data is small, will be part of the idle mlc/tlc block converted to SLC block; when the overall effective large amount of data, and has exceeded the maximum amount of data SLC cache, SLC block will gradually decrease, the part of the SLC block mlc/tlc block recovery. Through the overall effective data (Total Valid Page Count) based dynamic SLC block switching mode, the actual writing of effective data according to the actual number of users, to adjust the SLC block, can effectively improve the use of SLC block ssd.
【技术实现步骤摘要】
一种提升固态硬盘写性能的方法
本专利技术涉及固态硬盘控制技术,特别涉及提升固态硬盘写性能的方法。
技术介绍
带slccache的固态存储设备就是在mlc/tlc类型的固态硬盘中为了提升写速度,将部分mlc/tlc划分出部分分区转换为slc,作为数据缓存,由于slc相比于mlc/tlc具有更优的写性能,本质就是通过空间换时间。在现有带slccache的固态存储设备中,slccache的大小同slcblock的数量相关;由于mlc/tlcblock切换为slcblock会导致block容量的减少,通过切换更多的mlc/tlcblock来增加slcblock的数量,会导致物理容量的减少,所以一般的带slccache固态硬盘中,slcblock的数量较少且相对是固定的,并不能最大限度的利用slc的特性。图1是采用静态slccache方式的数据流转图;当slccache有空余时,主机数据写入slccache,当slccache数据写满时,主机数据写入mlc中。由于mlcblock切换为slcblock会导致容量减少,因此slccache的大小较小。
技术实现思路
针对以上缺陷, ...
【技术保护点】
一种提升固态硬盘写性能的方法,其特征在于动态根据全盘有效数据量的大小动态调整slccache的大小;当全盘空闲时,将大部分空闲mlc/tlc block转换为slc block;当全盘有效数据量较小时,将部分空闲mlc/tlc block转换为slc block;当全盘有效数据量较大时,且已经超过了slc cache的最大数据量时,将逐渐减小slc block,将部分slc block恢复为mlc/tlc block。
【技术特征摘要】
1.一种提升固态硬盘写性能的方法,其特征在于动态根据全盘有效数据量的大小动态调整slccache的大小;当全盘空闲时,将大部分空闲mlc/tlcblock转换为slcblock;当全盘有效数据量较小时,将部分空闲mlc/tlcblock转换为slcblock;当全盘有效数据量较大时,且已经超过了slccache的最大数据量时,将逐渐减小slcblock,将部分slcblock恢复为mlc/tlcblock。2.根据权利...
【专利技术属性】
技术研发人员:郭凌立,
申请(专利权)人:记忆科技深圳有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。