Re: [kvm-devel] Host dies on NFS write

2007-12-29 Thread Yves Dorfsman

On Sat, 29 Dec 2007, Izik Eidus wrote:

 The guest is an NFS server. Whenever I write a large file from the
 host, the guest freezes within a few seconds,
 i dont know if it will help you, but it solved many ppl problems with
 network
 try to run the vm with the rtl8139 network card

But using the 8139cp driver in Linux, not the 8139too. Solved my problem.

Yves.

Yves Dorfsman [EMAIL PROTECTED]
http://www.SollerS.ca


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


[kvm-devel] keeping time

2007-12-26 Thread Yves Dorfsman

What is the recommended way to keep the time correct on a UNIX KVM machine ?

I am using Linux x86_64 (gentoo) both as a host and as a guest, and can't 
keep the time straight on the guest. Ntpd eventually gives up because the 
clock is too wanky.

I run into this problem both with versions 28 and 57.

Thanks.


Yves.

PS: I realize this is for kvm developers, but could not find a KVM user 
list - please point me towards the apropriate list if this is the wrong 
choice.

Yves Dorfsman [EMAIL PROTECTED]
http://www.SollerS.ca


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


[kvm-devel] NFS problems

2007-12-26 Thread Yves Dorfsman

I built my virtual machines on KVM version 28 back in july. One of them 
runs gentoo x86_64 (as guest) and a small web server with apache 2, 
serving pages from an NFS directory. Never had a problem with it.

This week I upgraded KVM to version 57. Everything looked like it worked, 
but I run into the following problem: after serving a few pages ( 20) the 
machine gets into 0% user, 0% idle 100% wait and apache stop serving any 
page. I can kill most apache processes except two. ls and df on the 
nfs filesystem still works. I reboot the virtual box and try to run 
emerge (gentoo package management) that uses NFS heavily, and it hangs, 
and the machine is the state describe above.

Shutting down the virtual box and replacing kvm v57 by kvm v28 fixes the 
problem.

Anybody run into a comparable problem ?

Thanks.


Yves.

Yves Dorfsman [EMAIL PROTECTED]
http://www.SollerS.ca


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] keeping time

2007-12-26 Thread Yves Dorfsman

On Wed, 26 Dec 2007, Avi Kivity wrote:

 ntp is too clever for virtual machines.  What happens if you don't enable it?

Same thing.


 Please provide the guest's /proc/interrupts.

more  /proc/interrupts
CPU0
   0:  27066XT-PIC-XTtimer
   1:  9XT-PIC-XTi8042
   2:  0XT-PIC-XTcascade
   8:  0XT-PIC-XTrtc
  11:393XT-PIC-XTeth0
  12:110XT-PIC-XTi8042
  14:   1670XT-PIC-XTide0
  15: 48XT-PIC-XTide1
NMI:  0 
LOC:  18300 
ERR:  0

This is with -no-kvm-irqchip -tdf which made no difference.

Now, because of my mother board, I have to start linux with acpi=off, 
could that be a problem ?

Yves.

Yves Dorfsman [EMAIL PROTECTED]
http://www.SollerS.ca


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] NFS problems

2007-12-26 Thread Yves Dorfsman

On Wed, 26 Dec 2007, Avi Kivity wrote:

 Yves Dorfsman wrote:

  This week I upgraded KVM to version 57. Everything looked like it worked,
  but I run into the following problem: after serving a few pages ( 20) the
  machine gets into 0% user, 0% idle 100% wait and apache stop serving any
  page. I can kill most apache processes except two. ls and df on the

 What virtual nic are you using?  ne2k is broken; try rtl8139 (which gives 
 better performance anyway).

I was usign rtl8020 (I think), anyway, not ne2k. I am now using rtl8139 
and have the same problem. I am using the linux 8139too though, which I 
understand is old, I am trying to replace it with the newer one 8139cp, 
but have shoot myself in the foot by doing so on one of my vm :-)

Anyway, same nfs issue with 8139cp and kvm 58.


Yves.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] keeping time

2007-12-26 Thread Yves Dorfsman

On Wed, 26 Dec 2007, Izik Eidus wrote:

 ohhh i forgat to mention to boot the linux without apic when you run the -tdf 
 (if i remember it is noapic)

Yes I verified, noapic. Now that's weird the clock is a little bit 
fast (as opposed to very slow previously). It got 7 second too fast, in 
about 10 minutes/

I think this is something ntpd could cope with. Can/should I run ntpd on a 
kvm vm, or not ? Is there a consensus on this ?

Since the host runs on time, is there anyway to tell kvm to just use the 
host clock ?


Yves.

Yves Dorfsman [EMAIL PROTECTED]
 http://www.SollerS.ca


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] NFS problems

2007-12-26 Thread Yves Dorfsman

On Wed, 26 Dec 2007, Yves Dorfsman wrote:

 I was usign rtl8020 (I think), anyway, not ne2k. I am now using rtl8139 and 
 have the same problem. I am using the linux 8139too though, which I 
 understand is old, I am trying to replace it with the newer one 8139cp, but 
 have shoot myself in the foot by doing so on one of my vm :-)

 Anyway, same nfs issue with 8139cp and kvm 58.

Sorry I meant 8139too.

I got my vm back up, and added 8139cp (had to select experimental driver), 
and nfs is working fine with kvm 58. I'm not sure what the usual (*buntu, 
fedorea, etc...) distros ship with, but I suspect 8139too, so it might be 
a good idea to add this one to the FAQ.


Thanks.

Yves.

Yves Dorfsman [EMAIL PROTECTED]
http://www.SollerS.ca


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] keeping time

2007-12-26 Thread Yves Dorfsman

On Thu, 27 Dec 2007, Yang, Sheng wrote:

 What's your guest kernel version?

2.6.22

 When I debug my in kernel PIT(not sent yet, though kept for months), I found
 the kernel version have something to do with the timer accuracy. On my
 limited test, the kernel 2.6.18, 2.6.20, 2.6.22 with default kernel
 parameters works well with my PIT patch. But for kernel 2.6.9, I have to
 use clock=pit, otherwise the timer is much faster.

I have added clock=pit, but it does not help. Do you need a specific patch 
for this, or do all kernels accept it ?


Yves.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel