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

[Xen-users] Re: blktap limited to 100 devices?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: blktap limited to 100 devices?
From: "Carl Jones" <carl.jones@xxxxxxxxx>
Date: Thu, 19 Jun 2008 12:59:50 +1200
Delivery-date: Wed, 18 Jun 2008 18:00:22 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=ffOsiwI5FTOCjo9rfY5sMbXVCCPylfsOvKAUjXVEEnU=; b=B6GMCcOAkiC5yi2uc8BIP5W+ocHeN3D3luguZ0b/IL3JJHNQ5blLLwQTD8J3kcYv1d gJ3ZbadbD3+kEr34wSM3i8MpzohbKBlcKSGJNzeZhJPi7Twa/fiOQhwzgAIokNzTPC0M llAYbIl+ag7jPzSxNP1EAJgk4QnmOyOFxDi5Q=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=iigEcQ601J8lYQYa6C8M31VcWJoPBOSnnkYq67SlO3vPn96b4dR6cCuOEohV06Hqv9 vRjgTjpzqqvaa7BGR0gS0KrcgCWSbRwXZx5YyANNAJZpdJV5pgCmV5ADQC6ZAfWdtmP4 M3JgS8iXG1AQLn3mHW7E3D2CLUzwvEBTcdohk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <df5598920806121803p46754787kee2b03259707a480@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <df5598920806121803p46754787kee2b03259707a480@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Replying to myself here...

Actually setting these work just fine:

# grep 256 linux-2.6.18.8-xen/drivers/xen/blktap/blktap.c
#define MAX_TAP_DEV 256    /*the maximum number of tapdisk ring devices    */
#define MAX_DEV_NAME 256   /*the max tapdisk ring device name e.g. blktap0 */
# grep 256 tools/blktap/lib/blktaplib.h
#define MAX_TAP_DEV 256

Tested against 3.1.4.

Regards,
Carl

On Fri, Jun 13, 2008 at 1:03 PM, Carl Jones <carl.jones@xxxxxxxxx> wrote:
Hi,

Is blktap is limited to 100 devices? My simple test is to have 51 domUs, each with 2 disks attached using tap:aio.

All start up fine except #51:

XENBUS: Timeout connecting to device: device/vbd/51713 (state 3)
XENBUS: Timeout connecting to device: device/vbd/51721 (state 3)
XENBUS: Device with no driver: device/console/0
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "xvda1" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

On the host I see: tapdisk /var/run/tap/tapctrlwrite1 /var/run/tap/tapctrlread1 to 100, but nothing further.

With 3.1.4 I see these set, but changing them and rebuilding does not help:
./linux-2.6.18.8-xen/drivers/xen/blktap/blktap.c:#define MAX_TAP_DEV 256     /*the maximum number of tapdisk ring devices    */
./linux-2.6.18.8-xen/drivers/xen/blktap/blktap.c:#define MAX_DEV_NAME 100    /*the max tapdisk ring device name e.g. blktap0 */

Is there an easy way around this limit?

Using Xen 3.0.4, 3.1.4 and 3.2.1 (from source) with the same results. Host OS is CentOS 5 64bit.

Regards,
Carl

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>