* Opteron server and NUMA
@ 2005-10-06 22:59 Alexander Charbonnet
2005-10-06 23:09 ` Nicholas Lee
0 siblings, 1 reply; 7+ messages in thread
From: Alexander Charbonnet @ 2005-10-06 22:59 UTC (permalink / raw)
To: xen-devel
Hi all,
I've just gotten a new dual dual-core box at work, and am experimenting with
Xen 3.0 on it. I've found that I can compile SMP just fine, and it sees all
four processors, but when I add K8 NUMA, the compile breaks.
I've benchmarked tasks taking 50-80% longer than native, and I'm pretty sure
it's because the kernel doesn't know that different processors are closer to
different areas of memory.
Y'all are probably working on it, but I wanted to make sure you were aware
that it's broken. This box doesn't need to go live for a while yet, so if
you need me to try anything out, I'd be glad to.
Thanks for all your work!
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opteron server and NUMA
2005-10-06 22:59 Opteron server and NUMA Alexander Charbonnet
@ 2005-10-06 23:09 ` Nicholas Lee
2005-10-07 8:58 ` Keir Fraser
0 siblings, 1 reply; 7+ messages in thread
From: Nicholas Lee @ 2005-10-06 23:09 UTC (permalink / raw)
To: Alexander Charbonnet; +Cc: xen-devel
On 10/7/05, Alexander Charbonnet <alexander@charbonnet.com> wrote:
> Xen 3.0 on it. I've found that I can compile SMP just fine, and it sees all
> four processors, but when I add K8 NUMA, the compile breaks.
I just noted this complier breakage as well.
Thinking about it, I expect the nature of Xen makes it tricky to get
going at the moment.
--
Nicholas Lee
http://stateless.geek.nz
gpg 8072 4F86 EDCD 4FC1 18EF 5BDD 07B0 9597 6D58 D70C
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opteron server and NUMA
2005-10-06 23:09 ` Nicholas Lee
@ 2005-10-07 8:58 ` Keir Fraser
2005-10-08 1:35 ` Alexander Charbonnet
0 siblings, 1 reply; 7+ messages in thread
From: Keir Fraser @ 2005-10-07 8:58 UTC (permalink / raw)
To: Nicholas Lee; +Cc: xen-devel, Alexander Charbonnet
On 7 Oct 2005, at 00:09, Nicholas Lee wrote:
>> Xen 3.0 on it. I've found that I can compile SMP just fine, and it
>> sees all
>> four processors, but when I add K8 NUMA, the compile breaks.
>
> I just noted this complier breakage as well.
>
> Thinking about it, I expect the nature of Xen makes it tricky to get
> going at the moment.
We have some ideas about how to get this working, but you're right that
it is not a totally trivial thing to fix. Don't hold your breath until
at least 3.0 is out the door.
-- Keir
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opteron server and NUMA
2005-10-07 8:58 ` Keir Fraser
@ 2005-10-08 1:35 ` Alexander Charbonnet
2005-10-08 11:16 ` Nicholas Lee
0 siblings, 1 reply; 7+ messages in thread
From: Alexander Charbonnet @ 2005-10-08 1:35 UTC (permalink / raw)
To: xen-devel; +Cc: Nicholas Lee
I now think that lack of NUMA support isn't the problem. I've done some
benchmarking of my database-backed Perl Web app with the Apache benchmark
tool, "ab". I ran the same query with differing total requests and
concurrency. After the first time, which I did manually before the tests,
all the results will be in the database query cache. Therefore, I don't
expect any disk I/O.
The results seem to be significantly slower than they should be. Is this a
problem with my config, the new x86-64 code, SMP stuff, or is it just the
cost of doing business?
This table shows the time in seconds for each request x concurrency and
kernel. There's native with NUMA, native without NUMA, and finally Domain0
(you may want to view this with a fixed font).
NUMA noNUMA Dom0
20x1 44.8 45.5 67.4
20x2 23.2 24.0 36.6
20x3 17.9 18.4 30.2
20x4 13.3 13.5 23.9
20x8 14.6 14.6 23.6
40x2 46.1 47.5 72.8
40x4 25.2 26.6 46.1
40x8 28.7 27.8 40.4
Thanks,
Alex
On Friday 07 October 2005 03:58 am, Keir Fraser wrote:
> On 7 Oct 2005, at 00:09, Nicholas Lee wrote:
> >> Xen 3.0 on it. I've found that I can compile SMP just fine, and it
> >> sees all
> >> four processors, but when I add K8 NUMA, the compile breaks.
> >
> > I just noted this complier breakage as well.
> >
> > Thinking about it, I expect the nature of Xen makes it tricky to get
> > going at the moment.
>
> We have some ideas about how to get this working, but you're right that
> it is not a totally trivial thing to fix. Don't hold your breath until
> at least 3.0 is out the door.
>
> -- Keir
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opteron server and NUMA
2005-10-08 1:35 ` Alexander Charbonnet
@ 2005-10-08 11:16 ` Nicholas Lee
2005-10-08 17:21 ` Alexander Charbonnet
0 siblings, 1 reply; 7+ messages in thread
From: Nicholas Lee @ 2005-10-08 11:16 UTC (permalink / raw)
To: Alexander Charbonnet; +Cc: xen-devel
On 10/8/05, Alexander Charbonnet <alexander@charbonnet.com> wrote:
> I now think that lack of NUMA support isn't the problem. I've done some
> benchmarking of my database-backed Perl Web app with the Apache benchmark
> tool, "ab". I ran the same query with differing total requests and
> concurrency. After the first time, which I did manually before the tests,
> all the results will be in the database query cache. Therefore, I don't
> expect any disk I/O.
Could be Net IO. One thing I note with my Xen 2.0 setup is that it
wasn't very high performance.
There are a couple of emails I've noted but haven't had the time to try out yet:
http://lists.xensource.com/archives/html/xen-users/2005-08/msg00211.html
"virtual eth devices had packet queueing disabled (txqueuelen:0 on
ifconfig), and had a 4k size max. ring buffer for
transfering packets between domains. Whenever that buffer would run
full, packets are dropped..."
http://lists.xensource.com/archives/html/xen-users/2005-07/msg00708.html
"The problem is that the data structure in which the ring buffer is
organized has to fit into one memory page (4096 bytes)"
http://lists.xensource.com/archives/html/xen-devel/2005-09/msg00196.html
"default qdisc being inadequate"
"tc qdisc add dev eth0 root tbf rate 50mbit latency 20ms burst 50k"
One of the problems with Xen at the moment is the lack of
documentation/cluebooks for stuff like this at the moment. Best
practice guides etc. Still a learning process.
--
Nicholas Lee
http://stateless.geek.nz
gpg 8072 4F86 EDCD 4FC1 18EF 5BDD 07B0 9597 6D58 D70C
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opteron server and NUMA
2005-10-08 11:16 ` Nicholas Lee
@ 2005-10-08 17:21 ` Alexander Charbonnet
0 siblings, 0 replies; 7+ messages in thread
From: Alexander Charbonnet @ 2005-10-08 17:21 UTC (permalink / raw)
To: xen-devel; +Cc: Nicholas Lee
The traffic over the local adapter between my app and MySQL may be
significant. I've tried both the socket connection and the TCP connection
without a big difference.
I recompiled with the necessary kernel option and ran:
tc qdisc add dev eth0 root tbf rate 50mbit latency 20ms burst 50k
as suggested by one of your links, but there wasn't a significant difference.
I used ab to benchmark grabbing a 100MB file 100 times from localhost.
Natively it took 15.9 seconds. Under Domain0 it took 41% longer, 22.4
seconds. That sure looks like it makes up a huge chunk of the overall
slowdown I'm noticing.
Any other tricks to try to get network performance closer to native?
Thanks!
Alex
On Saturday 08 October 2005 06:16 am, Nicholas Lee wrote:
> On 10/8/05, Alexander Charbonnet <alexander@charbonnet.com> wrote:
> > I now think that lack of NUMA support isn't the problem. I've done some
> > benchmarking of my database-backed Perl Web app with the Apache benchmark
> > tool, "ab". I ran the same query with differing total requests and
> > concurrency. After the first time, which I did manually before the
> > tests, all the results will be in the database query cache. Therefore, I
> > don't expect any disk I/O.
>
> Could be Net IO. One thing I note with my Xen 2.0 setup is that it
> wasn't very high performance.
>
> There are a couple of emails I've noted but haven't had the time to try out
> yet:
>
> http://lists.xensource.com/archives/html/xen-users/2005-08/msg00211.html
>
> "virtual eth devices had packet queueing disabled (txqueuelen:0 on
> ifconfig), and had a 4k size max. ring buffer for
> transfering packets between domains. Whenever that buffer would run
> full, packets are dropped..."
>
> http://lists.xensource.com/archives/html/xen-users/2005-07/msg00708.html
>
> "The problem is that the data structure in which the ring buffer is
> organized has to fit into one memory page (4096 bytes)"
>
> http://lists.xensource.com/archives/html/xen-devel/2005-09/msg00196.html
>
> "default qdisc being inadequate"
> "tc qdisc add dev eth0 root tbf rate 50mbit latency 20ms burst 50k"
>
>
> One of the problems with Xen at the moment is the lack of
> documentation/cluebooks for stuff like this at the moment. Best
> practice guides etc. Still a learning process.
>
> --
> Nicholas Lee
> http://stateless.geek.nz
> gpg 8072 4F86 EDCD 4FC1 18EF 5BDD 07B0 9597 6D58 D70C
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Opteron server and NUMA
@ 2005-10-08 17:51 Ian Pratt
0 siblings, 0 replies; 7+ messages in thread
From: Ian Pratt @ 2005-10-08 17:51 UTC (permalink / raw)
To: Alexander Charbonnet, xen-devel; +Cc: Nicholas Lee
> I used ab to benchmark grabbing a 100MB file 100 times from
> localhost.
> Natively it took 15.9 seconds. Under Domain0 it took 41%
> longer, 22.4 seconds. That sure looks like it makes up a
> huge chunk of the overall slowdown I'm noticing.
>
> Any other tricks to try to get network performance closer to native?
Can you try running that test on the same machine running a 32bit
version of Xen. It's possible something weird is happening just on 64
bit.
Thanks,
Ian
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-10-08 17:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-06 22:59 Opteron server and NUMA Alexander Charbonnet
2005-10-06 23:09 ` Nicholas Lee
2005-10-07 8:58 ` Keir Fraser
2005-10-08 1:35 ` Alexander Charbonnet
2005-10-08 11:16 ` Nicholas Lee
2005-10-08 17:21 ` Alexander Charbonnet
-- strict thread matches above, loose matches on Subject: below --
2005-10-08 17:51 Ian Pratt
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.