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ÇÑ´Ù´Â °Íµµ ¾Ë¼ö ÀÖ´Ù. - HowtoSolaris.com Á¦°ø -
|