Memory page, virtual memory page, or just page is the smallest block of memory unit in terms of memory management. The page size is determined by the hardware to be exact the processor. The default value for x86 and x86_64 processors is 4kB, although some architectures support larger values 8kB, 16kB or 64kB.
You can even use 2MB page sizes which are not that common but if you are interested just google huge pages. Nonetheless, the OS can allocate more than one page at a time if it needs to. Let me show you how to check your current memory page size by following the steps below.
Prerequisites
- Linux bash environment
Solution
Run the following command:
getconf PAGESIZE
or
getconf PAGE_SIZE
Output:
4096
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.