Arnd Bergmann wrote: > I have seen an earlier patch that modifies madvise to do this, which seems > a little saner than mprotect, although they can probably both be implemented > in a similar way.
Ah, that would make sense. It does fit the intent of the function a bit better. > Alternatively, you could write a new file system similar to hugetlbfs and set > the cache-inhibit bit in its mmap function. Also a possibility. I think the madvise method is a bit cleaner for the apps. Chris