[CCF Archive] Store object type eviction policy submission #3
|
|
@ -304,6 +304,7 @@ For advanced users, TransferEngine provides the following advanced runtime optio
|
|||
- `MC_MIN_RPC_PORT` Specifies the minimum port number for RPC service. The default value is 15000.
|
||||
- `MC_MAX_RPC_PORT` Specifies the maximum port number for RPC service. The default value is 17000.
|
||||
- `MC_PATH_ROUNDROBIN` Use round-robin mode in the RDMA path selection. This may be beneficial for transferring large bulks.
|
||||
- `WITH_NVIDIA_PEERMEM` When set to `1`, `ON`, or `TRUE`, Mooncake uses `ibv_reg_mr()` directly for GPU memory registration (requires the `nvidia-peermem` kernel module). By default (unset or `0`), Mooncake uses the DMA-BUF path which does not require `nvidia-peermem`.
|
||||
- `MC_ENDPOINT_STORE_TYPE` Choose FIFO Endpoint Store (`FIFO`) or Sieve Endpoint Store (`SIEVE`), default is `SIEVE`.
|
||||
- `MC_TCP_ENABLE_CONNECTION_POOL` Enable TCP Connection Pool to avoid excessive sockets.
|
||||
|
||||
|
|
|
|||
|
|
@ -100,12 +100,12 @@ pip install mooncake-transfer-engine-non-cuda
|
|||
```
|
||||
|
||||
2. If you want to compile the GPUDirect support module, first follow the instructions in https://docs.nvidia.com/cuda/cuda-installation-guide-linux/ to install CUDA (ensure to enable `nvidia-fs` for proper `cuFile` module compilation). After that:
|
||||
1) Follow Section 3.7 in https://docs.nvidia.com/cuda/gpudirect-rdma/ to install `nvidia-peermem` for enabling GPU-Direct RDMA
|
||||
2) Configure `LIBRARY_PATH` and `LD_LIBRARY_PATH` to ensure linking of `cuFile`, `cudart`, and other libraries during compilation:
|
||||
1) Configure `LIBRARY_PATH` and `LD_LIBRARY_PATH` to ensure linking of `cuFile`, `cudart`, and other libraries during compilation:
|
||||
```bash
|
||||
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/lib64
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
|
||||
```
|
||||
> **Note:** By default, Mooncake uses the DMA-BUF path for GPU-Direct RDMA, which does **not** require the `nvidia-peermem` kernel module. If you prefer the legacy `ibv_reg_mr` path (which requires `nvidia-peermem`), set the runtime environment variable `WITH_NVIDIA_PEERMEM=1` before starting Mooncake. See Section 3.7 of https://docs.nvidia.com/cuda/gpudirect-rdma/ for instructions on installing `nvidia-peermem`.
|
||||
|
||||
3. If you want to compile the Moore Mthreads GPUDirect support module, first follow the instructions in https://docs.mthreads.com/musa-sdk/musa-sdk-doc-online/install_guide to install MUSA. After that:
|
||||
1) Install `mthreads-peermem` for enabling GPU-Direct RDMA
|
||||
|
|
|
|||
|
|
@ -95,12 +95,12 @@
|
|||
```
|
||||
|
||||
2. 如果你要编译Nvidia GPUDirect 支持模块,首先需按照 https://docs.nvidia.com/cuda/cuda-installation-guide-linux/ 的指引安装 CUDA (确保启用 `nvidia-fs` 以正确编译 `cuFile` 模块)。之后:
|
||||
1) 按照 https://docs.nvidia.com/cuda/gpudirect-rdma/ 的第 3.7 节说明安装 `nvidia-peermem` 以启用 GPU-Direct RDMA
|
||||
2) 配置 `LIBRARY_PATH` 和 `LD_LIBRARY_PATH` 以确保编译过程期间链入 `cuFile`, `cudart` 等库:
|
||||
1) 配置 `LIBRARY_PATH` 和 `LD_LIBRARY_PATH` 以确保编译过程期间链入 `cuFile`, `cudart` 等库:
|
||||
```bash
|
||||
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/lib64
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
|
||||
```
|
||||
> **注意:** 默认情况下,Mooncake 使用 DMA-BUF 路径进行 GPU-Direct RDMA,**无需** `nvidia-peermem` 内核模块。如需使用依赖 `nvidia-peermem` 的传统 `ibv_reg_mr` 路径,请在启动 Mooncake 前设置运行时环境变量 `WITH_NVIDIA_PEERMEM=1`。安装 `nvidia-peermem` 的说明见 https://docs.nvidia.com/cuda/gpudirect-rdma/ 第 3.7 节。
|
||||
|
||||
3. 如果你要编译Moore Threads GPUDirect RDMA 支持模块,首先需按照 https://docs.mthreads.com/musa-sdk/musa-sdk-doc-online/install_guide 的指引安装 MUSA SDK。之后:
|
||||
1) 安装 `mthreads-peermem` 以启用 GPU-Direct RDMA
|
||||
|
|
|
|||
|
|
@ -34,13 +34,12 @@ Mooncake 目前仅支持 Linux 操作系统,并且依赖以下软件:
|
|||
|
||||
首先按照 https://docs.nvidia.com/cuda/cuda-installation-guide-linux/ 中的说明安装 cuda(需要勾选 nvidia-fs 选项, 以便于 cufile 的正常使用),之后:
|
||||
|
||||
1) 参考 https://docs.nvidia.com/cuda/gpudirect-rdma/ 的 3.7 节,安装 nvidia-peermem 以启用 gpu-direct RDMA:
|
||||
|
||||
2) 配置 `LIBRARY_PATH` 和 `LD_LIBRARY_PATH`,用于编译和运行时链接 cufile, cudart 等库:
|
||||
1) 配置 `LIBRARY_PATH` 和 `LD_LIBRARY_PATH`,用于编译和运行时链接 cufile, cudart 等库:
|
||||
```bash
|
||||
export $LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/lib64
|
||||
export $LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
|
||||
```
|
||||
> **注意:** 默认情况下,Mooncake 使用 DMA-BUF 路径进行 GPU-Direct RDMA,**无需** `nvidia-peermem` 内核模块。如需使用依赖 `nvidia-peermem` 的传统 `ibv_reg_mr` 路径,请在启动 Mooncake 前设置运行时环境变量 `WITH_NVIDIA_PEERMEM=1`。安装 `nvidia-peermem` 的说明见 https://docs.nvidia.com/cuda/gpudirect-rdma/ 第 3.7 节。
|
||||
|
||||
6. 编译 Mooncake 组件
|
||||
```bash
|
||||
|
|
|
|||
|
|
@ -422,4 +422,5 @@ int init(const std::string &metadata_conn_string,
|
|||
- `MC_MIN_RPC_PORT` 指定 RPC 服务使用的最小端口号。默认值为 15000。
|
||||
- `MC_MAX_RPC_PORT` 指定 RPC 服务使用的最大端口号。默认值为 17000。
|
||||
- `MC_PATH_ROUNDROBIN` 指定 RDMA 路径选择使用 Round Robin 模式,这对于传输大块数据可能有利。
|
||||
- `WITH_NVIDIA_PEERMEM` 设置为 `1`、`ON` 或 `TRUE` 时,Mooncake 使用 `ibv_reg_mr()` 直接注册 GPU 内存(需要 `nvidia-peermem` 内核模块)。默认情况下(未设置或为 `0`),Mooncake 使用不需要 `nvidia-peermem` 的 DMA-BUF 路径。
|
||||
- `MC_ENDPOINT_STORE_TYPE` 选择 FIFO Endpoint Store (`FIFO`) 或者 Sieve Endpoint Store (`SIEVE`),模式是 `SIEVE`。
|
||||
|
|
|
|||
Loading…
Reference in New Issue