기본 콘텐츠로 건너뛰기

리눅스 메모리슬롯,cpu정보,파워상태 확인방법

리눅스 메모리슬롯,cpu정보,파워상태 확인방법

centos 현재 사용중인 메모리슬롯, 빈 메모리슬롯 확인방법

1.메모리상태확인
쉘에서 dmidecode -t 17 | egrep ‘Memory|Size’ 를 입력하면

Memory Device
        Size: 8192 MB
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed
Memory Device
        Size: No Module Installed


위와같이 나온다 첫번째 8192MB는 8기가짜리 메모리가 하나 꽂혀있단 뜻이고
아래 No Module Installed 는 빈 슬롯을 뜻한다.

즉 지금 서버에는 메모리슬롯이 총 16개 그중 8기가 메모리 하나만 꽂혀있는걸 확인할 수 있다

2.CPU 확인방법

dmidecode -t processor

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
        Socket Designation: CPU 1
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel          
        ID: E4 06 03 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 62, Stepping 4
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz    
        Voltage: 0.8 V
        External Clock: 100 MHz
        Max Speed: 2100 MHz
        Current Speed: 2100 MHz
        Status: Populated, Enabled
        Upgrade: Other
        L1 Cache Handle: 0x0005
        L2 Cache Handle: 0x0006
        L3 Cache Handle: 0x0007
        Serial Number:
        Asset Tag:
        Part Number:
        Core Count: 6
        Core Enabled: 6
        Thread Count: 12
        Characteristics:
                64-bit capable

Handle 0x0008, DMI type 4, 42 bytes
Processor Information
        Socket Designation: CPU 2
        Type: Central Processor
        Family:
        Manufacturer: Not Specified
        ID: 00 00 00 00 00 00 00 00
        Version: Not Specified
        Voltage: 0.0 V
        External Clock: Unknown
        Max Speed: Unknown
        Current Speed: Unknown
        Status: Unpopulated
        Upgrade:
        L1 Cache Handle: Not Provided
        L2 Cache Handle: Not Provided
        L3 Cache Handle: Not Provided
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Characteristics:
                64-bit capable

위 정보로 보면
cpu소캣은 2개,
첫번째 소캣에 version 부분을 보면 Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz cpu가 꽂혀있는것으로 확인

두번째 소캣은 cpu가 없어 정보가 뜨지 않는걸 확인할 수 있다.

3.파워상태 확인
dmidecode -t chassis
Handle 0x0003, DMI type 3, 21 bytes
Chassis Information
        Manufacturer: ...............................
        Type: Rack Mount Chassis
        Lock: Not Present
        Version: ..................
        Serial Number: ..................
        Asset Tag: ....................
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: None
        OEM Information: 0x00000000
        Height: Unspecified
        Number Of Power Cords: 1
        Contained Elements: 0

위에 나와있는 내용을 보면
power supply state(파워서플라이 상태)는 safe인것이 확인되며

Number Of Power Cords(전원코드 수, 파워갯수): 1 인것이 확인된다

그 외에 dmidecode로 확인 할 수 있는 정보가 많다

정보를 확인할 때 주로 쓰는 옵션으로 -t , -s 가 있으며 dmidecode -t , dmidecode -s 로 어떤것을 확인 할 수 있는지 조회가 가능하다

댓글

이 블로그의 인기 게시물

[Java] Http File Download 이어받기

Http 서버로부터 다운로드 받는 파일을 이어받기 위해서는 Http Header에 아래 두가지 정보를 추가해 주면 된다. URLConnection conn = url.openConnection(); conn.setRequestProperty("Accept-Ranges", "bytes"); conn.setRequestProperty("Range", "bytes=" + mOffset + "-"); 그러면 서버에서는 해당 Offset으로부터 File을 다운로드 시켜준다. 클라이언트가 요청헤더에 Range 필드를 포함 시켜서 보내면, 서버는 그 정보를 가지고 어디서 부터 파일을 보낼지 판단을 합니다. 하지만 클라이언트가(브라우저) Range 필드를 포함 시켜야 할지를 판단하는 기준은 최초 다운로드 요청시 서버의 응답헤더에 따라 다음 요청헤더에 Range 헤더를 생성할지 않할지 판단하게 됩니다. 그걸 당락짓는 응답 헤더 필드는 다음과 같습니다. Accept-Ranges , ETag, Last-Modified 반드시 위 필드를 응답 헤더에 같이 보내줘야 클라이언트는 다음 요청시 Range헤더를 포함시켜 보내게 됩니다. 참고로 말씀 드리면 위 필드를 포함 시켜서 보내더라도 value는 반드시 " " 로 묶어서 보내야 합니다. 안그러면 브라우저는 죽어도 Range 필드를 생성시키지 않습니다. HTTP 1.1 스펙은 따옴표를 강제적으로 해줘라 이런 내용 없습니다. 자바기준 40byte의 파일이라치면 클리이언트 요청을 두번으로 나누었다치면 이케 connection.setRequestProperty("Range", "bytes=0-20"); connection.setRequestProperty("Range", "bytes=20-40"); 단 co...

UltraEdit Professional Version 18.20.0.1014 라이센스 키 넣기

Step 1: unpack rar archive      Step 2: run the setup   Step 3: Use the given keygen to activate    Add the line   127.0.0.1 licensing.ultraedit.com         to your %WINDOWS%\system32\drivers\etc\hosts file                 Enter any data for license-id and password (license-id must be a         number)                 Choose Offline activation and generate corresponding activation         codes for your user codes   Step 4: Enjoy and Support Developers, Buy It, They Deserved It!