fadvise(POSIX_FADV_DONTNEED) and huge pages

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

 



Hello,

posix_fadvise(2) tells me that when using POSIX_FADV_DONTNEED, "Requests
to discard partial pages are ignored. If the application requires that
data be considered for discarding, then offset and len must be
page-aligned.".

How does this interact with huge pages?

Is it sufficient to align with getpagesize()? Or do offset and len need
to be aligned with huge page offsets when the region is backed by a huge
page?

In the latter case, is there a way for userspace to ensure this?


Best,
-Nikolaus

-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux