From owner-freebsd-small Mon Jun 1 02:56:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA05892 for freebsd-small-outgoing; Mon, 1 Jun 1998 02:56:20 -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 CAA05856 for ; Mon, 1 Jun 1998 02:56:12 -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 LAA29818; Mon, 1 Jun 1998 11:58:58 +0200 (CEST) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Mon, 1 Jun 1998 11:58:58 +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 the same subject. I would love to use a couple of FWTK proxies on a small > FreeBSD system loaded from a floppy or two. The problem is I can't make > it out what is the right way of telling FreeBSD there is _no_ swap space > available. Or is swapping an absolute must for *BSD ? Since proxies > fork a child for each serviced request what will happen when there is no > more free memory _and no_ swap ? Will the kernel panic or will just fork > fail ? There are two sysctl's for this: vm.defer_swapspace_pageouts vm.disable_swapspace_pageouts When set to 1, the first tells VM to avoid paging, and the second tells it the system doesn't have any swap. When there are no free pages available, and the process demands them (e.g. by forking), the system will kill offending process (or is it a random process which is the victim? I don't remember, but be prepared for frequent deaths.. :-) The kernel shouldn't panic, but the programs better be well designed to behave appropriately when they can't fork... 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