-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize the description of disabling swap #7443
Optimize the description of disabling swap #7443
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
@AstroProfundis: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
check-before-deployment.md
Outdated
@@ -108,9 +108,14 @@ aliases: ['/docs-cn/dev/check-before-deployment/'] | |||
|
|||
## 检测及关闭系统 swap | |||
|
|||
本段介绍 swap 关闭方法。TiDB 运行需要有足够的内存,并且不建议使用 swap 作为内存不足的缓冲,这会降低性能。因此建议永久关闭系统 swap,并且不要使用 `swapoff -a` 方式关闭,否则重启机器后该操作会失效。 | |||
不建议将 swap 用作内存,因为这会降低性能,建议永久关闭系统 swap。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉原来的说明很清晰,改后的描述显得很简略不清晰?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不建议将 swap 用作内存,因为这会降低性能,建议永久关闭系统 swap。 | |
TiDB 运行需要有足够的内存,但不建议使用 swap 作为内存不足的缓冲,因为这会降低性能,建议永久关闭系统 swap。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TomShawn PTAL. Thanks.
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
In response to a cherrypick label: new pull request created: #7648. |
In response to a cherrypick label: new pull request created: #7649. |
In response to a cherrypick label: new pull request created: #7650. |
In response to a cherrypick label: new pull request created: #7651. |
In response to a cherrypick label: new pull request created: #7652. |
* Optimize the description of disabling swap * Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> * Update check-before-deployment.md * Update check-before-deployment.md * Update check-before-deployment.md * Update check-before-deployment.md * Update check-before-deployment.md * Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> Co-authored-by: shichun-0415 <lishichun@pingcap.com> Co-authored-by: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
First-time contributors' checklist
What is changed, added or deleted? (Required)
Optimize the description of disabling swap
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?