From owner-freebsd-fs@FreeBSD.ORG Mon Jun 22 14:40:32 2015 Return-Path: Delivered-To: freebsd-fs@nevdull.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 B79F4CC9; Mon, 22 Jun 2015 14:40:32 +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 35D5DF75; Mon, 22 Jun 2015 14:40:32 +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=Yi41SDOQERjINs7dO92ot8H+LI5VBrnGPXNmmPBB1UY=; b=FGf2pUx52k7tgYZPoZfvQrZgxCwk9Zu7dYgMLNC/xc7VBERSasW77qovs9b5ZBbLCC+IOVr+8w/S+C2c2ZCTkNNZnd7ww5u0hSY6fKhvLsq+cOVLNn4r5iHf/ry81NMfWioV21oirGrGYES26wFAxF6wst9bmWXtpA4kw51KH/U=; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]:43395 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1Z72th-0005w4-8N; Mon, 22 Jun 2015 09:40:29 -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); Mon, 22 Jun 2015 09:40:29 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 22 Jun 2015 09:40:29 -0500 From: Larry Rosenman To: Rick Macklem Cc: Freebsd fs , rmacklem@freebsd.org, Freebsd current Subject: Re: NFS Mount and LARGE amounts of "INACT" memory In-Reply-To: <7f8b3449973cff790d996bb1f169b8e0@thebighonker.lerctr.org> References: <228350188.61172889.1434758295576.JavaMail.root@uoguelph.ca> <7f8b3449973cff790d996bb1f169b8e0@thebighonker.lerctr.org> Message-ID: <06abcbf4fab73f3c0ba711269934e0ea@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: Mon, 22 Jun 2015 14:40:32 -0000 On 2015-06-19 19:30, Larry Rosenman wrote: > 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.... Adding in -CURRENT for the VM guys..... > >>> 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