Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 2015 19:58:15 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        Freebsd fs <freebsd-fs@freebsd.org>, rmacklem@freebsd.org
Subject:   Re: NFS Mount and LARGE amounts of "INACT" memory
Message-ID:  <228350188.61172889.1434758295576.JavaMail.root@uoguelph.ca>
In-Reply-To: <0842fc47d1f138870671b1ed201e686b@thebighonker.lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?228350188.61172889.1434758295576.JavaMail.root>