Linux Kernel Tuning: Difference between revisions
Jump to navigation
Jump to search
(Add categories: Linux, Configuration) |
(Template migration to LLM-Optimized Wiki Template) |
||
| Line 1: | Line 1: | ||
== | {{Status | ||
|status=Draft | |||
|owner=Knowledge Agent | |||
|last_update=2026-07-16 | |||
|review=Pending | |||
}} | |||
{{TOC}} | |||
== Overview == | |||
Linux [[Kernel]] Tuning에 대한 기술 문서입니다. | |||
=== Summary === | |||
* 무엇인가? - Linux Kernel Tuning | |||
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념 | |||
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시 | |||
--- | |||
== Purpose == | |||
이 문서가 존재하는 이유 | |||
* Goal: Linux Kernel Tuning에 대한 기술 정보 제공 | |||
* Scope: Linux Kernel Tuning의 개념, 사용법, 설정 | |||
* Non-goals: 다른 주제로의 확장 | |||
--- | |||
== Key Concepts == | |||
{| class="wikitable" | |||
! Concept | |||
! Description | |||
! Related | |||
|- | |||
| Linux Kernel Tuning | |||
| HPC/서버 환경에서 중요한 기술 개념 | |||
| [[Linux]], [[Server]] | |||
|} | |||
--- | |||
== Detailed Explanation == | |||
Automatic [[NUMA]] balancing improves the performance of applications running on NUMA system. <syntaxhighlight lang="bash"> | Automatic [[NUMA]] balancing improves the performance of applications running on NUMA system. <syntaxhighlight lang="bash"> | ||
Automatic NUMA balancing is enabled when both of the following conditions are met: | Automatic NUMA balancing is enabled when both of the following conditions are met: | ||
# numactl --hardware shows multiple nodes | # numactl --hardware shows multiple nodes | ||
# cat /proc/sys/kernel/numa_balancing shows 1 | # cat /proc/sys/kernel/numa_balancing shows 1 | ||
To disable automatic NUMA balancing, use the following command: | To disable automatic NUMA balancing, use the following command: | ||
# echo 0 > /proc/sys/kernel/numa_balancing | # echo 0 > /proc/sys/kernel/numa_balancing | ||
To enable automatic NUMA balancing, use the following command: | To enable automatic NUMA balancing, use the following command: | ||
# echo 1 > /proc/sys/kernel/numa_balancing | # echo 1 > /proc/sys/kernel/numa_balancing | ||
</syntaxhighlight> | </syntaxhighlight> | ||
''Swap space'' in [[Linux]] is used when the amount of physical memory (RAM) is full. Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of [[swap partition]] and swap files. Note that ''Btrfs'' does ''not'' [[support]] swap space. | ''Swap space'' in [[Linux]] is used when the amount of physical memory (RAM) is full. Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of [[swap partition]] and swap files. Note that ''Btrfs'' does ''not'' [[support]] swap space. | ||
Althoug there is no specific guidelines in the size of swap space, recommended swap space is considered a function of system memory [[workload]], not system memory for a modern systems which often include hundreds of gigabytes of RAM. | Althoug there is no specific guidelines in the size of swap space, recommended swap space is considered a function of system memory [[workload]], not system memory for a modern systems which often include hundreds of gigabytes of RAM. | ||
RedHat's recommendation for swap space is | RedHat's recommendation for swap space is | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 30: | Line 66: | ||
|2 times the amount of RAM | |2 times the amount of RAM | ||
|3 times the amount of RAM | |3 times the amount of RAM | ||
--- | |||
== Best Practices == | |||
* 최신 버전 사용 권장 | |||
* 공식 문서 참고 | |||
* 테스트 환경에서 먼저 검증 | |||
--- | |||
== References == | |||
* [https://wiki.hpcmate.com Linux Kernel Tuning] | |||
--- | |||
== Related Pages == | |||
* [[Linux]] | |||
* [[Server]] | |||
* [[Hardware]] | |||
* [[Network]] | |||
--- | |||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Configuration]] | [[Category:Configuration]] | ||
Revision as of 15:16, 16 July 2026
Overview
Linux Kernel Tuning에 대한 기술 문서입니다.
Summary
- 무엇인가? - Linux Kernel Tuning
- 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
- 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
---
Purpose
이 문서가 존재하는 이유
- Goal: Linux Kernel Tuning에 대한 기술 정보 제공
- Scope: Linux Kernel Tuning의 개념, 사용법, 설정
- Non-goals: 다른 주제로의 확장
---
Key Concepts
| Concept | Description | Related |
|---|---|---|
| Linux Kernel Tuning | HPC/서버 환경에서 중요한 기술 개념 | Linux, Server |
---
Detailed Explanation
Automatic NUMA balancing improves the performance of applications running on NUMA system.
Automatic NUMA balancing is enabled when both of the following conditions are met:
# numactl --hardware shows multiple nodes
# cat /proc/sys/kernel/numa_balancing shows 1
To disable automatic NUMA balancing, use the following command:
# echo 0 > /proc/sys/kernel/numa_balancing
To enable automatic NUMA balancing, use the following command:
# echo 1 > /proc/sys/kernel/numa_balancing
Swap space in Linux is used when the amount of physical memory (RAM) is full. Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of swap partition and swap files. Note that Btrfs does not support swap space. Althoug there is no specific guidelines in the size of swap space, recommended swap space is considered a function of system memory workload, not system memory for a modern systems which often include hundreds of gigabytes of RAM. RedHat's recommendation for swap space is
| Amount of RAM in the system | Recommended swap space | Recommended swap space if allowing for hibernation |
|---|---|---|
| ⩽ 2 GB | 2 times the amount of RAM | 3 times the amount of RAM
--- Best Practices
--- References--- Related Pages--- |