From owner-freebsd-questions Wed Apr 9 20:05:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA07930 for questions-outgoing; Wed, 9 Apr 1997 20:05:04 -0700 (PDT) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA07907 for ; Wed, 9 Apr 1997 20:04:58 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.6.12) with SMTP id UAA05010; Wed, 9 Apr 1997 20:04:09 -0700 (PDT) Date: Wed, 9 Apr 1997 20:04:09 -0700 (PDT) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: "Michael A. Dorin" cc: questions@freebsd.org Subject: Re: Memory Fragmentation? How can I tell... In-Reply-To: <199704071937.OAA11139@theoden.adc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 7 Apr 1997, Michael A. Dorin wrote: > > How can I tell if my memory is getting fragmented. UNIX memory doesn't "fragment." You can have memory leaks that leave bits of allocated but unattached memory laying around, but these go away when the program is terminated. The best way, I guess, is to use vmstat or top to keep an eye on memory and swap usage, and if it keeps going up with no corresponding increase in processes, then get worried. > Does Apache fragment the memory a lot? > I am getting 5-17,000 hits a day. Not really. If you thought you were having a problem, you could rebuild it with phkmalloc which will let you know if it is doing bad things. > Do I have to reboot my machine a lot to clean up the memory? That's about your only option if you do have a leak. We have a system that's been up 71 days running an ancient Apache that isn't seeing any major problems or memory leaks. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major