From owner-freebsd-questions Wed Jan 15 20:18:26 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 56C0637B401 for ; Wed, 15 Jan 2003 20:18:24 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C7AB43F65 for ; Wed, 15 Jan 2003 20:18:22 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id C13F751955; Thu, 16 Jan 2003 14:48:19 +1030 (CST) Date: Thu, 16 Jan 2003 14:48:19 +1030 From: Greg 'groggy' Lehey To: Frank Li Cc: freebsd-questions@freebsd.org Subject: Re: Increase memory limit ? Message-ID: <20030116041819.GK8731@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 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 On Wednesday, 15 January 2003 at 21:54:54 -0600, Frank Li wrote: > 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). No, you need dmesg for that. For example: CPU: AMD Athlon(tm) XP processor 1700+ (1462.51-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383f9ff AMD Features=0xffffffffc0480000 real memory = 536870912 (524288K bytes) avail memory = 513773568 (501732K bytes) > The physical memory is actually 256MB. > >> And how much swap? > > I forgot. Any command to check that ? pstat -s. But it was the line below the one you quoted from top. > 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 ? It depends on what you need. > I need a lot of memory. In your case, I'd create more swap. But first you should see how much you're using. >>> 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:\ That's not the entire file. There are multiple classes. But this doesn't seem to be your issue. >> 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? Create another swap partition. If you really can't do that, you'll have to create a vnode device with vnconfig(8), but I don't recommend that. In this case, yes, adding more memory might solve the problem. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message