From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 21:03:37 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C82C337B401 for ; Fri, 11 Apr 2003 21:03:37 -0700 (PDT) Received: from mail.clubplus.net (mail.clubplus.net [216.191.22.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 268B943F85 for ; Fri, 11 Apr 2003 21:03:36 -0700 (PDT) (envelope-from dgw@liwest.at) Received: from skytrackercanada.com (3s1.com [209.188.66.29]) by mail.clubplus.net (8.12.7/8.12.7) with ESMTP id h3C45pKa017924 for ; Sat, 12 Apr 2003 00:05:52 -0400 Received: (from root@localhost) by skytrackercanada.com (8.12.6/8.12.6) id h3C43TUp030558 for questions@freebsd.org; Sat, 12 Apr 2003 00:03:29 -0400 (EDT) (envelope-from dgw@liwest.at) Received: from skytrackercanada.com (localhost [127.0.0.1]) by skytrackercanada.com (8.12.6/8.12.6) with ESMTP id h3C43T1j030528; Sat, 12 Apr 2003 00:03:29 -0400 (EDT) (envelope-from david@skytrackercanada.com) Received: (from david@localhost) by skytrackercanada.com (8.12.6/8.12.6/Submit) id h3C43SXD030527; Sat, 12 Apr 2003 00:03:28 -0400 (EDT) (envelope-from david) Date: Sat, 12 Apr 2003 00:03:28 -0400 From: David Banning To: Nathan Kinkade , David Banning , Daniela , questions@freebsd.org Message-ID: <20030412000328.A30425@skytrackercanada.com> References: <20030410141136.A559@skytrackercanada.com> <20030411002220.GA280@sub21-156.member.dsl-only.net> <20030411131556.A20362@skytrackercanada.com> <200304120035.18158.dgw@liwest.at> <20030411212311.A28829@skytrackercanada.com> <20030412020554.GE280@sub21-156.member.dsl-only.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030412020554.GE280@sub21-156.member.dsl-only.net>; from nkinkade@dsl-only.net on Fri, Apr 11, 2003 at 07:05:55PM -0700 X-scanner: scanned by Inflex 0.1.5c - (http://www.inflex.co.za/) X-RAVMilter-Version: 8.4.2(snapshot 20021217) (mail) Subject: Re: X dies - out of swap space X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2003 04:03:38 -0000 > It would have been adjusted/set when you setup the disk at install time > using the disklabel editor. Later, it is probably initialized from an > entry in your /etc/fstab file. I remember setting that up, but isn't that setup just for disk space, as the entries in fstab are all pointing to the difference slices of the drive? However, you appear to have somewhere > near 256MB physical RAM and 100MB of swap space - for a total of around > 350MB virtual memory. This is likely enough for most thing you may be > doing. Your best bet at this point may be in attempting to identify > which process(s) is hogging all your virutual memory. Maybe you could > open an xterm window and launch `top` and leave it running and > frequently look over to see which processes are using the most memory. > You might also want to sort top by memory usage. You can do this at > run-time, but also at launch with `top -o size`. Yes, I have been doing that, but the problem is that I don't see swap space from that command. In the following it shows that I am using presently 34M of swap, but how do I tell from the entries below what is using swap from what is using other memory? "man top" states; OPTIONS -S Show system processes in the display. Normally, system processes such as the pager and the swapper are not shown. This option makes them visible. but still I cannot identify swap from others. last pid: 30466; load averages: 0.00, 0.01, 0.00 up 1+10:03:43 23:56:31 79 processes: 1 running, 78 sleeping CPU states: 0.0% user, 0.0% nice, 1.6% system, 0.4% interrupt, 98.1% idle Mem: 155M Active, 24M Inact, 33M Wired, 9988K Cache, 35M Buf, 25M Free Swap: 100M Total, 34M Used, 66M Free, 33% Inuse PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 22111 david 2 0 44280K 41924K select 0:17 0.05% 0.05% XFree86 193 mysql 2 0 29940K 3168K poll 0:02 0.00% 0.00% mysqld 248 www 2 0 24044K 14896K poll 0:05 0.00% 0.00% python2.1 161 nobody 18 0 22772K 16388K lockf 0:02 0.00% 0.00% httpd 162 nobody 18 0 16976K 10572K lockf 0:02 0.00% 0.00% httpd 1252 nobody 18 0 15080K 8716K lockf 0:01 0.00% 0.00% httpd 1708 nobody 18 0 14964K 8624K lockf 0:01 0.00% 0.00% httpd 1709 nobody 2 0 14936K 8576K sbwait 0:01 0.00% 0.00% httpd 9650 nobody 2 0 14684K 8352K select 0:00 0.00% 0.00% httpd 164 nobody 18 0 14664K 8084K lockf 0:01 0.00% 0.00% httpd 165 nobody 18 0 14392K 8052K lockf 0:02 0.00% 0.00% httpd 1251 nobody 18 0 14148K 7488K lockf 0:01 0.00% 0.00% httpd 163 nobody 18 0 14008K 7648K lockf 0:01 0.00% 0.00% httpd 209 root 2 0 13052K 4024K accept 0:02 0.00% 0.00% perl 155 root 2 0 9716K 2780K select 0:04 0.00% 0.00% httpd