All of lore.kernel.org
 help / color / mirror / Atom feed
* network (irq?) problems in unstable
@ 2005-05-30 12:52 Gerd Knorr
  2005-05-30 13:36 ` Keir Fraser
  0 siblings, 1 reply; 19+ messages in thread
From: Gerd Knorr @ 2005-05-30 12:52 UTC (permalink / raw)
  To: xen-devel

  Hi,

With xen unstable I have the problem that the network stops
working after a while.  Heavy network traffic seems to make it
more likely, it triggers almost every time I try to untar a
kernel source tree, where the tarball comes from a NFS-mounted
volume.

The network card doesn't receive interrupts any more according
to /proc/interrupts.  It works fine in native linux and also
with xen 2.0.  It's a tulip card.  Anyone has an idea what this
might be or where to look?

  Gerd

/proc/interrupts in native linux:
           CPU0       
  0:     613024          XT-PIC  timer
  1:        673          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  5:       3460          XT-PIC  sym53c8xx
  7:          1          XT-PIC  parport0
  8:          2          XT-PIC  rtc
  9:          0          XT-PIC  acpi, uhci_hcd
 10:          0          XT-PIC  Ensoniq AudioPCI
 11:       1131          XT-PIC  eth0
 12:        446          XT-PIC  i8042
 14:        313          XT-PIC  ide0
 15:       9492          XT-PIC  ide1
NMI:          0 
LOC:          0 
ERR:          0
MIS:          0

/proc/interrupts in domain0, unstable:
           CPU0       
  1:        113        Phys-irq  i8042
  5:       2521        Phys-irq  sym53c8xx
  9:          0        Phys-irq  acpi
 11:        779        Phys-irq  hw-eth0
256:          0     Dynamic-irq  ctrl-if
257:      15736     Dynamic-irq  timer0
258:          0     Dynamic-irq  console
259:          0     Dynamic-irq  net-be-dbg
NMI:          0 
LOC:          0 
ERR:          0
MIS:          0

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: Hypercall interface changes for PAE
@ 2005-05-31 22:42 Ian Pratt
  2005-06-01  9:17 ` Gerd Knorr
  0 siblings, 1 reply; 19+ messages in thread
From: Ian Pratt @ 2005-05-31 22:42 UTC (permalink / raw)
  To: david.nospam.hopwood, xen-devel

> But it is greatly simplified, IIUC. If the hypercalls are 
> binary compatible then you have only one set of hypercall 
> interface functions and types, and switching between two 
> *implementations* of pagetable-related stuff (only the things 
> that actually need to be different) is quite straightforward.

For the same reason that Linux doesn't support run-time switching
between PAE and non-PAE kernels, doing the same on Xen is going to be an
equivalent pain in the butt.

The only way it can reasonably be done cleanly and with decent
performance is double compilation of the relevant mm functions in Xen
(and libxc too). In which case, having separate hypercall vectors makes
most sense.

So, the correct thing to do is:
 * export the types to the tools as Keir suggests, 32 bit on non-PAE, 64
bit on PAE (and x86_64)
 * use different vectors for the two types of calls
 * for the moment, map them to the same compile-time function.

This gives us good performance, clean code, and future proofing.

Best,
Ian

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: Hypercall interface changes for PAE
@ 2005-06-01  9:30 Ian Pratt
  2005-06-01 10:04 ` Keir Fraser
  0 siblings, 1 reply; 19+ messages in thread
From: Ian Pratt @ 2005-06-01  9:30 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: xen-devel

 
> I don't thing the performance argument is that important for 
> the xen tools though.  Booting or migrating a domain is a 
> rare event (when compared to the page table manipulations the 
> xen kernel has to do all the time).
> 
> > The only way it can reasonably be done cleanly and with decent 
> > performance is double compilation of the relevant mm 
> functions in Xen 
> > (and libxc too). In which case, having separate hypercall vectors 
> > makes most sense.
> 
> Well, I'd try to get away without double compilation for libxc.
> 
> But you guys know that part of the code much better than I 
> do, so if you think double compilation is the best way to 
> deal with it, lets take that route.

The inner most guts of the domain builder where we build the pagetables,
it's probably best to have two totally separate functions as there are
significant differences between the PAE and non PAE initial pagetables.

For the save/restore functions I'd like to share the source code.
However, it would be very ugly indeed to butcher the code such that the
same compiled code can run-time switch. I think the best soloution is
just to run it through the compiler twice with different header files.
[Aside: we need to give the save/restore code the same treatment that
the improved pte typing patch gave to Xen.] 

Ian

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

end of thread, other threads:[~2005-06-01 10:04 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-30 12:52 network (irq?) problems in unstable Gerd Knorr
2005-05-30 13:36 ` Keir Fraser
2005-05-31 10:18   ` Gerd Knorr
2005-05-31 10:59     ` Keir Fraser
2005-05-31 11:36       ` Gerd Knorr
2005-05-31 18:21         ` Hypercall interface changes for PAE Keir Fraser
2005-05-31 18:26           ` Keir Fraser
2005-05-31 19:02             ` Gerd Knorr
2005-05-31 19:23               ` Keir Fraser
2005-05-31 20:38                 ` Gerd Knorr
2005-05-31 21:18                   ` Keir Fraser
2005-05-31 21:40                     ` Keir Fraser
2005-05-31 22:25                 ` David Hopwood
2005-05-31 18:32           ` Jonathan S. Shapiro
2005-05-31 18:37             ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2005-05-31 22:42 Ian Pratt
2005-06-01  9:17 ` Gerd Knorr
2005-06-01  9:30 Ian Pratt
2005-06-01 10:04 ` Keir Fraser

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.