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-users

Re: [Xen-users] Debian Squeeze server running 2 Ubuntu (Lucid) vms blows

To: Andrew <andrew@xxxxxxxxxxx>
Subject: Re: [Xen-users] Debian Squeeze server running 2 Ubuntu (Lucid) vms blows up under large NFS network load
From: Benjamin Weaver <benjamin.weaver@xxxxxxxxxxxxx>
Date: Fri, 19 Aug 2011 17:42:22 +0100
Cc: Benjamin Weaver <benjamin.weaver@xxxxxxxxxxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 19 Aug 2011 09:43:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E4CE65E.30209@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <148A0BB17CC8694A9899BDF3C1DE6DE930EEF4B1EC@xxxxxxxxxxxxxxxxxxxxxxx> <4E4CE65E.30209@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11
On 18/08/11 11:15, Andrew wrote:
Hi Benjamin,

I had a somewhat similar situation earlier this year (vm host freezing 
in my situation). End fix was to use a intel server grade gigabit nic. 
Perfect since then.  The other nics interrupt the CPU like crazy (once 
for each packet) - and when i started moving more than about 50,000 
packets/sec it would lock up.  I have had the intel nic moving 
60-70K/packets a sec without issues.


Cheers,
Andrew


On 18/08/11 19:06, Benjamin Weaver wrote:
I am running Debian Squeeze with Xen 4.0. I am running a stress  test. I have created 2 virtual machines, each with 512 Mb of memory adn 8Gb in size. I have made one of the vms an NFS server, sharing out a large file (4.6 Gb). The other virtual machine  is an NFS client. The stress test consists of passing that big file back and forth via an mv command executed on the client, which moves the file back and forth from the nfs share directory to a local directory. The virtual machines are stored on a remote SAN connected to by ISCSI  and formatted in ocfs2.

It is true I have had better luck with some ethernet cards than others.
One of the boxes, running Intel 1000Mb cards (1 to the SAN/OCFS2, 1 to the outside world), runs the vms and the stress test without problems.

But the other box, running a 1000Mb Realtek nic to the outside
world and a 100Mb Realtek nic to the SAN, fails. The 100Mb nic was dropping packets to the SAN so I changed the SAN nic to the Realtek 1000Mb

Now I do not drop packets (aside from a handful on the 2 vif interfaces at startup)

And yet,

about 1 out of 2 times I attempt to mv the file from the local directory of the nfs client vm to the nfs share, the box running the vms reboots. It leaves no logs, and seldom even any messages on the screen. It just blanks out and the next thing I know I it is rebooting.

I have tried manipulating the size of the MTU, with out positive success.
I have noticed that all--or nearly all--the reboots occur when I attempt to mv the file BACK INTO the nfs shared directory.

I begun testing with tcpdump, and notice that a large number of packets go over with checksums correct, then, after a packet of unusually long length, all show checksums incorrect.  (but I am new to tcpdump and may not be interpreting the output correctly).

Any ideas why the host machine is rebooting, and how this could be fixed? Could changing the size of the ring buffer make a difference? I read about this on a couple of web pages.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

    
Andrew,

This is music to my ears: I have been struggling with this for a while. To understand the problem, I had a few questions.
(1) are Intel server nics better owing to their interrupt throttle control? They apparently offer better interrupt control than other nices. Such is suggested by the output of modinfo -p on the Intel e1000 module in contrast to the Realtek module, 8139too. The Intel lists the RxIntDelay and TxIntDelay params where as nothing of this kind is available for the Realtek 8139.

(2) might a workaround to nic replacement consist of adjusting any one several system buffers or other params that govern packet handling? I am thinking of the adjustment either of (a) Linux system buffer sizes via systctl.conf, tcp window sizes, or (b) adjustment of ifconfig parameters--packet queue lengths (txqueuelen, rxQueuelen), or MTU? I have adjusted all these params, including enlargement of the system buffers wmem_max and rmem_max,but so far have not been able to get a fix on the server crashes through these.


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