A non-transitory computer-readable storage medium storing instructions, which, when executed on a processor, perform an operation, the operation comprising:
- receiving, via a system call, a request for a pool of memory;
- determining, based on a type of the request, a size of the requested pool of memory;
- creating a dummy memory segment, wherein a size of the dummy memory segment is larger than the size of the requested pool of memory;
- filling the dummy memory segment with one or more pages, based on the determined size of the requested pool of memory;
- and
- deleting the dummy memory segment prior to allocating the one or more pages for the requested pool of memory, wherein deleting the dummy memory segment comprises zeroing the one or more pages in the dummy memory segment.