From owner-freebsd-questions Wed Jan 15 19:54:57 2003 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 701B637B401; Wed, 15 Jan 2003 19:54:55 -0800 (PST) Received: from hotmail.com (f90.sea2.hotmail.com [207.68.165.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12E7143F18; Wed, 15 Jan 2003 19:54:55 -0800 (PST) (envelope-from frank19991@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 15 Jan 2003 19:54:54 -0800 Received: from 128.2.128.52 by sea2fd.sea2.hotmail.msn.com with HTTP; Thu, 16 Jan 2003 03:54:54 GMT X-Originating-IP: [128.2.128.52] From: "Frank Li" To: grog@FreeBSD.org Cc: freebsd-questions@freebsd.org Subject: Re: Increase memory limit ? Date: Wed, 15 Jan 2003 21:54:54 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 16 Jan 2003 03:54:54.0807 (UTC) FILETIME=[07865E70:01C2BD13] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks, Greg, >From: Greg 'groggy' Lehey > > Top shows: > > Mem: 180M Active, 21M Inact, 32M Wired, 13M Cache, 35M Buf, 656K Free > >This shows that you have much more than 128 MB of memory in the >machine. I checked it again (by rebooting it and seeing its booting messages, stupid method, any good method ? uname -a did not give me the physical memory size). The physical memory is actually 256MB. >And how much swap? I forgot. Any command to check that ? Here is the partition info though: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 198399 80463 102065 44% / /dev/ad0s1f 198399 30485 152043 17% /tmp /dev/ad0s1g 42032558 7019929 31650025 18% /usr /dev/ad0s1e 198399 28338 154190 16% /var procfs 4 4 0 100% /proc I vaguely remember it's about 2 times of physical memory as recommended by BSD. So it should be about 512MB. How much should I set it, in this case now ? I need a lot of memory. > > I tried to increase the above limits but failed. They seem to be already > > the maximum. > >No, you need to set them in /etc/login.conf. Here is what I see in this file. It seems already maximum. :cputime=unlimited:\ :datasize=unlimited:\ :stacksize=unlimited:\ :memorylocked=unlimited:\ :memoryuse=unlimited:\ :filesize=unlimited:\ :coredumpsize=unlimited:\ :openfiles=unlimited:\ :maxproc=unlimited:\ :sbsize=unlimited:\ :priority=0:\ >The real issue is why your simulation is dying. Do you have any >messages in /var/log/messages indicating that you're out of swap? Yes. Here is what I found in the log: Dec 30 01:05:05 machi /kernel: pid 28666 (simulation), uid 1000, was killed: out of swap space Dec 30 01:05:05 machi /kernel: swap_pager_getswapspace: failed So, how can I increase swap space? Thanks very much! Frank _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message