首页|一种面向嵌入式NVMe存储设备的对齐优化设计

一种面向嵌入式NVMe存储设备的对齐优化设计

扫码查看
嵌入式领域的软件存储栈较为精简,嵌入式文件系统等上层软件在使用NVMe驱动时没有专门的块设备管理层处理缓冲区不对齐,导致发生操作失败、数据内容不一致等问题.文章提出了一种对齐优化设计,当用户读、写缓冲区不满足对齐要求时,动态维护对齐链式缓冲池,以完成针对NVMe控制器的数据中转,同时按照通道数目建立了多链表对齐缓冲池,并使用计数信号量保证NVMe驱动的并发性能.通过这种优化设计能够以较小的性能损耗,解决嵌入式NVMe驱动因对齐导致的不可用问题.
An Alignment Optimization Design for Embedded NVMe Storage Device
The software storage stack in the embedded field is relatively streamlined,when upper level software such as embedded file system using NVMe driver,there is no dedicated fast device management layer to handle buffer misalignment,causing operational failure,inconsistent data content,and other is-sues.This article proposes an alignment optimization design to address this issue,when the user's read/write buffer does not meet the alignment requirement,dynamic maintenance of aligned chain buffer pool,to complete data transfer for NVMe controller.Simultaneously established a multi linked list alignment buffer pool based on the number of channels,and use counting semaphore to ensure the concurrency per-formance of NVMe driver.Through this optimization design,the issue of unavailability caused by align-ment in embedded NVMe driver can be solved with minimal performance loss.

alignment optimizationchain buffer poolconcurrent performanceembedded NVMe Driver

王冬、任晓瑞、杨琼、张鹏、朱双四、赵艾琦

展开 >

航空工业西安航空计算技术研究所,陕西西安 710000

对齐优化 链式缓冲池 并发性能 嵌入式NVMe驱动

国家重点研发计划项目资助

2017YFB1301100

2024

航空计算技术
中国航空工业西安航空计算技术研究所

航空计算技术

CSTPCD
影响因子:0.316
ISSN:1671-654X
年,卷(期):2024.54(1)
  • 6