已合并
fix: UBS IO 配置项整理,注释为注释状态 #408
dajiang创建于 7月24日
fix: UBS IO 配置项整理,注释为注释状态 #408
已合并
共 2 个文件变更+9-1
| @@ -1 +1 @@ | |||
| 1 | -Subproject commit 9d89014097bced90f57118c9923bc6f7a5ac90b3 | 1 | +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 time | 31 | ## After alignment, the HBM size and DRAM size cannot both be 0 at the same time |
| 32 | ock.mmc.local_service.dram.size = 1GB | 32 | ock.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 = true | 36 | # 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 | ||
| 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) |
🟡 Medium Priority
变更在
config/mmc-local.conf中新增了三条 UBS IO 专用配置项(第 38、40、42 行):ubsio.disk.pathubsio.mem.size_in_gbubsio.standalone.device_count根据项目文档
doc/install_whl.md(第 117、119、131 行),UBS IO 使用独立的配置文件ubsio.conf,通过环境变量UBSIO_CONFIG_PATH指定路径。MMC 的mmc-local.conf由Configuration::LoadFromFile加载,仅解析ock.mmc.*命名空间的键(定义在mmc_config_const.h的ConfConstant中),不会识别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),与其他注释掉的配置项保持一致。