From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 1 13:55:49 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 0A282B7C for ; Fri, 1 Aug 2014 13:55:49 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (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 969DE22D9 for ; Fri, 1 Aug 2014 13:55:48 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id a1so4322804wgh.11 for ; Fri, 01 Aug 2014 06:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=vze39IAQZBVr/oyd2fzTp2SVAlUTYFp6tppfB07cqTs=; b=YQ/STOE2+Ozv7Z41lNbF320ohOiVYcPN6GoR2A5zI46CHOQpMtQEn7USz/9Leywxbk 2YPHZrnHNS1G8iyTM5aON609sc95qn2bhCdHI+wOxf7hSj1+VLPYG7ObC8B7g2Jqw6o7 63DAUHI2oTbEw/AzWIxktn7SvUZe49MgHq8+eQ859D5mUnnz9c7tZDvOvQ3a9bXmcEHd 82J+BwkMjHQJ4NdustzLCa+1IUJ7nF7XDgvFfYpPZ6WEZr19xbU9StaeZlXCm1/Vzxwt hDPL4tCeWxWseU1QeQ5XejZFnETNrGHjDO2npznaNulSpmXxK4fdL6UyVWa5NOZ/xcWn 7HgA== X-Received: by 10.180.85.101 with SMTP id g5mr6997008wiz.51.1406901346023; Fri, 01 Aug 2014 06:55:46 -0700 (PDT) Received: from [192.168.2.100] (dhcp46-187-149-223.eaw.com.pl. [46.187.149.223]) by mx.google.com with ESMTPSA id m8sm21121574wjy.35.2014.08.01.06.55.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 06:55:45 -0700 (PDT) Message-ID: <53DB9C76.2080208@gmail.com> Date: Fri, 01 Aug 2014 15:56:06 +0200 From: Adi User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 10 swapping Idle processes :/ References: <53D962A7.5090105@gmail.com> <53D97C71.3050806@freebsd.org> <53D9F04C.6080607@gmail.com> <20140801135652.264bdd4d@gumby.homeunix.com> In-Reply-To: <20140801135652.264bdd4d@gumby.homeunix.com> Content-Type: text/plain; charset=ISO-8859-1 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 13:55:49 -0000 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. After reset all processes (excluded one I forgot) 7 hours ago is still OK procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 0 0 1 14346M 1181M 306 0 0 0 321 511 0 0 86 1648 661 0 0 100 so only 1 processes is in SWAP idle. Mem: 419M Active, 27G Inact, 2990M Wired, 30M Cache, 1652M Buf, 1130M Free Swap: 32G Total, 10M Used, 32G Free Probably patches from Steven Hartland post: " MFC r265418 - vm_pageout stuck pages MFC r260567 - vm_pageout stuck pages http://svnweb.freebsd.org/base?view=revision&revision=265944 http://svnweb.freebsd.org/base?view=revision&revision=265945 " will help. Dimitry , author thread (with similar problem) http://lists.freebsd.org/pipermail/freebsd-hackers/2014-January/044040.html update FreeBSD to 10.0-STABLE and is better but not 100% ok. my system is not yet updated. I wonder whether it makes sense to checkout 10.0-Releng and replacement only file vm_pageout.c (form STABLE). And then compile the kernel. Instead of updating the entire system to STABLE. Best Regards.