WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [patch] make Xen assign meta-physical memory in spa

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [patch] make Xen assign meta-physical memory in spaces that match real hardware
From: Jes Sorensen <jes@xxxxxxx>
Date: Thu, 28 Dec 2006 17:52:57 +0100
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 28 Dec 2006 08:52:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061222022213.GC9022%yamahata@xxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <458A9D5D.9000606@xxxxxxx> <20061222022213.GC9022%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (X11/20060527)
Isaku Yamahata wrote:
> > It seems that you and I are attacking the same issues from
> > the different directions.
> > Your motivation is NUMA and mine is pci-access and driver domain.
> > Could you check/test my patches?
> > (Thanks Akio for pointint it out.)

Hi Isaku,

Yep, at least initially  :-)  I would get to the PCI issue later, but
first I need to get dom0 to hit userland and thats still quite a bit
away on sn2.

>> >> More work needs to be done in this area, but it is crucial we assign
>> >> memory correctly, in particular for dom0.
> >
> > As the patch comment says interim, so you may already aware of it...
> > complete_dom0_memmap() is for only dom0.
> > libxc/xc_linux_build.c does it for domU.

Nope I wasn't aware of this, thanks. I am still fighting with dom0.

> > I considered about domU case a little.
> > What do you think about the followings?
> > Basically there are two approaches for domU.
> > i.e.
> > - xen vmm itself arranges memory for domU
> > v.s.
> > - user land tools(libxc/xc_linux_build.c) does.
> > It seems that xen/x86 adopted libxc apporach so that the latter
> > would be appropriate for xen/ia64.

I am not quite sure. For the long term I want to see domU having it's
memory assigned in a node-aware fashion too. Otherwise domU will run
completely inefficient on NUMA systems and NUMA information passed on
to userland applications via libnuma will be bogus.

Since some operating systems probably won't be able to handle sparse
memory like that, it would be interesting to have the policy be
something one can set on a per-dom basis.

We should be able to do this quite easily since Xen doesn't overcommit
memory assigned to the doms.

I tried out your patches and they seem to work for me. My patch just
preserved the option for assigning memory as before, but for dom0 we
probably don't even want to provide that feature for the longer term.

With these patches applied I am seeing PAL warnings about unimplemented
PAL call 42 and then a cachable vs uncacheable access in xenmisc.c.
Anyone else seeing this?

Cheers,
Jes

SAL 0.1: Xen/ia64 Xen/ia64 version 0.0
SAL: AP wakeup using external interrupt vector 0xf3
xen_pal_emulator: UNIMPLEMENTED PAL CALL 42!!!!
(XEN) No logical to physical processor mapping available
get_max_cacheline_size: ia64_pal_cache_summary() failed (status=-1)
$$$$$ PANIC in domain 0 (k6=0xf000003015f48000): try to use WB mem attr
on UC page, mpaddr=3ffffffff0068
(XEN) domain_crash_sync called from xenmisc.c:195
(XEN) Domain 0 (vcpu#0) crashed on cpu#0:
(XEN) d 0xf000003015f7c280 domid 0
(XEN) vcpu 0xf000003015f48000 vcpu 0

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel