modify the cache-inhibit and guard bits from userspace?

Christopher Friesen cfriesen at nortel.com
Wed Nov 16 10:15:58 EST 2005


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




More information about the Linuxppc64-dev mailing list