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

[Xen-devel] Does tapdisk2 dispatch requests from different DomUs?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Does tapdisk2 dispatch requests from different DomUs?
From: Yuehai Xu <yuehaixu@xxxxxxxxx>
Date: Wed, 26 Jan 2011 10:36:55 -0500
Cc: George Dunlap <dunlapg@xxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, keir@xxxxxxx, yhxu@xxxxxxxxx
Delivery-date: Wed, 26 Jan 2011 07:51:41 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=Qi5yZ5K6NqYzH5/5l4uPRFw4uuJvrho3xMBgJEpIZIM=; b=k6TJRa4FAjOirNKlmEcvdVIwGDEr0pvi9UrnT2I8WsMIcUEcWqUmS1utaEn0WKBOhN b0JAFFdbaaUOgQ/rcmk+i5x90z9mknx1JD8i5tAoiIKyg016DY59igvB/mQJK2yC68Xr Q1Yc7mhVxsXo/U80+XrTRlKhRKxZM6QdqZusk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=FApkXelmf/vxY/BJc4AYA7TSpRlJVHolZyM8LICMALdqsazRJhsFknF2lewLGt5thp dO2KYdlBgaNJOk+YDCs2zLiZrsO6LC3k4odRTOvIWFpARtjXvZhpuCFtoAI3SEvxYPvk EXocyegm8vFA2F9Y/BniA52oUI8Uxbgpj2KSM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi All,

Suppose there are two DomUs, and each one has a corresponding tapdisk2
process to dispatch requests. Theoretically, different tapdisk should
only dispatch requests from its corresponding DomU. However, I notice
that a certain tapdisk would dispatch requests from other DomUs, is it
normal?

Below is the background:
Dom1.cfg:
kernel="/boot/vmlinuz-2.6.31.13-xen-guest_32bit_ubuntu"
name = "dom1"
vif  = ['mac=00:1A:2A:4A:6A:8A, bridge=xenbr0, ip=192.168.1.111']
disk = ['tap2:aio:/guest_os/dom1/img,xvda1,w',
'tap2:aio:/guest_os/dom1/swap,xvda2,w',
'tap2:aio:/mnt/sdb1/xen/img,xvdc,w']
root = "/dev/xvda1"
extra = "fastboot enforcing=0 console=hvc0"

Dom2.cfg:
kernel="/boot/vmlinuz-2.6.31.13-xen-guest_32bit_ubuntu"
name = "dom2"
vif  = ['mac=00:1B:2B:4B:6B:8B, bridge=xenbr0, ip=192.168.1.112']
disk = ['tap2:aio:/guest_os/dom2/img,xvda1,w',
'tap2:aio:/guest_os/dom2/swap,xvda2,w',
'tap2:aio:/mnt/sdb7/xen/img,xvdb,w']
root = "/dev/xvda1"
extra = "fastboot enforcing=0 console=hvc0"

ps -ef | grep tapdisk | grep sdb :
root      7225     1  0 09:51 ?        00:00:18 /usr/sbin/tapdisk2 -n
aio:/mnt/sdb7/xen/img
root      8670     1  0 10:13 ?        00:00:00 /usr/sbin/tapdisk2 -n
aio:/mnt/sdb1/xen/img

When I run postmark which creates small random writes in both Doms,
each tapdisk dispatches requests both from Dom1 and Dom2. In this way,
it is impossible to do QoS for disk I/O since it will never be known
which requests are from which DomUs. Is this a known problem or is
there something wrong that I have done?

I appreciate your help.

Thanks,
Yuehai

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Does tapdisk2 dispatch requests from different DomUs?, Yuehai Xu <=