From: "Scott Parish" <srparish@us.ibm.com>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: xen-devel@lists.xensource.com, Scott Parish <srparish@us.ibm.com>
Subject: Re: comment request: dom0 dma on large memory systems
Date: Sat, 4 Jun 2005 03:59:53 +0000 [thread overview]
Message-ID: <20050604035952.GA3182@us.ibm.com> (raw)
In-Reply-To: <571ACEFD467F7749BC50E0A98C17CDD806E9F77F@pdsmsx403>
On Sat, Jun 04, 2005 at 11:48:16AM +0800, Tian, Kevin wrote:
> ----Original Message-----
> >From: xen-devel-bounces@lists.xensource.com
> >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Scott
> Parish
> >Sent: Friday, June 03, 2005 3:35 PM
> >
> >On x86_64 with 6gig ram, dom0's initial allocation is from memory
> >above the pci hole (referred to as "high memory" in this email) if
> >dom0_mem is set to 2g or higher. The only problem is that most io/dma
> >devices (non-dac) can only dma to the first 32bits worth of machine
> >addresses--thus for some configurations, dom0 has no memory which is
> >dma-able.
>
> IIRC, 2 or 3 months ago, Keir said that default memory allocation for
> Dom0 is all available memory. And then CP has to decrease by balloon
> interface before creating other domains. If this still holds true, I'm
> not sure whether above problem still exists, since all avail memory
> including both <4G and >4G belonging to Dom0 then. (XEN itself only
> consumes a small trunk). However after looking at your patch and then
> the source, it seems that only the max available order, meaning must be
> continuous, is allocated to Dom0 currently. So did I misunderstand this
> concept? If it really only means maximum continuous trunk, then you
> patch definitely shoots straight on the real problem on all 64bit
> platform. ;-)
Right, there are several hacks around this problem, a couple i've
thought of are:
+ enforce dom0 take all memory
+ drop the max order size for MEMZONEs to 18 (in which case
alloc_largest should always allocate from the lower memory)
+ prealloc X amount of low memory (128M for instance) and add
it into the dom0 allocation
You nailed it when you mentioned driver domains (next email); the long
term goal is to make sure we're able to support them and hopefully avoid
the hogging of that memory unnecessarily for non-dma uses. Thanks for
noticing ;^)
(i was also glad Ian brought up numa, i had forgotten about it and this
is probably a good time to think about that while i'm tearing up this
code)
sRp
--
Scott Parish
Signed-off-by: srparish@us.ibm.com
next prev parent reply other threads:[~2005-06-04 3:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 3:48 comment request: dom0 dma on large memory systems Tian, Kevin
2005-06-04 3:59 ` Scott Parish [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-06-04 5:44 Tian, Kevin
2005-06-04 4:12 Tian, Kevin
2005-06-03 9:01 Ian Pratt
2005-06-03 7:35 Scott Parish
2005-06-03 8:58 ` Keir Fraser
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=20050604035952.GA3182@us.ibm.com \
--to=srparish@us.ibm.com \
--cc=kevin.tian@intel.com \
--cc=xen-devel@lists.xensource.com \
/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.