From owner-freebsd-small Mon Jun 1 06:14:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA02544 for freebsd-small-outgoing; Mon, 1 Jun 1998 06:14:17 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA02502 for ; Mon, 1 Jun 1998 06:14:09 -0700 (PDT) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.8.8/8.8.5) with SMTP id PAA24776; Mon, 1 Jun 1998 15:16:13 +0200 (CEST) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Mon, 1 Jun 1998 15:16:13 +0200 (CEST) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: "Ekaterina N. Ivannikova" cc: freebsd-small@FreeBSD.ORG Subject: Re: firewall/router setup? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 1 Jun 1998, Ekaterina N. Ivannikova wrote: > > > On Mon, 1 Jun 1998, Andrzej Bialecki wrote: > > > > For the exact interpretation of this sysctl in 2.2.5 you should ask John > > Dyson - he's the person behind it. > > > > Well, isn't there another way ? Could I make a very small RAM disk and > tell FreeBSD to swap on it ? If yes _how_ can I make a RAM disk for 2.2.5 ? I'm pretty sure this won't work the way you expect it to. If the VM subsytem feels like it needs to swap out some pages, then it means it's low on memory, i.e. it lacks the free pages. Given a constant amount of RAM available, if you take some of it to make a RAM disk, this space will be permamently lost to the VM subsystem, and consequently it will have even less free pages to use, and it will start swapping much earlier. So, using up some memory to create a RAM-based swap area makes things worse, not better. How can you make a RAM disk? Simple: mount_mfs -T minimum -s 4096 /dev/null /mnt or something very similar... Andrzej Bialecki --------------------+--------------------------------------------------------- abial@nask.pl | if(halt_per_mth > 0) { fetch("http://www.freebsd.org") } Research & Academic | "Be open-minded, but don't let your brains to fall out." Network in Poland | All of the above (and more) is just my personal opinion. --------------------+--------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message