Date: Sun, 8 Jan 2006 12:56:55 +0300 From: Ilya E Veretenkin <ilyaver@mail.ru> To: Chuck Swiger <cswiger@mac.com> Cc: freebsd-questions@freebsd.org Subject: Re[2]: freebsd 6 - amount of total visible memory is decreasing constantly Message-ID: <1806208098.20060108125655@mail.ru> In-Reply-To: <43C072E6.6020603@mac.com> References: <1388036653.20060108013522@mail.ru> <43C072E6.6020603@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> Problem: Total amount of visible memory is decreasing constantly > [ ... ] >> As you can see, memory which was visible using top utility decreased >> from 3224 to 3195 Megabytes in less than 2 hours. And this process >> will continue to the point, where swapping begins. >> Server during this monitoring was running MySql4 + Apache1.3 under heavy >> load. > Pay attention to "sysctl kern.malloc" or "sysctl vm.zone" periodicly, and see > whether some part of the kernel is leaking memory. All seems to be OK with 'sysctl kern.malloc' and 'sysctl vm.zone': there are no any suspiciously high values. All of kern.malloc values in MemUse field are <=1024K. Only two: SWAP=2189K and devbuf=8003K are above 1024K limit(but this seems to be ok too) What is the source of information which is used by 'top' utility for displaying memory statistics? May be, if I look into this source, I would probably get more clear picture of what is going on? Here is the kern.malloc output: kern.malloc: Type InUse MemUse HighUse Requests Size(s) linux 10 1K - 10 64 DEVFS 9 1K - 10 16,256 atkbddev 2 1K - 2 64 DEVFS3 121 31K - 122 256 nexusdev 2 1K - 2 16 DEVFS1 111 56K - 111 512 I/O APIC 3 3K - 3 512,2048 USB 32 5K - 32 16,32,64,128,256,512 memdesc 1 4K - 1 4096 USBdev 3 2K - 9 16,512 VM pgdata 2 129K - 2 128 entropy 1024 64K - 1024 64 PCI Link 30 3K - 30 16,128 UMAHash 3 133K - 15 512,1024,2048,4096 UFS mount 12 78K - 12 512,2048,4096 UFS dirhash 378 86K - 897 16,32,64,128,256,512,2048,4096 pagedep 10 130K - 13498 128 inodedep 94 536K - 193143 256 newblk 1 1K - 998678 64,512 bmsafemap 9 1K - 23038 64 allocdirect 40 5K - 721507 128 indirdep 7 1K - 14771 64 allocindir 20 3K - 277170 128 freefrag 3 1K - 469886 64 freeblks 15 4K - 58943 256 freefile 17 2K - 113514 64 diradd 52 4K - 120056 64 mkdir 0 0K - 782 64 dirrem 16 1K - 120272 64 newdirblk 0 0K - 112 32 savedino 0 0K - 65214 256 p1003.1b 1 1K - 1 16 NFS daemon 1 1K - 1 512 syncache 1 12K - 1 hostcache 1 48K - 1 IpFw/IpAcct 3 1K - 3 64,128 in_multi 3 1K - 3 64 routetbl 148 67K - 2489 32,64,128,256,512 lo 1 1K - 1 32 arpcom 2 1K - 2 32 clone 4 16K - 4 4096 ifnet 4 7K - 4 512,2048 ifaddr 27 8K - 27 32,64,512,4096 ether_multi 12 1K - 14 16,64 BPF 3 1K - 3 128 mount 81 9K - 156 16,32,64,128,256,1024,2048 vnodes 1 1K - 1 256 VFS hash 1 512K - 1 cluster_save buffer 0 0K - 99819 64,128 vfscache 1 1024K - 1 BIO buffer 0 0K - 2004 2048 acpidev 74 5K - 74 64 soname 6 1K - 6490905 16,32,128 pcb 20 9K - 3714 16,32,64,128,4096 mbuf_tag 0 0K -156956650 32,64 ptys 7 2K - 7 256 ttys 1057 155K - 231047 128,1024 shm 1 16K - 1 sem 4 8K - 4 1024,2048,4096 msg 4 30K - 4 2048,4096 ioctlops 0 0K - 964986 16,32,64,256,512,1024,2048,4096 iov 23 3K - 96143176 16,32,64,128,256 Unitno 12 1K - 2749506 32,64 turnstiles 997 125K - 2437 128 taskqueue 6 2K - 6 256 CAM periph 1 1K - 1 256 sleep queues 997 63K - 2437 64 sbuf 0 0K - 3588 16,32,64,128,256,512,1024,2048,4096 CAM SIM 1 1K - 1 128 rman 173 22K - 604 16,128 CAM queue 3 1K - 3 16 acpisem 23 3K - 23 128 kobj 177 708K - 220 4096 CAM dev queue 1 1K - 1 128 eventhandler 31 4K - 31 64,256 devstat 22 45K - 22 32,4096 bus 886 74K - 20021 16,32,64,128,256,1024 bus-sc 74 82K - 2645 16,32,64,128,256,512,1024,2048,4096 SWAP 2 2189K - 2 64 umtx 996 125K - 2436 128 sysctl 0 0K - 63007 16,32,64 sysctloid 2898 142K - 2898 16,32,64,128 sysctltmp 0 0K - 7826 16,32,128 plimit 19 5K - 31386 256 uidinfo 6 9K - 230 64 cred 100 25K - 14498036 256 pgrp 26 4K - 4650 128 session 25 7K - 3120 256 proc 2 64K - 2 subproc 530 857K - 179051 512,4096 mtx_pool 1 12K - 1 module 294 37K - 295 128 devbuf 1030 8003K - 1032 16,32,64,128,256,512,1024,2048,4096 temp 30 282K - 43951376 16,32,64,128,256,512,1024,2048,4096 ACD driver 1 2K - 1 2048 lockf 4 1K - 930566 128 linker 68 12K - 88 16,32,64,256,512,1024,2048 AR driver 1 1K - 5 512,1024 KTRACE 100 13K - 100 128 ATA DMA 6 2K - 6 256 ithread 60 13K - 62 128,256 AD driver 4 1K - 4 32 zombie 1 1K - 178522 256 proc-args 27 2K - 70601 16,32,64,128,256 kqueue 0 0K - 4062 512,2048 kenv 53 10K - 54 16,32,64 file desc 248 181K - 309852 16,32,64,128,256,512,1024,2048,4096 sigio 1 1K - 51 64 ATA generic 5 5K - 5 1024 acpitask 0 0K - 3 64 cdev 22 6K - 22 256 acpica 1573 159K - 60729 16,32,64,128,256,512,1024 CAM XPT 10 1K - 17 32,128,512 acpi_perf 2 1K - 2 128 isadev 7 1K - 7 128 GEOM 204 43K - 1269 16,32,64,128,256,512,1024,2048,4096 pfs_nodes 49 7K - 49 128 NTFS nthash 1 512K - 1 -- С уважением, Ilya mailto:ilyaver@mail.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1806208098.20060108125655>