From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 1 12:56:57 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 87140214 for ; Fri, 1 Aug 2014 12:56:57 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (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 1F6742A89 for ; Fri, 1 Aug 2014 12:56:56 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id x13so4224538wgg.19 for ; Fri, 01 Aug 2014 05:56: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=1XLPNjxaeNvm5aeAooS5rQ3LOiPqHMv5/XIWFZ8R6IU=; b=dwrxaKKKDgXEWLK8OlGawH8RJj+WeplAVkg8LmwbAB8Oi9tppB1OKYutRJBNsX+bLc td1nFKzctQQ13TPwBtMbelJ4s0SmRfQnmx7E3FMxidpNNiymNdZhsUkiqaPggeFkq/9R +ycUoQMbIaqUV8ZiYsk3yXgd4WUyYHGwtCnH2k/sqsmrqySEaVerA/bxjEaIHCIkDCZi QTZwH6dE0xVGHNBUnVQGn+juMeBgwk21ww8TQ+pNTkHk/pwIV+8x10O2FxRh6NDqmpjL VLop2PrNA3ofadi0qN6iSN3lS6EzaVpitnZ6KY82yx6u6tr0itIe4CjyoVe/0TKwrEPW kU2Q== X-Received: by 10.194.22.166 with SMTP id e6mr7904297wjf.88.1406897814281; Fri, 01 Aug 2014 05:56:54 -0700 (PDT) Received: from gumby.homeunix.com ([94.195.197.120]) by mx.google.com with ESMTPSA id ex2sm8488726wic.24.2014.08.01.05.56.53 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 05:56:53 -0700 (PDT) Date: Fri, 1 Aug 2014 13:56:52 +0100 From: RW To: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 10 swapping Idle processes :/ Message-ID: <20140801135652.264bdd4d@gumby.homeunix.com> In-Reply-To: <53D9F04C.6080607@gmail.com> References: <53D962A7.5090105@gmail.com> <53D97C71.3050806@freebsd.org> <53D9F04C.6080607@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: quoted-printable 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 12:56:57 -0000 On Thu, 31 Jul 2014 09:29:16 +0200 Adi wrote: > Hello >=20 > > That looks odd, the output of top shows 0 swap usage, but also 0 > > resident memory for most of the processes... >=20 > Yes very odd. After server restart or after restart all deamons > processes working normally (in memory not in SWAP) for few (1-3) > hours. >=20 > Then start odd swapping. And this is not temporary (for the possible > disappearance of the "swapping trigger") only lasting behavior. >=20 > Process is moved from SWAP to memory if is not idle. And back > to SWAP after idle few seconds. =46rom what you showed before there was zero swap space in use. If what I wrote before is right then the processes marked as swap are still in RAM, they just don't show as active any more. 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.