Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2014 10:59:48 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        George Kola <georgekola@gmail.com>, freebsd-hackers@FreeBSD.org
Subject:   Re: Question about ZFS arc cache and page cache
Message-ID:  <5305C404.8010601@FreeBSD.org>
In-Reply-To: <FDC8515A-BD89-482A-8003-002060A702E4@gmail.com>
References:  <FDC8515A-BD89-482A-8003-002060A702E4@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
on 20/02/2014 03:29 George Kola said the following:
> I have a question about what happens when a file on a ZFS filesystem is mmaped into memory. I traced it on illumos and found that the file pages made it into the ARC cache and then I got a copy of it in page cache which was then mapped to my address space. Another process mapping the same file got the same page from the page cache. (I used mdb and converting virtual address to physical address to see if the pages were the same) .
> I was wondering if FreeBSD does the same copy or if the physical pages in ARC can be used for mmap without requiring a copy.  The reason for this question is that we are currently on illumos and are considering moving to FreeBSD and are evaluating the pros and cons.

On FreeBSD the behavior is exactly the same in this respect.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5305C404.8010601>