From owner-freebsd-hackers Wed Jun 7 00:48:44 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA06427 for hackers-outgoing; Wed, 7 Jun 1995 00:48:44 -0700 Received: from leibniz.math.psu.edu (root@leibniz.math.psu.edu [146.186.130.2]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id AAA06415 for ; Wed, 7 Jun 1995 00:48:40 -0700 Received: from napier.math.psu.edu (wilcox@napier.math.psu.edu [146.186.132.4]) by leibniz.math.psu.edu (8.6.10/8.6.9) with ESMTP id DAA13077; Wed, 7 Jun 1995 03:48:36 -0400 Received: from localhost (wilcox@localhost) by napier.math.psu.edu (8.6.10/8.6.9) with ESMTP id DAA00612; Wed, 7 Jun 1995 03:48:34 -0400 Message-Id: <199506070748.DAA00612@napier.math.psu.edu> X-Mailer: exmh version 1.5.3 12/28/94 To: Temptation cc: freebsd-hackers@freebsd.org Subject: Re: Top In-reply-to: Message Sender: hackers-owner@freebsd.org Precedence: bulk from "Mon, 05 Jun 1995 14:19:38 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 07 Jun 1995 03:48:33 -0400 From: Ken Wilcox Temptation writes: > > > I seen some people talking (err typing) about Top here, and problems with > it not reporting correctly, are there commands to see memfree that work? > and also swapfile %. I have 256megs, and 25 meg swap, and I'm getting > /Kernel: swap_pager: out of space > ( yes the Kernel is set up for the memory, and /var/log/messages picks up > the memory correctly with no errors) > Top says I'm using 100% swap, and only 24megs. > If it is using the swap space, is there a way to force to use the ram > before the swap? If I read this correctly, you are saying you have 256 Megs of physical memory and 25 Megs of swap? Unless I am mistaken, this is your problem. FreeBSD does demand paging, which means that when a program is run it is first loaded into pagespace and then when it goes to start the first instruction of the executable, it performs a page fault and loads the first page and continues on from there. Some OS's do this in a different way where they mmap the executable on the disk and page off of that, which is what I believe SunOS does. Now this could all be wrong, but what I am about to say might not be. As I explained this above, everything that you run must first find it some swap space, meaning, you can only use as much memory as you have swap. That is why it is a general rule, at least with what I have heard, that you have 2 1/2 times as much swap as you have memory. Now, in your case that would explain why you have used 100% of your swap space and only 25 Megs of ram. Now, just add 256 Megs of swap and you'll be set. You could always give me some of that mem :) (I am running it on 8 :( ) -Ken Wilcox > > thanks for all replys to my X pty problem, I can open 256, if can I > solve the memory problem :) >