已合并
fix: UBS IO 配置项整理,注释为注释状态 #408
fix: UBS IO 配置项整理,注释为注释状态 #408
已合并
dajiang创建于 7月24日
2 个文件变更+9-1
@@ -1 +1 @@
1-Subproject commit 9d89014097bced90f57118c9923bc6f7a5ac90b31+Subproject commit ba113e7a70552778de53dd633d886f6823a562ab
@@ -31,7 +31,15 @@ ock.mmc.local_service.protocol = host_rdma
31## After alignment, the HBM size and DRAM size cannot both be 0 at the same time31## After alignment, the HBM size and DRAM size cannot both be 0 at the same time
32ock.mmc.local_service.dram.size = 1GB32ock.mmc.local_service.dram.size = 1GB
33 33 
34+## UBS IO is a disk management module that manages local SSD disk space
34## Enable SSD storage via UBS IO (default: false)35## Enable SSD storage via UBS IO (default: false)
35# ock.mmc.local_service.storage.enabled = true36# ock.mmc.local_service.storage.enabled = true
37+## Local SSD cache disk or partition paths, multiple paths separated by colons; must be exclusively used by UBS IO and must not have mount points
38+# ubsio.disk.path =
39+## UBS IO single-process memory pool size, in GB
40+# ubsio.mem.size_in_gb = 10
41+## The number of devices participating in local cache path allocation should be equal to the number of local_service processes with DRAM enabled
42+## (i.e., processes where ock.mmc.local_service.dram.size is non-zero on the node).
43+# ubsio.standalone.device_count = 8
atomgit-bot
atomgit-botatomgit-bot7月24日

🟡 Medium Priority

变更在 config/mmc-local.conf 中新增了三条 UBS IO 专用配置项(第 38、40、42 行):

  • ubsio.disk.path
  • ubsio.mem.size_in_gb
  • ubsio.standalone.device_count

根据项目文档 doc/install_whl.md(第 117、119、131 行),UBS IO 使用独立的配置文件 ubsio.conf,通过环境变量 UBSIO_CONFIG_PATH 指定路径。MMC 的 mmc-local.confConfiguration::LoadFromFile 加载,仅解析 ock.mmc.* 命名空间的键(定义在 mmc_config_const.hConfConstant 中),不会识别 ubsio.* 键。UBS IO 库通过 dlopen 动态加载,其初始化函数 ubsio_client_init 只接受 deviceId,自身内部读取 ubsio.conf

后果:用户若取消注释这些配置项并写入实际值,MMC 不会将其传递给 UBS IO,配置不会生效,用户将困惑于为何设置无效。即使这些行当前处于注释状态,它们的存在也会引导用户在错误的配置文件中修改 UBS IO 参数。

建议:将三条 ubsio.* 配置项及其注释从 mmc-local.conf 中移除,改为在 config/ubsio.conf 中创建(该文件目前不存在于仓库中)。同时建议 ubsio.disk.path 提供一个示例路径值(如 /dev/nvme0n1),与其他注释掉的配置项保持一致。

likedislike
36 44 
37## For more configuration options and advanced parameters, please refer to the official documentation: [MemCache Configuration Guide](https://gitcode.com/Ascend/memcache/blob/master/doc/memcache_config.md)45## For more configuration options and advanced parameters, please refer to the official documentation: [MemCache Configuration Guide](https://gitcode.com/Ascend/memcache/blob/master/doc/memcache_config.md)