Date: Mon, 1 Jun 1998 11:58:58 +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.980601114713.27134A-100000@korin.warman.org.pl> In-Reply-To: <Pine.BSI.3.90.980601123234.1307B-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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.980601114713.27134A-100000>