public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: VASM <vasm85@gmail.com>
To: Nix <nix@esperi.org.uk>
Cc: Jesper Juhl <jesper.juhl@gmail.com>,
	gbakos@cfa.harvard.edu, linux-kernel@vger.kernel.org
Subject: Re: kernel page size explanation
Date: Mon, 25 Jul 2005 00:31:07 +0530	[thread overview]
Message-ID: <4536bb7305072412011fbeaf59@mail.gmail.com> (raw)
In-Reply-To: <87d5p8aw4h.fsf@amaterasu.srvr.nix>

i had one question 
does the linux kernel support only one default page size even if the
processor on which it is working supports multiple ?

On 7/25/05, Nix <nix@esperi.org.uk> wrote:
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

  reply	other threads:[~2005-07-24 19:01 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
2005-07-24 19:01     ` VASM [this message]
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=4536bb7305072412011fbeaf59@mail.gmail.com \
    --to=vasm85@gmail.com \
    --cc=gbakos@cfa.harvard.edu \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nix@esperi.org.uk \
    /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