2012년 1월 26일 목요일

LINUX, AIX(IBM)에서 CPU를 알아보자


리눅스에서는 /proc/cpuinfo를 보면 된다. 들어있는 정보는 아래와 같다.

-----------------------------------------------------------------------------------------
processor       : 7
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
stepping        : 6
cpu MHz         : 3000.089
cache size      : 6144 KB
physical id     : 1 -> 실제 cpu의 번호이다. 이걸로 cpu의 갯수를 알 수 있다.siblings        : 4
core id         : 7
cpu cores       : 4 -> quad를 의미하며 1개의 cpu에 논리적으로 4개의 cpu의 역할을 한다.
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl est tm2 xtpr
bogomips        : 5999.45
-----------------------------------------------------------------------------------------

IBM에 AIX OS에서는
* CPU확인은 lsdev -C |grep proc
proc0         Available 00-00         Processor
proc2         Available 00-02         Processor
proc4         Available 00-04         Processor
proc6         Available 00-06         Processor
proc8         Available 00-08         Processor
proc10        Available 00-10         Processor
proc12        Available 00-12         Processor

* CPU Hz확인은 lsattr -El proc0
frequency   2,301,696,000     Processor Speed       False
smt_enabled true           Processor SMT enabled False
smt_threads 2              Processor SMT threads False
state       enable         Processor state       False
type        PowerPC_POWER5 Processor type        False
* 메모리 확인은 lsattr -El sys0 -a realmem or svmon이다. 그런데 topas로 보는게 용의함
realmem 8388608 Amount of usable physical memory in Kbytes False

svmon
               size       inuse        free         pin     virtual
memory      2097152     2088415        8737      535148     2262558
pg space    3407872     1014285
               work        pers        clnt       other
pin          444761           0        2804       87583
in use      1802301           0      286114
PageSize   PoolSize      inuse       pgsp        pin    virtual
s   4 KB          -    1949471    1014013     438780    2123422
m  64 KB          -       8684         17       6023       8696
topas
                                                Faults      925  Real,MB    8192
Disk    Busy%     KBPS     TPS KB-Read KB-Writ  Steals        0  % Comp     86
power1   23.0    11.8K   777.0   11.5K  261.8   PgspIn        0  % Noncomp  12
hdisk172 14.0     6.4K   419.0    6.3K  134.3   PgspOut       0  % Client   12
hdisk160  8.0     5.4K   358.0    5.3K  127.5   PageIn        0
power75  11.0   192.4     24.0  136.3    56.1   PageOut       0  PAGING SPACE
                                                Sios          0  Size,MB   13312
Name            PID  CPU%  PgSp Owner                            % Used     30
topas       6520850   2.5   6.4 suser           NFS (calls/sec)  % Free     70
oracle      4853922   1.6   5.2 oracle          ServerV2       0
oracle      7024664   0.8   5.9 oracle          ClientV2       0   Press:
oracle      7028746   0.7   5.9 oracle          ServerV3       0   "h" for help
oracle      6389760   0.6   5.9 oracle          ClientV3       0   "q" to quit
oracle      6549740   0.6   6.0 oracle
oracle      6901946   0.6   5.9 oracle
oracle      6324304   0.6   5.9 oracle

댓글 없음:

댓글 쓰기