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