All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacob Gorm Hansen <jacobg@diku.dk>
To: xen-devel@lists.xensource.com
Subject: Idea: Small Address Spaces
Date: Mon, 04 Apr 2005 16:55:08 -0700	[thread overview]
Message-ID: <4251D3DC.8040309@diku.dk> (raw)

hi,

in the cases where users (like me) wish to run Xen with MPI on Ethernets 
or similar, and don't care too much about driver isolation, I am 
thinking of trying to apply Jochen Liedtke's old 'small address spaces' 
hack, to see if I can improve domU I/O performance.

My idea is to reserve some additional virtual address space below Xen, 
e.g. at 0xF0000000, and map the kernel part of dom0* there permanently. 
The user space part of dom0 I would map as normal from 0 - 0xC0000000, 
to avoid relinking dom0 applications.  I would use the segments to keep 
the domUs below 0xF0000000. In this way, TLB flushes should only be 
necessary when dom0 exits to user space, not when handling interrupts or 
when domUs are asking for I/O.

Ideally, I would move dom0 to ring0 to save the cost of switching from 
Xen to dom0, but I have no idea how much trouble this will cause.

I have been working a bit on this, and so far I have only managed to 
move dom0 to its new location, and to map the 0xF0000000 - 0xFC000000 
range into the top of domU pgds instead of changing the cr3 (page table 
base) register. I have managed to break a lot of things, I see that as a 
good sign ;-)

I know this loses driver isolation, but I would argue that if it can be 
done relatively cleanly, and if it yields any performance improvements, 
a significant percentage of users would be willing to make that 
tradeoff.  Naturally, this would be a (compile or run-time) option, not 
the default behavior.

Comments are welcome, now is the time to yell stop ;-)

Jacob


* This could probably be made to work with multiple IDDs as well, 
treating the 0xF0000000 slot as a cache of the last run driver-domain 
rather than as a permanent mapping.

             reply	other threads:[~2005-04-04 23:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04 23:55 Jacob Gorm Hansen [this message]
2005-04-06  3:52 ` Idea: Small Address Spaces Jacob Gorm Hansen

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=4251D3DC.8040309@diku.dk \
    --to=jacobg@diku.dk \
    --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.