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 ...
  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
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    Maybe you'll find some useful information in /proc/meminfo?
    DISTRO=Arch
    Registered Linux User #388732

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

Posting Permissions

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