From: Nix <nix@esperi.org.uk>
To: Jesper Juhl <jesper.juhl@gmail.com>
Cc: gbakos@cfa.harvard.edu, linux-kernel@vger.kernel.org
Subject: Re: kernel page size explanation
Date: Sun, 24 Jul 2005 19:37:18 +0100 [thread overview]
Message-ID: <87d5p8aw4h.fsf@amaterasu.srvr.nix> (raw)
In-Reply-To: <9a87484905072118207a85970e@mail.gmail.com> (Jesper Juhl's message of "22 Jul 2005 02:22:04 +0100")
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
next prev parent reply other threads:[~2005-07-24 18:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-21 23:31 kernel page size explanation Gaspar Bakos
2005-07-22 1:20 ` Jesper Juhl
2005-07-23 22:09 ` Gaspar Bakos
2005-07-24 18:37 ` Nix [this message]
2005-07-24 19:01 ` VASM
2005-07-24 19:24 ` Fawad Lateef
2005-07-24 21:28 ` Nix
2005-07-25 13:42 ` VASM
2005-07-25 15:03 ` Valdis.Kletnieks
[not found] <4sSO3-58H-13@gated-at.bofh.it>
2005-07-22 0:15 ` Robert Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d5p8aw4h.fsf@amaterasu.srvr.nix \
--to=nix@esperi.org.uk \
--cc=gbakos@cfa.harvard.edu \
--cc=jesper.juhl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox