Results 1 to 3 of 3
How can I get the page size of my PC in Ubuntu?
In proc/meminfo it says something of HugePageSize, but that term of Huge?
Is that the solution?
Thanks....
- 05-11-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 12
Getting the page size.
How can I get the page size of my PC in Ubuntu?
In proc/meminfo it says something of HugePageSize, but that term of Huge?
Is that the solution?
Thanks.
- 05-12-2010 #2
Try this link
"I'm just a little old lady; don't try to dazzle me with jargon!"
- 05-12-2010 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
There is a C API function getpagesize(void) that returns the size of a page. Here is a small C program that will print the page size to the terminal:
Code:#include <stdio.h> #include <unistd.h> int main(void) { int sz = getpagesize(); printf("%d\n", sz); return 0; }Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote