he would like an application to be able to request large pages with a simple madvise() system call
That sounds like an abuse of madvise(). madvise() isn't supposed to instruct the OS on how to provide virtual memory. It's supposed to advise the OS on how the process will use the memory. "I will access this range uniformly" would be something that might inspire the OS to use large pages.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds