Does a read-only mmap of a file consume swap space?
A while back, an mmap() read-only for a file would allocate swap space for that memory area in case there was a need to swap out that data in the future. Does this still happen? AIX always just dropped the pages and a page-fault would go back to the file to get them if needed, so there is really no need for swap space to cover the pages mapped read-only for a file. I am just wondering if Linux ever changed to not require swap space to back up such mmap() requests. Thanks!