개발자의 노트
반응형

리눅스 OS 확인

 

# lsb_release -a

LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

Distributor ID: CentOS

Description:    CentOS release 6.2 (Final)

Release:        6.2

Codename:       Final

 

# uname -a

Linux localhost 2.6.32-279.19.1.el6.x86_64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

 

# getconf LONG_BIT

64

 

===> 해당 버전은 CentOS release 6.2 - 64bit (커널 버전 2.6.32)

  

 

기타 리눅스 정보

 

CPU 정보

 

# dmesg | grep CPU

SMP: Allowing 8 CPUs, 0 hotplug CPUs

NR_CPUS:4096 nr_cpumask_bits:8 nr_cpu_ids:8 nr_node_ids:1

PERCPU: Embedded 31 pages/cpu @ffff880028200000 s94424 r8192 d24360 u262144

CPU: Physical Processor ID: 0

CPU: Processor Core ID: 0

mce: CPU supports 9 MCE banks

CPU0: Thermal monitoring enabled (TM1)

CPU0: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz stepping 07

Brought up 8 CPUs

microcode: CPU0 sig=0x206a7, pf=0x2, revision=0x29

microcode: CPU1 sig=0x206a7, pf=0x2, revision=0x29

microcode: CPU2 sig=0x206a7, pf=0x2, revision=0x29

microcode: CPU3 sig=0x206a7, pf=0x2, revision=0x29

microcode: CPU4 sig=0x206a7, pf=0x2, revision=0x29

microcode: CPU5 sig=0x206a7, pf=0x2, revision=0x29

microcode: CPU6 sig=0x206a7, pf=0x2, revision=0x29

microcode: CPU7 sig=0x206a7, pf=0x2, revision=0x29

 

메모리

 

# cat /proc/meminfo

MemTotal:        8031488 kB

MemFree:          240120 kB

Buffers:          139168 kB

Cached:           471708 kB

SwapCached:        89204 kB

Active:          6174976 kB

Inactive:        1179556 kB

Active(anon):    5677848 kB

Inactive(anon):  1066236 kB

Active(file):     497128 kB

Inactive(file):   113320 kB

Unevictable:           0 kB

Mlocked:               0 kB

SwapTotal:       2097144 kB

SwapFree:        1111872 kB

Dirty:              2000 kB

Writeback:             0 kB

AnonPages:       6680140 kB

Mapped:            40368 kB


메모리 사용량 확인

 

많이 사용하는 순으로 10

 

# ps -ef --sort -rss | head -n 11

 

많이 사용하는 순으로 10개의  사용량 보기

 

# ps -eo user,pid,ppid,rss,size,vsize,pmem,pcpu,time,cmd --sort -rss | head -n 11

 

swap 메모리 확인

 

# free -m 혹은 free -g (MB단위 혹은 GB단위)

# free -g

             total       used       free     shared    buffers     cached

Mem:            31         14         16          0          0          0

-/+ buffers/cache:         13         17

Swap:           15          0         15

  

HDD 용량

 

# df -h

Filesystem            Size      Used     Avail      Use%         Mounted on

/dev/sda1              97G      45G       48G       49%            /

tmpfs                     3.9G      0            3.9G      0%              /dev/shm


특정 폴더 용량 확인

 

/game  폴더 내의 폴더별 용량을 확인하려면

 

# cd /game

# du -sh *

19G         app

5.7M         data

2.9G         log

1.3G         util

profile

개발자의 노트

@곽코딩

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!