Question about ZFS arc cache and page cache
George Kola
georgekola at gmail.com
Thu Feb 20 01:29:55 UTC 2014
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.
Thanks,
George
More information about the freebsd-hackers
mailing list