Linux Kernel Tuning

From HPCWIKI
Jump to navigation Jump to search

Template:Status

Template:TOC

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

Knowledge Graph

Related

THP (Transparent Huge Pages)systemdKernel tips and tricksLVMiptablesUbuntuKernel boot paramfstab