CPUs online or offline: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Add categories: Hardware, Reference)
(Fix: remove --- horizontal lines (9 removed))
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Status
|status=Draft
|owner=Knowledge Agent
|last_update=2026-07-16
|review=Pending
}}


== Check CPU status ==
{{TOC}}
<syntaxhighlight lang="bash">
# get the list of offline CPUs
cat /sys/devices/system/cpu/offline


cat /sys/devices/system/cpu/online 
== Overview ==
# get the list of online CPUs


# get the list of CPUs
CPUs online or offline에 대한 기술 문서입니다.
ls -ld /sys/devices/system/cpu/cpu*


# print individual CPU's online/offline status
=== Summary ===
cat /sys/devices/system/cpu/cpu*/online


# set online CPU <number>
* 무엇인가? - CPUs online or offline
echo 1 > /sys/devices/system/cpu/cpu<number>/online
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
or
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
sudo chcpu -e <number>


# set offline CPU <number>
echo 0 > /sys/devices/system/cpu/cpu<number>/online
or
sudo chcpu -d <number>


== Purpose ==


</syntaxhighlight>
이 문서가 존재하는 이유


== smpboot: native_cpu_up: bad cpu 255 ==
* Goal: CPUs online or offline에 대한 기술 정보 제공
This thread<ref>https://community.amd.com/t5/server-gurus-discussions/dual-socket-epyc-7702-64-cores-shows-254-cpu-online-1-cpu/m-p/350409</ref> shows system IOMMU enable in [[BIOS]] would be required to enable the last CPU core on Gigabyte system. However, it would be also related to other systems' BIOS configuration.
* Scope: CPUs online or offline의 개념, 사용법, 설정
* Non-goals: 다른 주제로의 확장




We can enable or disable the [[x2APIC]] architecture from the BIOS Setup cause x2APIC requires that the IOMMU be enabled and that IRQ remapping is enabled.
== Key Concepts ==


[https://stackoverflow.com/questions/60219639/kernel-error-irq-remapping-doesnt-support-x2apic-mode-disabled-x2apic This thread] shows a general steps to enable x2APIC in BIOS,  
{| class="wikitable"
! Concept
! Description
! Related
|-
| CPUs online or offline
| HPC/서버 환경에서 중요한 기술 개념
| [[Linux]], [[Server]]
|}


# Enable IOMMU in the BIOS. (It's disabled by default on many systems. Even on my brand new (July 2020) Gigabyte R282-Z93 with EPYC 7742 CPUs!)
# Enable x2APIC in the BIOS.
# Enable IOMMU [[support]] in the kernel:
#* For Intel CPUs: <code>CONFIG_INTEL_IOMMU=y</code>
#* For [[AMD CPUs]]:  <code>CONFIG_AMD_IOMMU=y</code> and <code>CONFIG_AMD_IOMMU_V2=y</code>
# Enable x2APIC support in the kernel: <code>CONFIG_X86_X2APIC=y</code>
# Enable IRQ remapping in the kernel: <code>CONFIG_IRQ_REMAP=y</code>


== Detailed Explanation ==


However, x2APIC is also dependingn on the type/version of OS,  
|status=Draft
|owner=Knowledge Agent
|last_update=2026-07-16
|review=Pending
}}
Linux 시스템에서 CPU의 online/offline 상태를 확인하고 관리하는 방법입니다. CPU 상태를 통해 시스템 리소스를 효율적으로 관리하고 성능을 최적화할 수 있습니다.
* 무엇인가? Linux에서 CPU online/offline 상태 확인 및 제어
* 왜 필요한가? CPU 리소스 관리, 전원 절약, 디버깅, 성능 최적화
* 언제 사용하는가? 서버 관리, CPU 문제 진단, 리소스 할당
이 문서가 존재하는 이유
* Goal: CPU 상태 확인 방법, online/offline 전환, smpboot 오류 해결 가이드 제공
* Scope: CPU 상태 확인 명령어, online/offline 설정, [[x2APIC]]/IOMMU 설정
* Non-goals: CPU 하드웨어 교체, [[BIOS]] 상세 설정
{| class="wikitable"
! 개념
! 설명
! Related
|-
 
 
== Best Practices ==
 
* 최신 버전 사용 권장
* 공식 문서 참고
* 테스트 환경에서 먼저 검증


* '''Windows Server 2016'''
** Windows Server 2016 supports AMD EPYC 7''xx''2-series CPUs, but this O.S. is limited to no more than 255 logical processors. Windows Server 2016 does not support X2APIC mode, and you should disable this mode in BIOS.
** '''AMD CBS-> CPU Common Options-> Performance-> CCD/Core/Thread Enablement ->Accept-> SMT control->Disabled (For ASUS BIOS)'''
* On [[Linux]]
** Following kernel boot parameter can prevent enabling of the x2APIC mode
*** intremap=no_x2apic_optout nox2apic


== References ==
== References ==
<references />
 
[[Category:Hardware]]
* [https://wiki.hpcmate.com CPUs online or offline]
 
 
== Related Pages ==
 
* [[Linux]]
* [[Server]]
* [[Hardware]]
* [[Network]]
 
 
[[Category:Server]]
== Knowledge Graph ==
 
Related
 
→ [[Linux]]
→ [[Server]]
→ [[Hardware]]
→ [[Network]]


[[Category:Reference]]
[[Category:Reference]]

Latest revision as of 11:27, 17 July 2026

Template:Status

Template:TOC

Overview

CPUs online or offline에 대한 기술 문서입니다.

Summary

  • 무엇인가? - CPUs online or offline
  • 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
  • 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시


Purpose

이 문서가 존재하는 이유

  • Goal: CPUs online or offline에 대한 기술 정보 제공
  • Scope: CPUs online or offline의 개념, 사용법, 설정
  • Non-goals: 다른 주제로의 확장


Key Concepts

Concept Description Related
CPUs online or offline HPC/서버 환경에서 중요한 기술 개념 Linux, Server


Detailed Explanation

|status=Draft |owner=Knowledge Agent |last_update=2026-07-16 |review=Pending }} Linux 시스템에서 CPU의 online/offline 상태를 확인하고 관리하는 방법입니다. CPU 상태를 통해 시스템 리소스를 효율적으로 관리하고 성능을 최적화할 수 있습니다.

  • 무엇인가? Linux에서 CPU online/offline 상태 확인 및 제어
  • 왜 필요한가? CPU 리소스 관리, 전원 절약, 디버깅, 성능 최적화
  • 언제 사용하는가? 서버 관리, CPU 문제 진단, 리소스 할당

이 문서가 존재하는 이유

  • Goal: CPU 상태 확인 방법, online/offline 전환, smpboot 오류 해결 가이드 제공
  • Scope: CPU 상태 확인 명령어, online/offline 설정, x2APIC/IOMMU 설정
  • Non-goals: CPU 하드웨어 교체, BIOS 상세 설정

Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증


References


Related Pages

Knowledge Graph

Related

LinuxServerHardwareNetwork

개념 설명 Related