From owner-freebsd-fs@FreeBSD.ORG Sat Jun 20 00:00:58 2015 Return-Path: Delivered-To: freebsd-fs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4DEFA06; Sat, 20 Jun 2015 00:00:58 +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 5F552BCD; Sat, 20 Jun 2015 00:00:58 +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=6YKQja9e0K1QOWqNgo6F1dR/VB6xolrISLY54+Nyxdg=; b=Lld2Nbb5coVzJztk8NBbfG88qMMeXozERdDl23pDfrXC/NO5j815z3NTbNgbsF1N7Z3e23tlxktUboK4guMilPTzrIdjOz3MOLvH5TWCMBlaZ6oKateJO8q79WW5JNGz+Du9JxJqNzyj+WpOIe5EyU2KQGhS19n60PpzYCGyqGY=; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]:18339 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1Z66DQ-000PQw-7C; Fri, 19 Jun 2015 19:00:56 -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:00:56 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 19 Jun 2015 19:00:56 -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: <228350188.61172889.1434758295576.JavaMail.root@uoguelph.ca> References: <228350188.61172889.1434758295576.JavaMail.root@uoguelph.ca> Message-ID: 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:00:58 -0000 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? > 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