All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: ruby young <yangyang@les.buaa.edu.cn>
Cc: xen-devel@lists.xensource.com
Subject: Re: Questions about memory zone
Date: Tue, 05 May 2009 09:25:32 +0100	[thread overview]
Message-ID: <4A00141C.76EA.0078.0@novell.com> (raw)
In-Reply-To: <4046dbfd0905050105l1054343ch6bac7b30eb0dde2c@mail.gmail.com>

>>> ruby young <yangyang@les.buaa.edu.cn> 05.05.09 10:05 >>>
>Hi, all~
>I'm interested in memory of xen. And I wondered what does the real mean of
>xen 'zone'. It seems different from linux 'zone'.
>In the source code of xen-3.3.0/xen/common/page_alloc.c, there is defined:
>#define pfn_dom_zone_type(_pfn) (fls(_pfn)-1)
>
>and NR_ZONES is defined:
>#define NR_ZONES (PADDR_BITS - PAGE_SHIFT)
>
>It seems Zone in xen set up as physic address and are separate by the last
>pfn bit set.

Correct.

>But Why does Xen Zone organize like this? And What does the Zone mean?

In order to be able to allocate memory based on address width restrictions,
without adding overhead on sorting memory as it gets (or after it got) freed.

Jan

      reply	other threads:[~2009-05-05  8:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-05  8:05 Questions about memory zone ruby young
2009-05-05  8:25 ` Jan Beulich [this message]

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=4A00141C.76EA.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=yangyang@les.buaa.edu.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.