- 论坛徽章:
- 0
|
内存去了哪里?\r\ntop 的输出:\r\n- \r\nlast pid: 15036; load averages: 0.07, 0.13, 0.15 20:59:17\r\n126 processes: 125 sleeping, 1 on cpu\r\nCPU states: 97.0% idle, 1.0% user, 1.9% kernel, 0.1% iowait, 0.0% swap\r\nMemory: 4096M real, 363M free, 16G swap free\r\n\r\n PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND\r\n14980 root 1 59 0 2104K 1464K cpu0 0:00 0.46% top-3.5b8-sun4u\r\n 2011 root 1 0 0 2688K 1648K sleep 188:42 0.15% sample_hardware\r\n 1740 smp 1 59 0 32M 11M sleep 456:34 0.14% oamagent\r\n 1708 root 1 50 0 2136K 1680K sleep 95:42 0.07% spy.sh\r\n 1 root 1 59 0 904K 688K sleep 283:58 0.07% init\r\n16596 root 1 59 0 2128K 1672K sleep 266:35 0.07% spy.sh\r\n 2009 smp 1 59 0 1864K 1096K sleep 42:17 0.05% instantwatcher.\r\n 310 root 7 59 0 4352K 3536K sleep 28:25 0.04% picld\r\n 518 root 27 59 0 6280K 5824K sleep 165:07 0.02% nscd\r\n15035 root 1 0 0 1312K 1128K sleep 0:00 0.02% iostat\r\n15036 root 1 0 0 1336K 1080K sleep 0:00 0.02% awk\r\n15021 root 1 50 0 968K 696K sleep 0:00 0.02% sleep\r\n 869 info2 2 59 0 273M 257M sleep 54:25 0.02% oninit\r\n 901 info2 1 59 0 273M 3256K sleep 12:46 0.02% oninit\r\n14900 root 1 59 0 968K 696K sleep 0:00 0.02% sleep\r\n
复制代码 \r\n内存使用率为超过90%\r\n另外一个计算方法\r\n- root# /usr/bin/ps -eao \"pmem\" | awk \'{a+=$1} END {print a}\'\r\n40.7\r\n
复制代码 \r\n/usr/ucb/ps -axuww 的输出\r\nUSER PID %CPU %MEM SZ RSS TT S START TIME COMMAND\r\n.\r\n.\r\n.\r\n\r\n计算%MEM 一列的总和也为40.7 这些都和top的显示结果不一样,内存去了哪里?\r\n- \r\nroot@ # prtdiag | more\r\nSystem Configuration: Sun Microsystems sun4u Sun Fire V440\r\nSystem clock frequency: 177 MHZ\r\nMemory size: 4GB\r\n\r\n==================================== CPUs ====================================\r\n E$ CPU CPU Temperature Fan\r\n CPU Freq Size Impl. Mask Die Ambient Speed Unit\r\n --- -------- ---------- ------ ---- -------- -------- ----- ----\r\n 0 1593 MHz 1MB US-IIIi 3.4 - -\r\n 1 1593 MHz 1MB US-IIIi 3.4 - -\r\n\r\n================================= IO Devices =================================\r\n Bus Freq\r\nBrd Type MHz Slot Name Model\r\n--- ---- ---- ---------- ---------------------------- --------------------\r\n 0 pci 66 PCI5 scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 PCI5 scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 MB pci108e,abba (network) SUNW,pci-ce\r\n 0 pci 66 PCI4 scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 PCI4 scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 PCI2 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 66 PCI2 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 66 PCI2 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 66 PCI2 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 33 MB isa/su (serial)\r\n 0 pci 33 MB isa/su (serial)\r\n 0 pci 33 MB isa/rmc-comm-rmc_comm (seria+\r\n 0 pci 33 MB pci10b9,5229 (ide)\r\n 0 pci 33 PCI3 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 33 PCI3 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 33 PCI3 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 33 PCI3 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 66 MB pci108e,abba (network) SUNW,pci-ce\r\n 0 pci 66 MB scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 MB scsi-pci1000,30 (scsi-2) LSI,1030\r\n\r\n============================ Memory Configuration ============================\r\nSegment Table:\r\n-----------------------------------------------------------------------\r\nBase Address Size Interleave Factor Contains\r\n-----------------------------------------------------------------------\r\n0x0 2GB 4 BankIDs 0,1,2,3\r\n0x1000000000 2GB 4 BankIDs 16,17,18,19\r\n\r\nBank Table:\r\n-----------------------------------------------------------\r\n Physical Location\r\nID ControllerID GroupID Size Interleave Way\r\n-----------------------------------------------------------\r\n0 0 0 512MB 0,1,2,3\r\n1 0 1 512MB\r\n2 0 1 512MB\r\n3 0 0 512MB\r\n16 1 0 512MB 0,1,2,3\r\n17 1 1 512MB\r\n18 1 1 512MB\r\n19 1 0 512MB\r\n\r\nMemory Module Groups:\r\n--------------------------------------------------\r\nControllerID GroupID Labels\r\n--------------------------------------------------\r\n0 0 C0/P0/B0/D0,C0/P0/B0/D1\r\n0 1 C0/P0/B1/D0,C0/P0/B1/D1\r\n\r\nMemory Module Groups:\r\n--------------------------------------------------\r\nControllerID GroupID Labels\r\n--------------------------------------------------\r\n1 0 C1/P0/B0/D0,C1/P0/B0/D1\r\n1 1 C1/P0/B1/D0,C1/P0/B1/D1\r\n\r\n======== FRU Status =========\r\n-------------------------\r\nFru Operational Status:\r\n-------------------------\r\nLocation Status\r\n-------------------------\r\nSC okay\r\nPS0 okay\r\nPS1 okay\r\nHDD0 present\r\nHDD1 present\r\nHDD2 present\r\nHDD3 present\r\nroot@smcp2 #\r\nroot@smcp2 # prtdiag | grep MB\r\n 0 1593 MHz 1MB US-IIIi 3.4 - -\r\n 1 1593 MHz 1MB US-IIIi 3.4 - -\r\n 0 pci 66 MB pci108e,abba (network) SUNW,pci-ce\r\n 0 pci 33 MB isa/su (serial)\r\n 0 pci 33 MB isa/su (serial)\r\n 0 pci 33 MB isa/rmc-comm-rmc_comm (seria+\r\n 0 pci 33 MB pci10b9,5229 (ide)\r\n 0 pci 66 MB pci108e,abba (network) SUNW,pci-ce\r\n 0 pci 66 MB scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 MB scsi-pci1000,30 (scsi-2) LSI,1030\r\n0 0 0 512MB 0,1,2,3\r\n1 0 1 512MB\r\n2 0 1 512MB\r\n3 0 0 512MB\r\n16 1 0 512MB 0,1,2,3\r\n17 1 1 512MB\r\n18 1 1 512MB\r\n19 1 0 512MB\r\nroot@smcp2 # prtdiag | more\r\nSystem Configuration: Sun Microsystems sun4u Sun Fire V440\r\nSystem clock frequency: 177 MHZ\r\nMemory size: 4GB\r\n\r\n==================================== CPUs ====================================\r\n E$ CPU CPU Temperature Fan\r\n CPU Freq Size Impl. Mask Die Ambient Speed Unit\r\n --- -------- ---------- ------ ---- -------- -------- ----- ----\r\n 0 1593 MHz 1MB US-IIIi 3.4 - -\r\n 1 1593 MHz 1MB US-IIIi 3.4 - -\r\n\r\n================================= IO Devices =================================\r\n Bus Freq\r\nBrd Type MHz Slot Name Model\r\n--- ---- ---- ---------- ---------------------------- --------------------\r\n 0 pci 66 PCI5 scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 PCI5 scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 MB pci108e,abba (network) SUNW,pci-ce\r\n 0 pci 66 PCI4 scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 PCI4 scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 PCI2 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 66 PCI2 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 66 PCI2 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 66 PCI2 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 33 MB isa/su (serial)\r\n 0 pci 33 MB isa/su (serial)\r\n 0 pci 33 MB isa/rmc-comm-rmc_comm (seria+\r\n 0 pci 33 MB pci10b9,5229 (ide)\r\n 0 pci 33 PCI3 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 33 PCI3 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 33 PCI3 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 33 PCI3 pci100b,35 (network) SUNW,pci-x-qge\r\n 0 pci 66 MB pci108e,abba (network) SUNW,pci-ce\r\n 0 pci 66 MB scsi-pci1000,30 (scsi-2) LSI,1030\r\n 0 pci 66 MB scsi-pci1000,30 (scsi-2) LSI,1030\r\n\r\n============================ Memory Configuration ============================\r\nSegment Table:\r\n-----------------------------------------------------------------------\r\nBase Address Size Interleave Factor Contains\r\n-----------------------------------------------------------------------\r\n0x0 2GB 4 BankIDs 0,1,2,3\r\n0x1000000000 2GB \r\n
复制代码 \r\n\r\n没有遇到过此类问题,还需要什么信息,我一并贴上来,还有50%的内存去了哪里? |
|