anonymous mmap issue on solaris

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Bye
Seb

--
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




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux