MAP_POPULATE does not work with XIP on ramdisk

2015-01-06 Thread Andiry Xu
Hi, I'm testing mmap() performance on a ramdisk. The kernel is 3.19-rc3. The device driver is brd, and the file system is ext2. Normal mmap() does not make sense on a ramdisk because it adds additional memory copy, so XIP is enabled to map the pages directly into application's address space.

MAP_POPULATE does not work with XIP on ramdisk

2015-01-06 Thread Andiry Xu
Hi, I'm testing mmap() performance on a ramdisk. The kernel is 3.19-rc3. The device driver is brd, and the file system is ext2. Normal mmap() does not make sense on a ramdisk because it adds additional memory copy, so XIP is enabled to map the pages directly into application's address space.