Re: Writing buffers allocated by numa_alloc_onnode to files opened with O_DIRECT

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

 



On 05/02/2017 08:44 PM, Scott Forman (scforman) wrote:
> Hi,
> 
> I am wondering if someone on this mailing list would know if the
> numa_alloc_onnode() function properly aligns memory buffers so that
> they can be written to a file opened with the O_DIRECT flag.
> 
> I have seen some conflicting information on the web about this, so I
> would appreciate any input you might have.

The man page says that it rounds the size to the nearest page size, so I
think you can safely assume that then the alignment will also be fine
for O_DIRECT.

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



[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