Skip to content

Commit

Permalink
Merge pull request #36 from wu-hanqing/main
Browse files Browse the repository at this point in the history
update grub.cfg based on BIOS mode
  • Loading branch information
aspirer authored Nov 22, 2023
2 parents cde5ca6 + 05e8713 commit 3643d2e
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docs/02-CurveBS/02-deploy/09-rdma-spdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@

### 开启 IOMMU

修改 /etc/default/grub,在 GRUB_COMMAND_LINE 最后加入 `intel_iommu=on`,然后执行 `grub2-mkconfig -o /boot/grub2/grub.cfg` 并重启机器。
修改 /etc/default/grub,在 GRUB_COMMAND_LINE 最后加入 `intel_iommu=on`,根据 BIOS 模式更新不同的 grub.cfg 文件

```bash
$ test -d /sys/firmware/efi && echo "UEFI" || echo "Legacy"

# Legacy 模式
$ grub2-mkconfig -o /boot/grub2/grub.cfg

# UEFI 模式
$ grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
```

然后重启机器。

### 调整 memlock 限制

Expand Down Expand Up @@ -219,6 +231,21 @@ cbd 引擎测试可以避免 nbd 挂载带来的额外开销,在单卷测试

为了方便编译,如下命令以在 curveadm map 创建的容器内执行

- 进入容器

```bash
$ curveadm client status
Get Client Status: [OK]

Id Kind Host Container Id Status Aux Info
-- ---- ---- ------------ ------ --------
5f1c10fd4d71 curvebs curve1 dcbb6b69028e Up 9 days {"user":"test","volume":"/curve"}

$ curveadm client enter 5f1c10fd4d71 # 替换为上面输出的实际Id
```

- 在容器内编译并执行 fio 测试

```bash
$ git clone https://github.com/opencurve/fio.git -b curve
$ cd fio
Expand Down

0 comments on commit 3643d2e

Please sign in to comment.