From: Rafal Wojtczuk <rafal@invisiblethingslab.com>
To: Goswin von Brederlow <goswin-v-b@web.de>
Cc: Dan Magenheimer <dan.magenheimer@oracle.com>,
xen-devel@lists.xensource.com,
Joanna Rutkowska <joanna@invisiblethingslab.com>,
Jan Beulich <JBeulich@novell.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: Assigning contiguous memory to a driver domain
Date: Wed, 15 Sep 2010 14:06:26 +0200 [thread overview]
Message-ID: <20100915120626.GA2024@email> (raw)
In-Reply-To: <87pqwfgqvt.fsf@frosties.localdomain>
On Wed, Sep 15, 2010 at 01:58:30PM +0200, Goswin von Brederlow wrote:
> "Jan Beulich" <JBeulich@novell.com> writes:
>
> >> Well, we do have 2 driver domains in Qubes: one is the netvm (NIC
> >> drivers), and the other one is Dom0 (storage, video, etc). BTW, how is
> >> it that the drivers in Dom0 never has this problem with allocating
> >> continues memory (even if we keep xen free memory = 0)?
> >
> > Merely because post-boot there would not usually be allocations.
>
> It is also called fragmentation.
>
> dom0 gets its memory at the start and probably all in one big
> chunk. Other domains have to use the bits and pices that happen to be
> free when the domain is started.
It does not look right. Jan has already written
* No, how (dis)contiguous the memory of a domain is doesn't matter
* here. What matters is whether the domain can *make* the requested
* memory contiguous, and that depends on how much contiguous
* memory Xen has at the point of the allocation.
> > Merely because post-boot there would not usually be allocations.
It is not too convincing, either. Firstly, assuming there is no dom0mem
parameter to Xen, dom0 gets all memory initially, so when dom0 boots the
first time, Xen free memory = 0 ? And drivers load fine.
Secondly, by default on Fedora, the pm-utils scripts tell NetworkManager to
turn off networking just before entering S3 sleep, and NetworkManager downs all
interfaces. It brings them up on resume. And apparently there are some
drivers, like tg3, that needs to alloc when bringing up the device. Still,
suspend/resume works when all devices are assigned to dom0.
Is it possible that swiotlb layer works differently in dom0 case ? Swiotlb
is switched on by default in dom0 case, is it correct ?
Regards,
Rafal Wojtczuk
next prev parent reply other threads:[~2010-09-15 12:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 9:24 Assigning contiguous memory to a driver domain Rafal Wojtczuk
2010-09-14 9:36 ` Jan Beulich
2010-09-15 9:08 ` Rafal Wojtczuk
2010-09-15 9:39 ` Rafal Wojtczuk
2010-09-15 9:50 ` Jan Beulich
2010-09-15 10:42 ` Joanna Rutkowska
2010-09-15 10:59 ` Jan Beulich
2010-09-15 11:07 ` Joanna Rutkowska
2010-09-15 11:50 ` Jan Beulich
2010-09-15 11:58 ` Goswin von Brederlow
2010-09-15 12:06 ` Rafal Wojtczuk [this message]
2010-09-15 13:49 ` Jan Beulich
2010-09-15 14:44 ` Rafal Wojtczuk
2010-09-15 15:29 ` Jan Beulich
2010-09-20 19:48 ` Konrad Rzeszutek Wilk
2010-09-20 20:27 ` Jeremy Fitzhardinge
2010-09-20 21:41 ` Konrad Rzeszutek Wilk
2010-09-20 21:55 ` Jeremy Fitzhardinge
2010-09-20 23:42 ` Dan Magenheimer
2010-09-21 0:45 ` Jeremy Fitzhardinge
2010-09-21 8:04 ` Tim Deegan
2010-09-21 11:28 ` Joanna Rutkowska
2010-09-21 14:34 ` Konrad Rzeszutek Wilk
2010-09-15 19:25 ` Goswin von Brederlow
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=20100915120626.GA2024@email \
--to=rafal@invisiblethingslab.com \
--cc=JBeulich@novell.com \
--cc=dan.magenheimer@oracle.com \
--cc=goswin-v-b@web.de \
--cc=joanna@invisiblethingslab.com \
--cc=konrad.wilk@oracle.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.