From owner-freebsd-stable Thu May 9 6:20: 2 2002 Delivered-To: freebsd-stable@freebsd.org Received: from home.24cl.com (174.113.sn.ct.dsl.thebiz.net [216.238.113.174]) by hub.freebsd.org (Postfix) with ESMTP id 7928437B415 for ; Thu, 9 May 2002 06:19:52 -0700 (PDT) Received: from ntmm (unknown [63.119.50.193]) by home.24cl.com (Postfix) with ESMTP id 46B232B27E for ; Thu, 9 May 2002 09:19:50 -0400 (EDT) Message-ID: <200205090919510568.03BA6562@sentry.24cl.com> X-Mailer: Calypso Version 3.30.00.00 (1) Date: Thu, 09 May 2002 09:19:51 -0400 Reply-To: myraq@mgm51.com From: "MikeM" To: freebsd-stable@freebsd.org Subject: Steadily increasing memory usage on a lightly loaded server Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm running a web server that is lightly loaded, only about 15MB of= bandwidth usage per day. Ever since the recent kernel patches, I have= been noticing that the memory usage is slowly, but surely, notching up.= The server has about 700MB of memory. About a day after a reboot, the= top command shows all except for 40MB being used, but I do not see any= process that is using it. About three days after a reboot, swap starts to= be used, albeit only a little swap. I've been running 4.5 on this server= since it came out, and I never saw these symtpoms until the recent kernel= patches. How can I find out what is using all this memory? Following are three snapshots: (1)dmesg (2)top command right after a= reboot (3)top command after 5 days of running. (1)dmesg**************************************** Copyright (c) 1992-2002 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 4.5-RELEASE-p4 #7: Fri May 3 10:02:00 EDT 2002 mike@[snip]:/usr/obj/usr/src/sys/STABLE4FW Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (797.48-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x686 Stepping =3D 6 Features=3D0x383fbff real memory =3D 805224448 (786352K bytes) avail memory =3D 778473472 (760228K bytes) Preloaded elf kernel "kernel" at 0xc0468000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pci0: at 1.0 fxp0: port 0x2200-0x223f mem= 0xfea00000-0xfeafffff,0xfeb7f000-0xfeb7ffff irq 10 at device 2.0 on pci0 fxp0: Ethernet address 00:06:29:1f:27:61 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 15.0 on pci0 isa0: on isab0 atapci0: port 0x700-0x70f at device= 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ohci0: mem 0xfeb7e000-0xfeb7efff irq 7 at= device 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: (unknown) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pcib1: on motherboard pci1: on pcib1 ahc0: port 0x2300-0x23ff mem= 0xeffff000-0xefffffff irq 9 at device 3.0 on pci1 aic7892: Ultra160 Wide Channel A, SCSI Id=3D7, 32/255 SCBs orm0: