Find the answer to your Linux question:
Results 1 to 3 of 3
Hi How can I check the page size of my main memory ? I've written the simple program in C, but this solution is not satisfying me. #include <unistd.h> int ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Location
    Poland
    Posts
    17

    Checking the page size ?


    Hi
    How can I check the page size of my main memory ?
    I've written the simple program in C, but this solution is not satisfying me.
    #include <unistd.h>
    int main(){
    int a = getpagesize();
    printf ("%d\n",a);
    }
    How can I check it in a different way(in linux)?

    Thanks for help
    Rapheal

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Maybe you'll find some useful information in /proc/meminfo?

  3. #3
    Just Joined!
    Join Date
    Jan 2012
    Posts
    1
    try this command -
    getconf PAGESIZE

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •