Помогите разобраться с такой ситуацией - у меня утекает память в FreeBSD
После загрузки сервера потребление памяти (Active) - порядка 60 Мбайт, потом в течение 10 часов доходит до 300 с лишним.
Система: FreeBSD egorfsever.freebsd.org 7.1-STABLE FreeBSD 7.1-STABLE #0: Tue Feb 24 15:37:32 YEKT 2009 root@egorfsever.freebsd.org:/usr/obj/backup/src/sys/CUSTOM i386
Ядро стандартное - добавил только IPFW, DIVERT, VESA и ALTQ
Железо тоже стандартное:
Список всех процессов:Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-STABLE #0: Tue Feb 24 15:37:32 YEKT 2009
root@egorfsever.freebsd.org:/usr/obj/backup/src/sys/CUSTOM
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) CPU 1.80GHz (1817.91-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf13 Stepping = 3
Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory = 536805376 (511 MB)
avail memory = 511283200 (487 MB)
ACPI APIC Table: <GBT AWRDACPI>
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <GBT AWRDACPI> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0x4000-0x40bf on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82845 host to AGP bridge> on hostb0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem 0xdc000000-0xdcffffff,0xd8000000-0xdbffffff irq 16 at device 0.0 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xc000-0xc07f mem 0xdf000000-0xdf00007f irq 21 at device 1.0 on pci2
miibus0: <MII bus> on xl0
ukphy0: <Generic IEEE 802.3u media interface> PHY 24 on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:04:75:dd:8c:30
xl0: [ITHREAD]
xl1: <3Com 3c905C-TX Fast Etherlink XL> port 0xc400-0xc47f mem 0xdf001000-0xdf00107f irq 22 at device 2.0 on pci2
miibus1: <MII bus> on xl1
xlphy0: <3c905C 10/100 internal PHY> PHY 24 on miibus1
xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl1: Ethernet address: 00:03:99:8a:0e:96
xl1: [ITHREAD]
xl2: <3Com 3c905C-TX Fast Etherlink XL> port 0xc800-0xc87f mem 0xdf002000-0xdf00207f irq 16 at device 3.0 on pci2
miibus2: <MII bus> on xl2
ukphy1: <Generic IEEE 802.3u media interface> PHY 24 on miibus2
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl2: Ethernet address: 00:0a:5e:60:5d:e0
xl2: [ITHREAD]
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xd000-0xd01f irq 19 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0xd800-0xd81f irq 23 at device 31.4 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
pci0: <multimedia, audio> at device 31.5 (no driver attached)
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
cpu0: <ACPI CPU> on acpi0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcf7ff,0xd0000-0xd3fff pnpid ORM0000 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
plip0: <PLIP network interface> on ppbus0
plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1817906776 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based forwarding enabled, default to accept, logging unlimited
ad0: 476940MB <Seagate ST3500630A 3.AAF> at ata0-master UDMA100
acd0: CDROM <ATAPI-CD ROM-DRIVE-52MAX/VER 52CA> at ata1-slave UDMA33
Trying to mount root from ufs:/dev/ad0s1a
WARNING: attempt to net_add_domain(netgraph) after domainfinalize()
Пробовал все процессы прибить - не помогает:last pid: 21180; load averages: 0.00, 0.02, 0.00 up 0+20:11:57 16:38:35
51 processes: 1 running, 50 sleeping
CPU: 0.0% user, 0.0% nice, 0.0% system, 0.7% interrupt, 99.3% idle
Mem: 338M Active, 38M Inact, 87M Wired, 22M Cache, 60M Buf, 3660K Free
Swap: 2048M Total, 184K Used, 2048M Free
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
1460 tufanet 1 4 0 22012K 13908K kqread 9:01 0.00% rtorrent
1030 squid 1 4 0 12588K 6932K kqread 0:10 0.00% squid
1004 root 1 44 0 8008K 2520K select 0:07 0.00% nmbd
1080 root 1 44 0 4892K 2852K select 0:06 0.00% openvpn
1090 root 1 44 0 4892K 2852K select 0:05 0.00% openvpn
1157 www 1 4 0 23980K 13152K accept 0:04 0.00% httpd
1120 root 1 44 0 21932K 10284K select 0:04 0.00% httpd
1155 www 1 4 0 23980K 13004K accept 0:04 0.00% httpd
1657 www 1 4 0 22956K 12276K accept 0:03 0.00% httpd
1454 tufanet 1 44 0 3572K 1780K select 0:03 0.00% screen
1658 www 1 4 0 23980K 12300K accept 0:03 0.00% httpd
6407 egor 1 44 0 8428K 2988K select 0:03 0.00% sshd
1156 www 1 4 0 22956K 12304K accept 0:03 0.00% httpd
1659 www 1 4 0 22956K 11736K accept 0:03 0.00% httpd
1655 www 1 4 0 22956K 12212K accept 0:02 0.00% httpd
1875 www 1 4 0 23980K 13056K accept 0:02 0.00% httpd
1159 www 1 4 0 22956K 12176K accept 0:02 0.00% httpd
6416 root 1 20 0 5512K 2592K pause 0:02 0.00% csh
1660 www 1 4 0 22956K 12196K accept 0:02 0.00% httpd
743 root 1 44 0 3184K 1052K select 0:01 0.00% syslogd
1063 nobody 1 44 0 4892K 2484K select 0:01 0.00% openvpn
1145 root 1 8 0 3212K 1060K nanslp 0:00 0.00% cron
1042 root 1 96 0 3128K 1140K select 0:00 0.00% rsync
6404 root 1 4 0 8428K 2936K sbwait 0:00 0.00% sshd
6409 egor 1 20 0 5512K 2568K pause 0:00 0.00% csh
1457 tufanet 1 20 0 5512K 2360K pause 0:00 0.00% csh
987 root 1 4 0 5840K 2268K kqread 0:00 0.00% cupsd
1009 root 1 4 0 11752K 3988K select 0:00 0.00% smbd
1047 squid 1 -8 0 1376K 640K piperd 0:00 0.00% unlinkd
6415 egor 1 8 0 3620K 1340K wait 0:00 0.00% su
21180 root 1 44 0 3496K 1556K RUN 0:00 0.00% top
872 root 1 4 0 3240K 948K accept 0:00 0.00% vsftpd
1138 root 1 47 0 5752K 2456K select 0:00 0.00% sshd
1037 squid 1 4 0 3372K 868K sbwait 0:00 0.00% ncsa_auth
1208 root 1 5 0 3184K 920K ttyin 0:00 0.00% getty
1209 root 1 5 0 3184K 920K ttyin 0:00 0.00% getty
681 root 1 4 0 1888K 416K select 0:00 0.00% devd
1038 squid 1 4 0 3372K 712K sbwait 0:00 0.00% ncsa_auth
1039 squid 1 4 0 3372K 712K sbwait 0:00 0.00% ncsa_auth
1040 squid 1 4 0 3372K 712K sbwait 0:00 0.00% ncsa_auth
1041 squid 1 4 0 3372K 712K sbwait 0:00 0.00% ncsa_auth
859 root 2 4 0 7224K 2540K select 0:00 0.00% mpd5
1026 squid 1 8 0 5420K 1696K wait 0:00 0.00% squid
1021 root 1 20 0 11752K 3980K pause 0:00 0.00% smbd
141 root 1 20 0 1380K 704K pause 0:00 0.00% adjkerntz
20316 bind 4 4 0 12140K 9500K kqread 0:00 0.00% named
1006 root 1 -8 0 7996K 2216K piperd 0:00 0.00% nmbd
Пробовал менять мамку (с процом и памятью) - не помоглоlast pid: 21432; load averages: 0.00, 0.00, 0.00 up 0+20:18:26 16:45:04
15 processes: 1 running, 14 sleeping
CPU: 0.0% user, 0.0% nice, 0.0% system, 0.8% interrupt, 99.2% idle
Mem: 281M Active, 45M Inact, 85M Wired, 14M Cache, 60M Buf, 64M Free
Swap: 2048M Total, 36K Used, 2048M Free
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
6407 egor 1 44 0 8428K 2988K select 0:03 0.00% sshd
6416 root 1 20 0 5512K 2592K pause 0:02 0.00% csh
743 root 1 44 0 3184K 1052K select 0:01 0.00% syslogd
1145 root 1 8 0 3212K 1060K nanslp 0:00 0.00% cron
6404 root 1 4 0 8428K 2936K sbwait 0:00 0.00% sshd
6409 egor 1 20 0 5512K 2568K pause 0:00 0.00% csh
21429 root 1 44 0 3496K 1460K RUN 0:00 0.00% top
6415 egor 1 8 0 3620K 1340K wait 0:00 0.00% su
1138 root 1 47 0 5752K 2456K select 0:00 0.00% sshd
1208 root 1 5 0 3184K 920K ttyin 0:00 0.00% getty
1209 root 1 5 0 3184K 920K ttyin 0:00 0.00% getty
681 root 1 4 0 1888K 416K select 0:00 0.00% devd
859 root 2 4 0 7224K 2540K select 0:00 0.00% mpd5
141 root 1 20 0 1380K 704K pause 0:00 0.00% adjkerntz
Ума не приложу, где смотреть и ковырять