From owner-freebsd-fs@FreeBSD.ORG Sat Jun 20 00:30:54 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 E6D35957; Sat, 20 Jun 2015 00:30:53 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thebighonker.lerctr.org", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BBA03212; Sat, 20 Jun 2015 00:30:53 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=PwjIujR1Dm2xA/MVk2O72mfbIDvIB8CoOIt83H4+dCg=; b=q3qXIyUsgePu9i9ZtRUC3YuS1THwSd8IVOqhnrRcoTCGk+kpSEUkw7BmRAASVY7EaH/DXTOTUKGkJiWpGeUyS0f5vpPA1RR31or6ikaJvlrzz5hY4BCHEI67NAc10qYaPZjWu0OLLI6AlHnivXwQUhAtTIJeCCh01EDGOfwTU3A=; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]:45951 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1Z66gO-000Pkc-M5; Fri, 19 Jun 2015 19:30:52 -0500 Received: from 104-54-221-134.lightspeed.austtx.sbcglobal.net ([104.54.221.134]) by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Fri, 19 Jun 2015 19:30:52 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 19 Jun 2015 19:30:52 -0500 From: Larry Rosenman To: Rick Macklem Cc: Freebsd fs , rmacklem@freebsd.org Subject: Re: NFS Mount and LARGE amounts of "INACT" memory In-Reply-To: References: <228350188.61172889.1434758295576.JavaMail.root@uoguelph.ca> Message-ID: <7f8b3449973cff790d996bb1f169b8e0@thebighonker.lerctr.org> X-Sender: ler@lerctr.org User-Agent: Roundcube Webmail/1.1.1 X-Spam-Score: -1.0 (-) X-LERCTR-Spam-Score: -1.0 (-) X-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 X-LERCTR-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001 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: Sat, 20 Jun 2015 00:30:54 -0000 On 2015-06-19 19:00, Larry Rosenman wrote: > On 2015-06-19 18:58, Rick Macklem wrote: >> 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?) >> > Yes, this is the NFS Client, not sure on mmap(2), but that would make > sense > > BUT, I don't like that it kills my ZFS ARC.... > > VM Guys? > BTW, a quick grep if the rsync sources shows it does NOT use mmap, but has some mmap-like routines, so I'm at a loss.... >> 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" >>> -- 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