[lkml]   [2005]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: kernel page size explanation
    On 22 Jul 2005, Jesper Juhl suggested tentatively:
    > You can
    > A) look in the .config file for your current kernel (if your arch
    > supports different page sizes at all).
    > B) You can use the getpagesize(2) syscall at runtime. getpagesize()
    > returns the nr of bytes in a page - man getpagesize - I'm not sure
    > that's universally supported though.
    > C) You can look at /proc/cpuinfo or /proc/meminfo , IIRC some archs
    > report page size there - not quite sure, can't remember...

    D) getconf PAGE_SIZE should work, although what it does on arches
    with variable page sizes isn't clear to me.

    `But of course, GR is the very best relativity for the masses.'
    --- Wayne Throop
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-07-24 20:41    [W:0.018 / U:68.192 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site