Skip to content

Commit

Permalink
update MD by dispatch event pingcap/docs-cn release-8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 10, 2025
1 parent 15f590d commit deb515f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions markdown-pages/zh/tidb/release-8.1/check-before-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,20 +623,22 @@ sudo systemctl enable ntpd.service
```bash
echo "fs.file-max = 1000000">> /etc/sysctl.conf
echo "net.core.somaxconn = 32768">> /etc/sysctl.conf
echo "net.ipv4.tcp_tw_recycle = 0">> /etc/sysctl.conf
echo "net.ipv4.tcp_syncookies = 0">> /etc/sysctl.conf
echo "vm.overcommit_memory = 1">> /etc/sysctl.conf
echo "vm.min_free_kbytes = 1048576">> /etc/sysctl.conf
sysctl -p
```
> **警告:**
>
> 不建议在内存小于 16 GiB 的系统上调大 `vm.min_free_kbytes` 的值,否则可能导致系统不稳定或启动失败。
> **注意:**
>
> - `vm.min_free_kbytes` 是 Linux 内核的一个参数,用于控制系统预留的最小空闲内存量,单位为 KiB。
> - `vm.min_free_kbytes` 的设置会影响内存回收机制。设置得过大,会导致可用内存变少,设置得过小,可能会导致内存的申请速度超过后台的回收速度,进而导致内存回收并引起内存分配延迟。
> - 建议将 `vm.min_free_kbytes` 最小设置为 `1048576` KiB(即 1 GiB)。如果[安装了 NUMA](/check-before-deployment.md#安装-numactl-工具),建议设置为 `NUMA 节点个数 * 1048576` KiB。
> - 对于内存小于 16 GiB 的小规格服务器,保持 `vm.min_free_kbytes` 的默认值即可。
> - `tcp_tw_recycle` 从 Linux 4.12 内核版本开始移除,在使用高版本内核时无需配置该项。
> - 对于运行 Linux 内核 4.11 或更早版本的系统,建议将 `net.ipv4.tcp_tw_recycle` 设置为 `0`
10. 执行以下命令配置用户的 limits.conf 文件。
Expand Down

0 comments on commit deb515f

Please sign in to comment.