From owner-svn-src-all@FreeBSD.ORG Sun May 11 06:50:40 2014 Return-Path: Delivered-To: svn-src-all@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 7AA03FAE for ; Sun, 11 May 2014 06:50:40 +0000 (UTC) Received: from mail-ee0-x22c.google.com (mail-ee0-x22c.google.com [IPv6:2a00:1450:4013:c00::22c]) (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 0F6662826 for ; Sun, 11 May 2014 06:50:39 +0000 (UTC) Received: by mail-ee0-f44.google.com with SMTP id c41so3736935eek.3 for ; Sat, 10 May 2014 23:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :mime-version:content-type:content-transfer-encoding; bh=KrUlo/xMJnlLyzlqR4s/CyAPLiIztcX0JsIU/R62d6Q=; b=SxV/t8GSHGP1Wu0C30xA1VNP4i/Lis5qjj9RxVcjMgFT9nSgHWTBYvcaWg5QgnzAUb cRa0rFA7VlHmAZ2j0aE43Gw3USy8jWMuinfv5mD4ax6qE6N2MKYTGnJ/2WUQ749Mx/kw N/INzdr0viPsVR8J32Mml4jI08Y5bLqJ8bTGXA/Hi3ODZIQIFAJBD8T1ZRsWdHnvgbiy xhAW03YDJ1bJcvs1rxU6dfV8luQ1nVwyoZc0HBzFQirRnBAtcGB0UD46L5pdOlcg8NKm f9HTJLLWEooDY6ULo6QCH/8LVFeA3qYZaSzuB53d4sIgfv7/6gwdnX1Kk4796Kp8qkuw YYCw== X-Received: by 10.14.223.136 with SMTP id v8mr23719093eep.91.1399791038135; Sat, 10 May 2014 23:50:38 -0700 (PDT) Received: from ernst.home (p578E0F6E.dip0.t-ipconnect.de. [87.142.15.110]) by mx.google.com with ESMTPSA id 4sm23482326eeq.33.2014.05.10.23.50.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 10 May 2014 23:50:37 -0700 (PDT) Date: Sun, 11 May 2014 08:50:35 +0200 From: Gary Jennejohn To: svn-src-all@freebsd.org Subject: Re: svn commit: r265418 - head/sys/vm Message-ID: <20140511085035.2a38b298@ernst.home> In-Reply-To: <20140510190734.2ce803313362e16d7af7ca86@gmail.com> References: <201405060342.s463g5Fx047447@svn.freebsd.org> <1399379941.22079.263.camel@revolution.hippie.lan> <5369777F.6010203@rice.edu> <20140510190734.2ce803313362e16d7af7ca86@gmail.com> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.17; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 06:50:40 -0000 On Sat, 10 May 2014 19:07:34 +0200 Marc UBM wrote: > On Tue, 06 May 2014 18:59:59 -0500 > Alan Cox wrote: > > > > Does this address the observation that several folks have made on > > > current@ that pages are being pushed to swap much more agressively than > > > in the past, even when the system doesn't seem short of memory? > > > > > > > I hope so. Please let me know if you see any difference. > > > > I also suspect that another side-effect of r254304 is that we are > > swapping out idle processes sooner, before memory has become scarce. > > Has anyone observed this behavior? > > This fixes the aggressive swapping I have observed on my machine (used > swap at 50% with 1GB free memory). > > Thanks a lot! > I also saw some improvement in swapping when there is lots of disk activity. My box has 8GB of RAM. I frequently mv lots of ca. 4GB files from one disk to another. What I observe in top is that inactive memory is on the order of 6GB and free memory is on the order of 50MB when the box starts to swap. Shortly after the swap free memory jumps to about 3GB. Seems to me that such a large amount of inactive memory should be taken advantage of to replenish free memory without having to swap out a single byte. Still, the total number of bytes swapped out is considerably less than before this change was made, so there's definitely an improvement. -- Gary Jennejohn