3. OS이야기/ 01. Administration

[LINUX] OS bit 수 확인 방법

알 수 없는 사용자 2014. 6. 5. 09:34

1. getconf 명령으로 확인

# getconf LONG_BIT

64


--> 64 bit 인 경우 '64' 로, 32 bit 인 경우 '32' 로 표기됨


2. uname 명령으로 확인

# uname -m

x86_64

# uname -a

Linux ktdsoss01 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


--> 64 bit 인 경우 'x86_64' 와 같은 식으로 표기되며, 32 bit 인 경우 'i686' 이나 'i386' 으로 표기됨


3. /proc/cpuinfo 정보를 통해 확인

# cat /proc/cpuinfo

processor       : 0

vendor_id       : GenuineIntel

cpu family      : 6

model           : 23

model name      : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz

stepping        : 6

cpu MHz         : 2893.028

cache size      : 20480 KB

physical id     : 0

siblings        : 4

core id         : 0

cpu cores       : 4

apicid          : 0

initial apicid  : 0

fpu             : yes

fpu_exception   : yes

cpuid level     : 13

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni ssse3 cx16 sse4_1 hypervisor lahf_lm ida arat epb pln pts dts

bogomips        : 5786.05

clflush size    : 64

cache_alignment : 64

address sizes   : 40 bits physical, 48 bits virtual

power management:


--> flags 항목에 'lm' 이라는 단어가 존재하면 64 bit 이고, 없으면 32 bit

      lm은 'long mode' 의 약자로써, 64 bit 작동 모드를 제공한다는 의미