From owner-freebsd-questions@FreeBSD.ORG Wed May 29 12:50:31 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BD81049A for ; Wed, 29 May 2013 12:50:31 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-bk0-x234.google.com (mail-bk0-x234.google.com [IPv6:2a00:1450:4008:c01::234]) by mx1.freebsd.org (Postfix) with ESMTP id 4F7939FC for ; Wed, 29 May 2013 12:50:31 +0000 (UTC) Received: by mail-bk0-f52.google.com with SMTP id mz10so4871366bkb.11 for ; Wed, 29 May 2013 05:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=VZ3oU3sIvONT075/kWWSv8AVqOHZh/J4QnCRKyFQfIw=; b=YKsTPgWGJBMs5lh4M5ucQarcSUL2FTehTwSIwXWKDraoI6kK8MgAhr90JeUAfTwPa+ wXLQmMEJzLkNonvLYUwl03pOsP2kDMp7rLUssQactKq0ERomXZRVoBlCzypM4JcHacAg gq82iRxIRDEcKoNMxGzq5yP9gzVGVrvC1qaSa1II4Rq2OWy4t7vFhlK4TecnEnYUjzCZ YVMQLtPRi1aK6AT5Rg1pHhCotxzoqc/J5ATLhnXEe930o99JsSidP2JVcxnDxQ3J/9UN orlL498/lh2dRSW8uteQZlYTIZK+r6v1YXYOPY15X0kj7YgOupi8jGTJ+lFGSCAIb84N n1qQ== X-Received: by 10.204.117.77 with SMTP id p13mr660626bkq.174.1369831830368; Wed, 29 May 2013 05:50:30 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPSA id jm15sm11951974bkb.13.2013.05.29.05.50.29 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 29 May 2013 05:50:29 -0700 (PDT) Date: Wed, 29 May 2013 13:50:27 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: "swap" partition leads to instability? Message-ID: <20130529135027.13ef4d5e@gumby.homeunix.com> In-Reply-To: References: <1369558712.96152.YahooMailNeo@web165006.mail.bf1.yahoo.com> <1369644392.92027.YahooMailNeo@web165003.mail.bf1.yahoo.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 12:50:31 -0000 On Wed, 29 May 2013 13:57:22 +0200 Fred Morcos wrote: > Linux has a sysctl variable vm.swappiness which you can set to 0 or 1 > out of 100. Not sure how to achieve the same on FreeBSD, maybe one or > more combinations of the following? You'll probably make things worse. > vm.stats.vm.v_swappgsout: 236969 > vm.stats.vm.v_swappgsin: 28411 > vm.stats.vm.v_swapout: 92607 > vm.stats.vm.v_swapin: 28285 These are just information > vm.disable_swapspace_pageouts: 0 I'm not entirely sure, but I think this just disables paging at runtime - rather than compile time. > vm.defer_swapspace_pageouts: 0 IIRC this defers paging, but it can end up with the paging done on the critical path rather in the background - it's usually a bad idea. > vm.swap_idle_enabled: 0 > vm.swap_idle_threshold2: 10 > vm.swap_idle_threshold1: 2 This why you shouldn't confuse swapping and paging. These are about actually swapping-out processes. It's mainly about reducing memory use on multiuser systems where there many terminal idle at at any time.