From owner-freebsd-current@freebsd.org Tue Mar 15 15:55:49 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 284E8ACAD6E for ; Tue, 15 Mar 2016 15:55:49 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 07FD51ADB for ; Tue, 15 Mar 2016 15:55:49 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 04031ACAD69; Tue, 15 Mar 2016 15:55:49 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF7F8ACAD68 for ; Tue, 15 Mar 2016 15:55:48 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 782C91ADA; Tue, 15 Mar 2016 15:55:48 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id l68so156478385wml.0; Tue, 15 Mar 2016 08:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=P4RcqX2yRZiLqDTmqorV9fQHPMLdXyx0K4Ly9UNY1os=; b=PE+MCLkHX053Vwknao1A2LDJkvjMbtz2slJ14OzlpVKHww4TlYVZeOjqughzYM5Ewt bzcuXhNAWhHJxy5yU5y1D1IuwNQOafhWGtPe+NE66Q7obOpNU7/TNMfJoY3YSiP1I+RY biyLV92VHdWcdQiOs/+v50M7pdDwY+9amon7qaRGEyXPVXZSAbAbWzw/yZCS+2l32aAt GCV3pRikPuKJpMFnbMEVOYtSHlTDpJD2FIZN/Gki8TJi3+z4OREVq2m8/8IGPe4R5W/C mknU7iHBhMLQVLCtHmOEcAaD4aWpE9gHMwdbObvCg2U3ZTgmF0wUZou17WvtxxFXoFQh RwdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=P4RcqX2yRZiLqDTmqorV9fQHPMLdXyx0K4Ly9UNY1os=; b=GdclZhl/ijuY3C1hPa59C/iMy3OOzysxA8bLdKCUUQHfjGtInn6fQLY6mIKAsWZUA0 gre32vc+HeBdVICPbpGJrWft7VLc95jRY9O16BBYldadUUwpEG9humjxDg7SJb4RHPSX bc8RlULqRVJs5QO29H475MRTulSdbIxFngGWZU6/+aX5q8AcX+SzvECse9y/xaB9ja26 RJj73rdNiOhcEzA7La5DMhPmbJRHWYjfWZkgPojuogIurTh1RSfvPwlXzfW5K14pTMi6 4tMkDw1vT6urBmBBxy4FApJ/yDGw1hqljEUKeJ8mLqZ88qUzPfsXVx2x6LzwXAkV3R30 4p2w== X-Gm-Message-State: AD7BkJJdYFcQi2CoXAaSOGBybQh6YTnenjKKeMMZ5yJmB++pAWu0yynKXvCNXPwOwUkJnA== X-Received: by 10.28.141.10 with SMTP id p10mr23498732wmd.83.1458051139436; Tue, 15 Mar 2016 07:12:19 -0700 (PDT) Received: from ernst.home (p4FC0F64A.dip0.t-ipconnect.de. [79.192.246.74]) by smtp.gmail.com with ESMTPSA id p125sm20974324wmd.16.2016.03.15.07.12.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Mar 2016 07:12:18 -0700 (PDT) Date: Tue, 15 Mar 2016 15:12:17 +0100 From: Gary Jennejohn To: Mark Johnston Cc: current@freebsd.org Subject: Re: how to recycle Inact memory more aggressively? Message-ID: <20160315151217.6de65521@ernst.home> In-Reply-To: <20160314013319.GA68039@wkstn-mjohnston.west.isilon.com> References: <20160312093835.727d7197@ernst.home> <20160314013319.GA68039@wkstn-mjohnston.west.isilon.com> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2016 15:55:49 -0000 On Sun, 13 Mar 2016 18:33:20 -0700 Mark Johnston wrote: > On Sat, Mar 12, 2016 at 09:38:35AM +0100, Gary Jennejohn wrote: > > In the course of the last year or so the behavior of the vm system > > has changed in regard to how aggressively Inact memory is recycled. > > > > My box has 8GB of memory. At the moment I'm copying 100s of gigabytes > > from one file system to another one. > > How exactly are you copying them? How large are the files you're > copying? Which filesystems are in use? > cp(1) from one UFS filesystem to another for backup. The files I copied were all movies on the order of 2GB to 4GB. So it seems unlikely that cp(1) would try to mmap them. The aggregate total was on the order of 300GB. To add further detail - I tend to keep an eye on top while doing copies like this. Previously, I would observe Inact getting up to about 6GB, but it would quickly drop on the order of 3GB and Free would increase correspondingly. Now I see that Inact is pretty much stuck at 6GB and Free only grows by a few 100MB at best, which are quickly used up. In the good old days large file copies would only cause a few MB to be swapped out, but now its on the order of 100MB. -- Gary Jennejohn