From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 7 18:02:20 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02E37AB7 for ; Tue, 7 Jan 2014 18:02:20 +0000 (UTC) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8C4BD1F87 for ; Tue, 7 Jan 2014 18:02:19 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id p61so464347wes.7 for ; Tue, 07 Jan 2014 10:02:17 -0800 (PST) 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=9f57Q8O0TZ+8qRB76xtv168V26rOWGGJG6QYIfdhUq0=; b=RiSGXp4aCv8HQcbaLqqYj6kOati/JSI/uJmpuWBRzg1ULt135JYL39tsLD4RkKiQiS 1ycZxeY3XawEFYLhBYuk0E3fPsZxtDnM6St77lkeJQY73AFjzabzb98XfQlA+i48uW4S xDhs/MQj9hVEUoBA9RQdeMmlQe61d76LDnp/lXRE1nrbt/9Gk3iVM4ZvvD/jyoFD+LW5 miNhAwamX+xLHXD1/1mwIEZUxdSYk2ZfnKfYPf2a5kkhgoODb3LFxbsUbiz7Le03Y3dv t2V7pGowEVjJbqIqKblE95viu0gKQQMDXfxzNlKdJ82MwvI33o52M9/uAgllagpXNwOS wrCg== X-Received: by 10.180.38.8 with SMTP id c8mr18054595wik.48.1389117737763; Tue, 07 Jan 2014 10:02:17 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPSA id mt2sm4702696wic.7.2014.01.07.10.02.16 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 07 Jan 2014 10:02:17 -0800 (PST) Date: Tue, 7 Jan 2014 18:02:16 +0000 From: RW To: freebsd-hackers@freebsd.org Subject: Re: FreeBSD-10 and processes swapping out for no reason Message-ID: <20140107180216.668b133d@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.9.3 (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.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 18:02:20 -0000 On Tue, 7 Jan 2014 20:16:42 +0400 Dmitry Sivachenko wrote: > Hello! > ardware. > > I noticed that some of the processes on 10.0 boxes are marked as > swapped out in top(1) output: Do you have vm.swap_idle_enabled set? > I turned off swap: > # swapinfo > Device 1K-blocks Used Avail Capacity > # > > And state of these processes did not change: still second characted > in state field of ps output is W, and top shows them in angles. I've noticed that with swap_idle_enabled you can have processes shown as swapped, but zero swap in use. If it's a bug it's a long standing one. My guess is that the vm system does something to the pages so that they can be paged-out preferentially.