• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2024, Vol. 46 ›› Issue (07): 1167-1174.

• 高性能计算 • 上一篇    下一篇

面向高密度闪存的内存页大小探索

俞丁翠,罗龙飞,宋云鹏,李文通,石亮   

  1. (华东师范大学计算机科学与技术学院,上海 200062)
  • 收稿日期:2023-10-24 修回日期:2023-11-21 接受日期:2024-07-25 出版日期:2024-07-25 发布日期:2024-07-18
  • 基金资助:
    国家自然科学基金(62141213,62072177);上海市科学技术项目-启明星计划(22QA1403300)

Exploration of memory page size for high-density flash memory

YU Ding-cui,LUO Long-fei,SONG Yun-peng,LI Wen-tong,SHI Liang   

  1. (School of Computer Science and Technology,East China Normal University,Shanghai 200062,China)
  • Received:2023-10-24 Revised:2023-11-21 Accepted:2024-07-25 Online:2024-07-25 Published:2024-07-18

摘要: 近年来,固态硬盘SSD向高带宽、大容量的方向飞速发展。为了扩大SSD的容量,闪存页面从4 KB增长到了16 KB。然而,操作系统依然以4 KB内存页为粒度向SSD下发读写请求,导致应用难以充分利用SSD的高带宽。增加内存页面的大小,以使操作系统下发的I/O请求和SSD读写闪存的粒度统一是可能可行的解决方案。将首次深入探索内存页大小对系统I/O性能与SSD寿命的影响。具体来说,将内存页大小设置为16 KB,运行测试程序并将实验结果与4 KB内存页进行比较。得出以下结论:(1)16 KB内存页具有更好的读性能;(2)应用的写粒度决定了16 KB内存页的性能;(3)16 KB内存页放大了页内无效数据对SSD寿命的影响。

关键词: 固态硬盘, 高密度闪存, 内存管理, 内存页大小, I/O性能测试分析

Abstract: In recent years, solid state drives (SSDs) have witnessed rapid development towards higher bandwidth and larger capacity. To expand SSD capacity, the size of flash memory pages has increased from 4 KB to 16 KB. However, operating systems still issue read/write requests to SSDs with a 4 KB memory page granularity, making it difficult for applications to fully utilize the high bandwidth of SSDs. Increasing the size of memory pages to align the granularity of I/O requests issued by the operating system with the SSD's flash memory read/write operations could be a potential solution. This  paper delves into the effects of memory page size on system I/O performance and SSD lifetime for the first time, including setting the memory page size to 16 KB, running benchmark tests, and comparing the results with those obtained using 4 KB memory pages. The key findings are as follows: (1) 16 KB memory pages exhibit better read performance; (2) the write granularity of applications determines the performance of 16 KB memory pages; (3) 16 KB memory pages amplify the impact of invalid data within pages on SSD lifetime.

Key words: solid state drive, high-density flash, memory management, memory page size, I/O performance test and analysis