All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Serious performance issues
@ 2005-03-07  8:04 Ian Pratt
  2005-03-07  7:11 ` Tommi Virtanen
  0 siblings, 1 reply; 14+ messages in thread
From: Ian Pratt @ 2005-03-07  8:04 UTC (permalink / raw)
  To: Tommi Virtanen; +Cc: xen-devel, ian.pratt

> Ian Pratt wrote:
> > Have you got some interrupt line going crazy?
> 
> That seems to be the problem.
> 
> In native linux, I see:
> 
> 0	timer	1000/s
> LOC		1000/s
> 
> and in xen dom0 I see:
> 
> 21	uhci_hcd	35000/s
> 130	timer		45000/s
> 
> rmmodding uhci_hcd removes irq 21, but makes the timer
> speed up to 115000/s.
> 
> rmmod ohci13943, rmmod ehci_hcd makes the timer go
> 800000/s.

Just to be clear, you're not using the usb virtualization stuff, just
accessing the device in domain 0?

Does anyone else see this interrupt storm with USB devices active?
Please can everyone check as I'll hold the 2.0.5 release (with USB
enabled in the default config) until we understand the scale of the
problem.  

Thanks,
Ian



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Serious performance issues
@ 2005-03-07  9:47 Ian Pratt
  2005-03-07 15:11 ` Nuutti Kotivuori
  0 siblings, 1 reply; 14+ messages in thread
From: Ian Pratt @ 2005-03-07  9:47 UTC (permalink / raw)
  To: Tommi Virtanen; +Cc: xen-devel, ian.pratt


> Problem #1: plugging in my Logitech USB trackball creates an uhci_hcd
> and timer interrupt storm that degrades performance to about 10% of
> normal. Unplug does not stop storm. Unknown cause, not fixed, 
> workaround
> is not to plug in any USB device except hubs.

Could you try using some of the kernel profile stuff to figure out where
the time is being spent? 

> Problem #2: bridge setfd/sethello 0 causes timer interrupt storm, but
> does not degrade performance significantly. Workaround is to not set
> such low numbers. Will talk to brctl/bridging maintainers to make it
> more foolproof.

If you're starting a dialogue with the bridge folk, I'd be grateful if
you could bring up the issue of transferring IP addresses from
interfaces that are added to a bridge to the bridge.

Thanks,
Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Serious performance issues
@ 2005-03-07  8:19 Ian Pratt
  2005-03-07  9:23 ` Tommi Virtanen
  0 siblings, 1 reply; 14+ messages in thread
From: Ian Pratt @ 2005-03-07  8:19 UTC (permalink / raw)
  To: Tommi Virtanen; +Cc: xen-devel, ian.pratt

> Also, note that I can get the same problem with bridging:
> 
> lots of timer interrupts
> ip li set dev br0 down --> timer gets 30/s
> ip li set dev br0 up --> timer goes crazy

I certainly don't see this on any of my systems.

Are you using the standard bridging scripts? I guess not since your
bridge name is different. The only time I've seen something like this is
when some of the bridge timeout parameters are set to 0 jiffies (setting
to 1 jiffy is OK).

Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Serious performance issues
@ 2005-03-04 17:48 Ian Pratt
  2005-03-04 18:57 ` Tommi Virtanen
  0 siblings, 1 reply; 14+ messages in thread
From: Ian Pratt @ 2005-03-04 17:48 UTC (permalink / raw)
  To: Tommi Virtanen, xen-devel; +Cc: ian.pratt

 
> Hi. I have a Shuttle box with an AMD Athlon XP 2200+ and 1GB of RAM.
> I'm normally running it with Debian sarge/sid and kernel 2.6.10-1-k7,
> as built by Debian. I want to use Xen on it. I built a xen0 kernel
> which is as close to the Debian kernel as I can (no power management,
> no HPET timers, broken ISA drivers disabled), disabled /lib/tls, and
> booted with the new kernel.

Please try using our kernel config.

BTW: you're not doing anything rash like using an SMP enabled kernel are
you? There's still loads of debugging turned on at the moment.

Ian
 
> Everything works. I can run domUs as I want. But, the performance is
> horrible, even with just dom0 running.
> 
> I tested the disk, it still transfers ~50MB/s. I don't seem to be
> suffering from PIO mode. Also, things running from RAM cache are as
> slow as from disk.
> 
> I ran some of the lmbench tests both under xen and with native linux.
> Here are the results, with the "-" lines from xen and "+" lines from
> native linux. The results are pretty poor, and so is the feel of the
> machine under xen.
> 
> Any hints on what to try next?
> 
> 
> bw_mem
> -0.131072 1068.95
> +0.131072 4409.00
> 
> bw_pipe
> -Pipe bandwidth: 85.42 MB/sec
> +Pipe bandwidth: 989.19 MB/sec
> 
> bw_unix
> -AF_UNIX sock stream bandwidth: 104.75 MB/sec
> +AF_UNIX sock stream bandwidth: 968.87 MB/sec
> 
> lat_ctx
> -"size=0k ovr=3.15
> -10 13.95
> +"size=0k ovr=1.09
> +10 0.94
> 
> lat_fcntl
> -Fcntl lock latency: 43.2246 microseconds
> +Fcntl lock latency: 5.4676 microseconds
> 
> lat_fifo
> -FIFO latency: 32.4076 microseconds
> +FIFO latency: 3.3622 microseconds
> 
> lat_fs
> -0k     1000    18563   31549
> -1k     1000    6426    17887
> -4k     1000    6583    17826
> -10k    1000    3084    14989
> +0k     1000    63666   92541
> +1k     1000    24125   51193
> +4k     1000    25863   52089
> +10k    1000    12533   41564
> 
> lat_pipe
> -Pipe latency: 31.0475 microseconds
> +Pipe latency: 5.4833 microseconds
> 
> lat_proc
> -Process fork+exit: 789.2857 microseconds
> +Process fork+exit: 113.7347 microseconds
> 
> lat_select
> -Select on 200 tcp fd's: 46.8159 microseconds
> +Select on 200 tcp fd's: 12.9369 microseconds
> 
> lat_syscall
> -Simple syscall: 0.6188 microseconds
> +Simple syscall: 0.1547 microseconds
> 
> lat_unix
> -AF_UNIX sock stream latency: 61.1547 microseconds
> +AF_UNIX sock stream latency: 21.7704 microseconds
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Serious performance issues
@ 2005-03-04 17:44 Ian Pratt
  2005-03-07  6:51 ` Tommi Virtanen
  0 siblings, 1 reply; 14+ messages in thread
From: Ian Pratt @ 2005-03-04 17:44 UTC (permalink / raw)
  To: Tommi Virtanen, xen-devel; +Cc: ian.pratt

> Hi. I have a Shuttle box with an AMD Athlon XP 2200+ and 1GB of RAM.
> I'm normally running it with Debian sarge/sid and kernel 2.6.10-1-k7,
> as built by Debian. I want to use Xen on it. I built a xen0 kernel
> which is as close to the Debian kernel as I can (no power management,
> no HPET timers, broken ISA drivers disabled), disabled /lib/tls, and
> booted with the new kernel.

> lat_syscall
> -Simple syscall: 0.6188 microseconds
> +Simple syscall: 0.1547 microseconds

System call latency should be identical between Xen and native. The fact
that it is not inidcates that your system is seriously screwed running
Xen.

Have you got some interrupt line going crazy?
Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Serious performance issues
@ 2005-03-03 21:57 Tommi Virtanen
  2005-03-04 15:52 ` Anthony Liguori
  0 siblings, 1 reply; 14+ messages in thread
From: Tommi Virtanen @ 2005-03-03 21:57 UTC (permalink / raw)
  To: xen-devel

Hi. I have a Shuttle box with an AMD Athlon XP 2200+ and 1GB of RAM.
I'm normally running it with Debian sarge/sid and kernel 2.6.10-1-k7,
as built by Debian. I want to use Xen on it. I built a xen0 kernel
which is as close to the Debian kernel as I can (no power management,
no HPET timers, broken ISA drivers disabled), disabled /lib/tls, and
booted with the new kernel.

Everything works. I can run domUs as I want. But, the performance is
horrible, even with just dom0 running.

I tested the disk, it still transfers ~50MB/s. I don't seem to be
suffering from PIO mode. Also, things running from RAM cache are as
slow as from disk.

I ran some of the lmbench tests both under xen and with native linux.
Here are the results, with the "-" lines from xen and "+" lines from
native linux. The results are pretty poor, and so is the feel of the
machine under xen.

Any hints on what to try next?


bw_mem
-0.131072 1068.95
+0.131072 4409.00

bw_pipe
-Pipe bandwidth: 85.42 MB/sec
+Pipe bandwidth: 989.19 MB/sec

bw_unix
-AF_UNIX sock stream bandwidth: 104.75 MB/sec
+AF_UNIX sock stream bandwidth: 968.87 MB/sec

lat_ctx
-"size=0k ovr=3.15
-10 13.95
+"size=0k ovr=1.09
+10 0.94

lat_fcntl
-Fcntl lock latency: 43.2246 microseconds
+Fcntl lock latency: 5.4676 microseconds

lat_fifo
-FIFO latency: 32.4076 microseconds
+FIFO latency: 3.3622 microseconds

lat_fs
-0k     1000    18563   31549
-1k     1000    6426    17887
-4k     1000    6583    17826
-10k    1000    3084    14989
+0k     1000    63666   92541
+1k     1000    24125   51193
+4k     1000    25863   52089
+10k    1000    12533   41564

lat_pipe
-Pipe latency: 31.0475 microseconds
+Pipe latency: 5.4833 microseconds

lat_proc
-Process fork+exit: 789.2857 microseconds
+Process fork+exit: 113.7347 microseconds

lat_select
-Select on 200 tcp fd's: 46.8159 microseconds
+Select on 200 tcp fd's: 12.9369 microseconds

lat_syscall
-Simple syscall: 0.6188 microseconds
+Simple syscall: 0.1547 microseconds

lat_unix
-AF_UNIX sock stream latency: 61.1547 microseconds
+AF_UNIX sock stream latency: 21.7704 microseconds


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-03-07 19:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-07  8:04 Serious performance issues Ian Pratt
2005-03-07  7:11 ` Tommi Virtanen
  -- strict thread matches above, loose matches on Subject: below --
2005-03-07  9:47 Ian Pratt
2005-03-07 15:11 ` Nuutti Kotivuori
2005-03-07  8:19 Ian Pratt
2005-03-07  9:23 ` Tommi Virtanen
2005-03-07 19:19   ` Nuutti Kotivuori
2005-03-04 17:48 Ian Pratt
2005-03-04 18:57 ` Tommi Virtanen
2005-03-04 17:44 Ian Pratt
2005-03-07  6:51 ` Tommi Virtanen
2005-03-03 21:57 Tommi Virtanen
2005-03-04 15:52 ` Anthony Liguori
2005-03-04 18:55   ` Tommi Virtanen

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.