On 2014-10-30 08:06, Sébastien Bouchex Bellomié wrote:
Hi, An issue on solaris : Anonymous mmap must have a fd set to -1 in order to work (on linux, it is ignored), in alloc_mem_mmap, the fd is set to 1 [.] static int alloc_mem_mmap(struct thread_data *td, size_t total_mem) { int flags = 0; td->mmapfd = 1; if (td->o.mem_type == MEM_MMAPHUGE) { [.] Changing it to -1 makes the code working fine.
That actually just looks like a typo, it makes no sense for this to be '1'... I'll fix it, thanks for finding it!
-- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html