From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 1 15:30:58 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D1175751 for ; Fri, 1 Aug 2014 15:30:58 +0000 (UTC) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6904B2FA1 for ; Fri, 1 Aug 2014 15:30:58 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id l18so4451723wgh.14 for ; Fri, 01 Aug 2014 08:30:54 -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:mime-version :content-type:content-transfer-encoding; bh=TD2XM4VqQw3NImNuEZmGeL3b71aQnei2kUjceGasObo=; b=Zu9XGug81WpH3TGnMSoSEgpUHaP6c7TkxvS9bWzB6pW03wJu73zI46RW+vXXiCth0e GbXBzqmof2/YFegrSYg4ilvlXYF2zFoxacxcGrLdaimPHxSYdmNrtAlVHzhmE5cYR2ml yQyOfN1oh+kUCllfWtr4EfRBo4x5qrNUPFNL1wVUQC3d1ue2qzXjMfx4KMUOvoHoLEKC x5wnsd/GOWofK71/Yn43iV98o2gJUsLEwsRilM/t9XKUsbY7fDTfdReWv2R8+zB5YMcF 2qcFfU/HXcBAO/PSeVAhSdOiHxGFTvQUdmutcPaNcE3bLRyHo1L2H0onqRNGOnBod36I yEBQ== X-Received: by 10.180.100.133 with SMTP id ey5mr8167471wib.16.1406907053646; Fri, 01 Aug 2014 08:30:53 -0700 (PDT) Received: from gumby.homeunix.com ([94.195.197.120]) by mx.google.com with ESMTPSA id di7sm21645061wjb.34.2014.08.01.08.30.52 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 08:30:53 -0700 (PDT) Date: Fri, 1 Aug 2014 16:30:50 +0100 From: RW To: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 10 swapping Idle processes :/ Message-ID: <20140801163050.66d32b85@gumby.homeunix.com> In-Reply-To: <53DB9C76.2080208@gmail.com> References: <53D962A7.5090105@gmail.com> <53D97C71.3050806@freebsd.org> <53D9F04C.6080607@gmail.com> <20140801135652.264bdd4d@gumby.homeunix.com> <53DB9C76.2080208@gmail.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2014 15:30:58 -0000 On Fri, 01 Aug 2014 15:56:06 +0200 Adi wrote: > Hello > > > I don't know what's changed, you only used to get this behaviour > > when memory got very low or vm.swap_idle_enabled was set. Possibly > > someones optimized it, or maybe it's a bug. Either way I doubt it's > > a significant problem, setting swap_idle_enabled is just a minor > > optimization. > > > # sysctl vm.swap_idle_enabled > vm.swap_idle_enabled: 0 > > I have never changed this setting. I know, that setting was on pastebin. > After reset all processes (excluded one I forgot) 7 hours ago is > still OK > > > so only 1 processes is in SWAP idle. > ... > > update FreeBSD to 10.0-STABLE and is better but not 100% ok. but seeing processes marked as swapped is not in itself a significant problem. It's really just a way of reducing the priority of certain pages in case actual page-outs occur later. In your original post you had many idle processes marked as swapped and *zero* swap usage.