Messages in this thread | | | Date | Thu, 13 May 2004 09:06:09 +0100 | From | Christoph Hellwig <> | Subject | Re: More convenient way to grab hugepage memory |
| |
On Thu, May 13, 2004 at 08:49:03AM +0100, Christoph Hellwig wrote: > Please don't do this. It's messing all over sensitive codepathes in the > kernel, creating special cases and bloat of what you could with simple a > simpe hugetlb_mmap() wrapper ala (pseudocode)
another thing is that you could also simply override the mmap symbol from glibc do transparently use hugetlb pages.
Another problem with this interface is that hugetlb_zero_setup bypassed directory based permissions, aka it's has the same design bug as the broken sysv shm extension for hugetlb pages and thus needs privilegues or one of the horrible hacks discussed on lkml the last days.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |