lkml.org 
[lkml]   [2011]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectCould MADV_REMOVE work with hugetlbfs?
    madvise(MADV_REMOVE) punches a hole in a file (via truncate_range()).
    It's the only way (as far as I know) to return an arbitrary page of
    shared memory to the system. It's supported by tmpfs, but not by
    hugetlbfs.

    So a regular page of shared memory (from shmget() or from mmap() on
    a tmpfs file) can be returned, but huge page of shared memory (from
    shmget(SHM_HUGETLB) or from mmap() on a hugetlbfs file) cannot be
    returned.

    Has anyone thought about adding support for truncate_range and
    MADV_REMOVE to hugetlbfs? How hard would that be?

    Thanks,
    AMC


    \
     
     \ /
      Last update: 2011-11-09 22:57    [W:2.980 / U:0.832 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site