All of lore.kernel.org
 help / color / mirror / Atom feed
* Small address spaces update
@ 2005-04-26  3:41 Jacob Gorm Hansen
  0 siblings, 0 replies; only message in thread
From: Jacob Gorm Hansen @ 2005-04-26  3:41 UTC (permalink / raw)
  To: xen-devel

hi,

I have managed to get the 'small address spaces' hack running in 
xen-unstable. I have relinked my dom0 userspace (busybox + vmtools) and 
kernel to share the range 0xf0000000 - 0xfc000000, and my domU kernel to 
stay below 0xf0000000, on x86-32.

I use the top part of the domU page directories as a cache for the 
currently running I/O-domain (right now I only have one, dom0), and so 
unless I need to update this cache I can context switch without flushing 
the TLB. This saves more 99% af TLB flushes when doing simple I/O-bound 
stuff such as running iPerf inside a domU.

In some cases (when dom0 has updated or switched its page directory) I 
need to update the cache in the domU page directory, that involves doing 
a memcpy of 48*4 = 192 bytes. How frequently this happens depends on the 
kind of stuff running in dom0 userspace, i.e. for the iperf test is very 
rare.

At this point I have no idea if this increases domU I/O performance, as 
right now I am getting bad iperf numbers in domU both with and without 
this patch applied to Xen, but just wanted to let people know that I am 
still working on this thing when I can find the time.

Best regards,
Jacob

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-26  3:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-26  3:41 Small address spaces update Jacob Gorm Hansen

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.