From owner-freebsd-fs@FreeBSD.ORG Fri Jun 19 23:58:23 2015 Return-Path: Delivered-To: freebsd-fs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC1C5957; Fri, 19 Jun 2015 23:58:23 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 5D962A6B; Fri, 19 Jun 2015 23:58:22 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DJBACmq4RV/95baINZAxaDTl8Ggxi8SQqFLkoCgXQQAQEBAQEBAYEKhCIBAQEDAQEBASArIAsFCQ0OCgICDRkCHQwBCSYGCAcEAQgUBIgGCA2vcJY4AQEBAQEBAQEBAQEBAQEBAQEBAQEBFwSBHYokhC0HAQEFFyQQBxGCHDsSgTEFk3yEVoQvhESPJYcOJmODMiIxB3wJFyOBAgEBAQ X-IronPort-AV: E=Sophos;i="5.13,646,1427774400"; d="scan'208";a="219184483" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 19 Jun 2015 19:58:15 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 8FE63B3FD4; Fri, 19 Jun 2015 19:58:15 -0400 (EDT) Date: Fri, 19 Jun 2015 19:58:15 -0400 (EDT) From: Rick Macklem To: Larry Rosenman Cc: Freebsd fs , rmacklem@freebsd.org Message-ID: <228350188.61172889.1434758295576.JavaMail.root@uoguelph.ca> In-Reply-To: <0842fc47d1f138870671b1ed201e686b@thebighonker.lerctr.org> Subject: Re: NFS Mount and LARGE amounts of "INACT" memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.11] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jun 2015 23:58:23 -0000 Larry Rosenman wrote: > On 2015-06-17 07:26, Larry Rosenman wrote: > > I have a 64G memory FreeBSD 11-CURRENT system that has a couple of > > mounts to a FreeNAS (FreeBSD 9.3) system. > > > > When my rsync from a different system to one of the NFS mounts > > runs, I > > get like 48G of Inactive memory that goes back to > > free if I umount the share. > > > > I'm wondering why this memory moves from ZFS ARC to INACT. > > > > And, is this expected? A wild ass guess would be yes. Assuming you are referring to the NFS client (and not FreeNAS server) and guessing that rsync uses mmap'd I/O... - The pages will be associated with the file's vnode until that vnode is recycled. (mmap'd I/O can continue after the file is closed.) This could take a long time. I am not knowledgible w.r.t. the VM subsystem, but I'm guessing that there is some way for these pages to be reused if memory is limited? (Hopefully someone with VM knowledge can comment on this?) rick > I've posted screenshots at: > > http://www.lerctr.org/~ler/FreeBSD_inact/ > > > -- > Larry Rosenman http://www.lerctr.org/~ler > Phone: +1 214-642-9640 E-Mail: ler@lerctr.org > US Mail: 108 Turvey Cove, Hutto, TX 78634-5688 > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >