pingcap / pingcap/docs-cn

NUMA 架构下,是否还应限制单服务使用的内存

Open
#10,508 2 comments 0 reactions 1 assignee View on GitHub

@shichun-0415 is already working on this.

Since Jul 14, 2022.

area/deploy-upgrade-maintain
Dominant language
Python
Stars
1.8k
Forks
1.2k
Avg merge
1d 16h
Merged PRs (30d)
31

Description

Error 报告

This repository is ONLY used to solve problems related to DOCS-CN.
For other issues (TiDB, TiKV, etc), please move to other repositories.

Please answer the following questions before submitting your issue. Thanks!

  1. What is the document directory for the problem?
  1. How would you like to improve it?

原文:
image

此处提到了 NUMA 架构,但未限制单进程的内存用量,这有可能会导致跨 NUMA Node 访问内存。跨 NUMA Node 访问内存,会极大地降低性能(早期服务器 7 倍,后期 1.3 倍)。
仅限制了:

  • 进程数 = NUMA CPU 的个数 (其实此处是否应该使用 NUMA Node 数物理 CPU 数 替代 NUMA CPU 的个数 来消除歧义?)
  • 单个 NUMA Node 中 CPU 的核心数 = max-procs

那么在使用过程中,肯定会有部分 TiDB 申请额外的 NUMA Node 外的内存,因为进程并非绝对平分内存。应额外添加:

  • 单个 TiDB 进程可使用的内存上限 = 单个 NUMA Node 内的内存容量 (即:单路内存容量)

限制进程内存使用。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.