Super page size of 1GB and "pinning" to memory
I am writing a Genomics application for MacOS. I would like to allocate large page sizes of 1GB in memory where I store frequently accessed genomics data. Further, I would like these pages to remain resident in memory and not swapped to disc. How do I do this. I have 256GB RAM and not other applications running but mine, so having large blocks of free memory is not an issue.
Can an application request allocation of these large super pages of 1GB and further pin to memory or is this done by a driver?