CPUs online or offline: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Created page with " == Check CPU status == <syntaxhighlight lang="bash"> # get the list of offline CPUs cat /sys/devices/system/cpu/offline cat /sys/devices/system/cpu/online # get the list of online CPUs # get the list of CPUs ls -ld /sys/devices/system/cpu/cpu* # print individual CPU's online/offline status cat /sys/devices/system/cpu/cpu*/online # set online CPU <number> echo 1 > /sys/devices/system/cpu/cpu<number>/online or sudo chcpu -e <number> # set offline CPU <number> e...")
 
(Fix: remove --- horizontal lines (9 removed))
 
(6 intermediate revisions by 2 users 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: 다른 주제로의 확장
 
 
== Key Concepts ==
 
{| class="wikitable"
! 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]] 상세 설정
{| class="wikitable"
! 개념
! 설명
! Related
|-
 
 
== Best Practices ==
 
* 최신 버전 사용 권장
* 공식 문서 참고
* 테스트 환경에서 먼저 검증


smpboot: native_cpu_up is also related to [[x2APIC]]<ref>https://courses.cs.washington.edu/courses/cse451/24wi/documentation/x2apic.pdf</ref> features cause operating systems cannot use [[x2APIC]] unless Processor [[x2APIC]] [[Support]] is set to "Force Enabled" prior to booting.


== References ==
== References ==
<references />
 
* [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]]

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