1. Total Physical Memory prtconf command로 확인 할수 있다. 다음은 그 결과이다.

    prtconf

    System Configuration: Sun Microsystems sun4u Memory size: 384 Megabytes System Peripherals (Software Nodes):

  2. File Buffering Memory File Buffering Memory는 MemTool을 이용하여 알아 볼수 있다. 결과는 다음과 같다.

    prtmem

    Total Physical Memory: 384 Megabytes Buffer Cache Memory: 112 Megabytes Kernel Memory: 63 Megabytes Free Memory: 17 Megabytes

  3. Kernel Memory sar명령어를 이용하여 byte단위로 알아 볼수 있다.

    sar -k 1 1

    SunOS ns 5.7 Generic_106541-15 sun4u 08/16/01 09:56:59 sml_mem alloc fail lg_mem alloc fail ovsz_alloc fail 09:57:00 7798784 7207416 0 10035200 9554856 0 2580480 0

  4. Free Memory Free Memory는 거의 항상 0 이다. 왜냐 하면 Buffer cache가 있기 때문이다. Free Memory는 vmstat 명령어로 알아 볼수 있다. vmstat 결과 나오는 첫번째 라인은 bootinf후 나오는평균치 이기 때문에 2번째 라인 부터가 실질적인 결과이다.

    vmstat 3

    procs memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s2 s3 s4 in sy cs us sy id 0 0 0 81832 74792 0 12 75 4 93 0 36 0 1 1 1 265 1940 303 5 1 93 0 0 0 560248 12920 0 0 0 0 0 0 0 0 0 0 0 217 872 296 0 0 100 0 0 0 560248 12920 0 0 0 0 0 0 0 0 0 0 0 205 870 296 0 0 99

  5. 얼마나 많은 메모리를 내가 쓰고 있는 어플리캐이션이 사용하고 있는가를 궁금하게 생각 할것이다. 많은 사용자가 접속하여 사용한다면 각각의 어플리캐이션들이 얼마 만큼의 메모리를 소모 하는지 관리자는 알아 두어야할 필요가 있다. Memtool을 이용하여 알아 볼수 있지만 솔라리스 2.6이상의 경우 pmap명령어로 그 값을 알아 볼수가 있다.

    다음은 그 예이다.

    /usr/proc/bin/pmap -x 1069 ---> thffkfltm 2.6 이상

    -- or --

    /opt/RMCmem/bin/pmem 1069 ---> MemTool을 사용했을 경우

    1069: /bin/ksh Address Kbytes Resident Shared Private Permissions Mapped File 00010000 184 184 184 - read/exec ksh 0004C000 8 8 8 - read/write/exec ksh 0004E000 40 40 - 40 read/write/exec [ heap ] EF5E0000 16 16 8 8 read/exec en_AU.so.1 EF5F2000 8 8 - 8 read/write/exec en_AU.so.1 EF600000 592 576 576 - read/exec libc.so.1 EF6A2000 24 24 8 16 read/write/exec libc.so.1 EF6A8000 8 8 - 8 read/write/exec [ anon ] EF6C0000 16 16 16 - read/exec libc_psr.so.1 EF6D0000 16 16 16 - read/exec libmp.so.2 EF6E2000 8 8 8 - read/write/exec libmp.so.2 EF6F0000 8 8 - 8 read/write/exec [ anon ] EF700000 448 376 368 8 read/exec libnsl.so.1 EF77E000 32 32 8 24 read/write/exec libnsl.so.1 EF786000 24 8 - 8 read/write/exec [ anon ] EF790000 32 32 32 - read/exec libsocket.so.1 EF7A6000 8 8 8 - read/write/exec libsocket.so.1 EF7A8000 8 - - - read/write/exec [ anon ] EF7B0000 8 8 8 - read/exec/shared libdl.so.1 EF7C0000 112 112 112 - read/exec ld.so.1 EF7EA000 16 16 8 8 read/write/exec ld.so.1 EFFFC000 16 16 - 16 read/write/exec [ stack ]


    total Kb 1632 1520 1368 152

    pmap명령의 결과 ksh 프로세서가 1520k의 real memory를 사용 한다는 것을 알수 있다. 1368k는 시스템의 다른 프로세서와 shared한다는 것도 알수 있다.