Date: Mon, 1 Jun 1998 15:16:13 +0200 (CEST) From: Andrzej Bialecki <abial@nask.pl> To: "Ekaterina N. Ivannikova" <kate@forsys.msk.ru> Cc: freebsd-small@FreeBSD.ORG Subject: Re: firewall/router setup? Message-ID: <Pine.NEB.3.95.980601150835.18314B-100000@korin.warman.org.pl> In-Reply-To: <Pine.BSI.3.90.980601163006.4105A-100000@ns.forsys.msk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.980601150835.18314B-100000>