From owner-freebsd-questions Tue Jun 2 14:33:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA13657 for freebsd-questions-outgoing; Tue, 2 Jun 1998 14:33:17 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA13647 for ; Tue, 2 Jun 1998 14:33:06 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id RAA12016; Tue, 2 Jun 1998 17:22:50 -0400 (EDT) (envelope-from listread) Message-Id: <199806022122.RAA12016@lucy.bedford.net> Subject: Re: swap space filling up overnight. In-Reply-To: from "ringlord@bbs.dcoisp.net" at "Jun 2, 98 01:17:58 pm" To: ringlord@bbs.dcoisp.net Date: Tue, 2 Jun 1998 17:22:50 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG X-no-archive: yes Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ringlord@bbs.dcoisp.net wrote: > Greetings. > Granted, that was not the most descriptive topic I could have given, but > I hope it gets the point across. > I am running an apache 1.2.6 on a freebsd rel 2.2.6 box. > In one night, the swap space reported by df, as reported as /dev/wd0a > holding 31775 has filled up almost entirely. This sounds more like your root partition, not swap. AFAIK df doesn't report swap usage. (pstat -s does, though) Swap is traditionally on the 'b' partition. Check your /etc/fstab for details of what is mounted where. > When just last night the percentage of swap taken was only at 50 > percent. > I have stopped the webserver, I have rebooted the machine. Still for > some reason the swap space is still reported as completely full. > I haven't realy made any modifications to the machine, so I am a bit > puzzled at this point. Right. Look through the root partition (the files under / but not on another partion) for what's wrong. (Swap will always be freed up on reboot). I have a feeling that apache may be caching there, or filling a log file, assuming that /var is part of / on your system. Try this: cd / du -k -x This will give you a subdir-by-subdir breakout of diskusage. > Is there any script or command that I can perform that will give me a > readout of what the swap is being used for? pstat -s, but then again swap isn't the problem, I think. Dave -- DISCLAIMER: If it can be disclaimed, it is. DISCLAIMER: In particular, I don't represent any organization. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message