From owner-freebsd-stable@FreeBSD.ORG Fri Mar 3 13:05:06 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A40C116A420 for ; Fri, 3 Mar 2006 13:05:06 +0000 (GMT) (envelope-from mike@jellydonut.org) Received: from mail.secureworks.net (mail.secureworks.net [65.114.32.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 12AAD43D45 for ; Fri, 3 Mar 2006 13:05:05 +0000 (GMT) (envelope-from mike@jellydonut.org) Received: (qmail 79599 invoked from network); 3 Mar 2006 13:05:04 -0000 Received: from unknown (HELO ATLEXCHANGE.secureworks.net) (63.239.86.253) by 0 with SMTP; 3 Mar 2006 13:05:04 -0000 Received: by bromine.back1.secureworks.net with Internet Mail Service (5.5.2657.72) id ; Fri, 3 Mar 2006 08:04:43 -0500 Message-ID: <44083EF7.8000500@jellydonut.org> From: Michael Proto To: freebsd-stable@freebsd.org Date: Fri, 3 Mar 2006 08:04:55 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Subject: Re: RELENG_4 on flash disk and swap X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2006 13:05:06 -0000 In this case I'd just ignore swap. Since /dev/md0 is only a memory disk anyway, you don't really buy anything by having it as swap as opposed to unallocated RAM. Just make sure that all your running programs are able to fit in the 256Mb of RAM you have, otherwise processes will fail to start or others will die when they need to allocate additional RAM. I'm running FreeBSD in 64Mb with no swap and it works fine. A few sysctls that I've found helpful for running without swap: vm.swap_enabled=0 vm.disable_swapspace_pageouts=1 kern.ipc.shm_use_phys=1 -Proto Dmitry Pryanishnikov wrote: > Hello! > > Suppose I have machine with 256Mb of RAM and 256Mb flash ATA disk-on-module. > What configuration (using RELENG_4) should I select: > > 1. No swap at all. > 2. /dev/md0 (default 10Mb) added as a swap device. > > In other words, does RELENG_4 kernel work stable and robust w/o swap or > should I provide a minimum-size swap device? Which configuration (1 or 2) > will give more robustness in case of physical memory shortage? > > Sincerely, Dmitry