Re: NFS Mount and LARGE amounts of "INACT" memory

From: Larry Rosenman <ler_at_lerctr.org>
Date: Mon, 22 Jun 2015 09:40:29 -0500
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_at_lerctr.org
>>>> US Mail: 108 Turvey Cove, Hutto, TX 78634-5688
>>>> _______________________________________________
>>>> freebsd-fs_at_freebsd.org mailing list
>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
>>>> To unsubscribe, send any mail to 
>>>> "freebsd-fs-unsubscribe_at_freebsd.org"
>>>> 

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler_at_lerctr.org
US Mail: 108 Turvey Cove, Hutto, TX 78634-5688
Received on Mon Jun 22 2015 - 12:40:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC