Skip to contentSkip to conversation

Tapdisk2 problem

DISCUSSION Luís Silva 6 participants 15 messages Aug 4, 2010 – Aug 19, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I'm using both xen 4.0.1-rc5 and the latest pv_ops dom0 kernel (branch xen/stable-2.6.32.x), but I'm having some problems with tapdisk2...

Basically, if I create a tap device (tapdisk2 -n aio:/var/lib/libvirt/images/srv-001-ub1004.img), when I try to terminate it by issuing "echo 1 > /sys/class/blktap2/blktap0/remove", the last command hangs and tapdisk2 hangs using 100% cpu.

This happens both on manual device destruction and on virtual machine shutdown. I don't know exactly what triggered this behaviour, but I suspect kernel changes.

Can anyone confirm this behaviour?

Thanks,
Luís

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hello again,

I've tried updating the kernel as blktap has had some work on it, but the problem remains. The up to date xen/stable-2.6.32.x still behaves as described bellow. Also, I've tested this procedure against kernel 2.6.34.1 with Suse backported patches and the problem doesn't exist. I haven't still tried updating xen to 4.0.1-rc6, but from the changelog I don't see anything that could change this behaviour...

Is anyone with an up to date xen/stable-2.6.32.x kernel seeing this problem or is it just I?

Thanks,
Luís

Quoted 16 lines · Luís Silva

Hello,

I'm using both xen 4.0.1-rc5 and the latest pv_ops dom0 kernel (branch xen/stable-2.6.32.x), but I'm having some problems with tapdisk2...

Basically, if I create a tap device (tapdisk2 -n aio:/var/lib/libvirt/images/srv-001-ub1004.img), when I try to terminate it by issuing "echo 1 > /sys/class/blktap2/blktap0/remove", the last command hangs and tapdisk2 hangs using 100% cpu.

This happens both on manual device destruction and on virtual machine shutdown. I don't know exactly what triggered this behaviour, but I suspect kernel changes.

Can anyone confirm this behaviour?

Quoted 7 lines

Thanks,
Luís

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 9 lines · Luís Silva

Hello again,

I've tried updating the kernel as blktap has had some work on it, but the problem remains. The up to date xen/stable-2.6.32.x still behaves as described bellow. Also, I've tested this procedure against kernel 2.6.34.1 with Suse backported patches and the problem doesn't exist. I haven't still tried updating xen to 4.0.1-rc6, but from the changelog I don't see anything that could change this behaviour...

Quoted 3 lines

Is anyone with an up to date xen/stable-2.6.32.x kernel seeing this problem or is it just I?

What's the previous xen/stable-2.6.32.x version that works for you?

-- Pasi

Quoted 41 lines

Thanks,
Luís

On Wed, 2010-08-04 at 15:04 +0100, Luís Silva wrote:

Hello,

I'm using both xen 4.0.1-rc5 and the latest pv_ops dom0 kernel (branch xen/stable-2.6.32.x), but I'm having some problems with tapdisk2...

Basically, if I create a tap device (tapdisk2 -n aio:/var/lib/libvirt/images/srv-001-ub1004.img), when I try to terminate it by issuing "echo 1 > /sys/class/blktap2/blktap0/remove", the last command hangs and tapdisk2 hangs using 100% cpu.

This happens both on manual device destruction and on virtual machine shutdown. I don't know exactly what triggered this behaviour, but I suspect kernel changes.

Can anyone confirm this behaviour?

Thanks,
Luís

_______________________________________________
Xen-devel mailing list
[1][email protected]
[2]http://lists.xensource.com/xen-devel

References

Visible links
1. mailto:[email protected]
2. http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
In reply to Luís Silva
Quoted 10 lines · Luís Silva

Hello,

I'm using both xen 4.0.1-rc5 and the latest pv_ops dom0 kernel (branch xen/stable-2.6.32.x), but I'm having some problems with tapdisk2...

Basically, if I create a tap device (tapdisk2 -n aio:/var/lib/libvirt/images/srv-001-ub1004.img), when I try to terminate it by issuing "echo 1 > /sys/class/blktap2/blktap0/remove", the last command hangs and tapdisk2 hangs using 100% cpu.

Quoted 5 lines

This happens both on manual device destruction and on virtual machine shutdown. I don't know exactly what triggered this behaviour, but I suspect kernel changes.

Can anyone confirm this behaviour?

Yes, with a broken userland. I thought Ian's dot-private patches to ring.h made it into testing?

changeset:   21707:feee0abed6aa
user:        Keir Fraser <[email protected]>
date:        Fri Jul 02 18:58:02 2010 +0100
summary:     blktap2: make protocol specific usage of shared sring explicit

The problem is that the kernel has those changes. What's going to happen is that if tapdisk2 anticipates the ring 'message' at offset 17, not 16 as intended, it will fail to find/clear the ring message, while the kernel will keep it spinning through select(), and that's what you're seeing.

Keir, okay to just pull that stuff?

Daniel

#4 lore raw
Quoted 7 lines · Daniel Stodden

The problem is that the kernel has those changes. What's going to happen is that if tapdisk2 anticipates the ring 'message' at offset 17, not 16 as intended, it will fail to find/clear the ring message, while the kernel will keep it spinning through select(), and that's what you're seeing.

Keir, okay to just pull that stuff?

What stuff to where?

-- Keir

#5 lore raw
Quoted 11 lines · Keir Fraser
Quoted 7 lines · Daniel Stodden

The problem is that the kernel has those changes. What's going to happen is that if tapdisk2 anticipates the ring 'message' at offset 17, not 16 as intended, it will fail to find/clear the ring message, while the kernel will keep it spinning through select(), and that's what you're seeing.

Keir, okay to just pull that stuff?

What stuff to where?

changeset:   21707:feee0abed6aa
user:        Keir Fraser <[email protected]>
date:        Fri Jul 02 18:58:02 2010 +0100
summary:     blktap2: make protocol specific usage of shared sring

explicit

Into 4.0.1. The offsets were broken by

changeset:   20267:e9366bed077e
user:        Keir Fraser <[email protected]>
date:        Thu Oct 01 12:27:01 2009 +0100
summary:     VNIF: Using smart polling instead of event notification.

Not so good?

Daniel

#6 lore raw
Quoted 13 lines · Daniel Stodden
Quoted 11 lines · Keir Fraser
Quoted 7 lines · Daniel Stodden

The problem is that the kernel has those changes. What's going to happen is that if tapdisk2 anticipates the ring 'message' at offset 17, not 16 as intended, it will fail to find/clear the ring message, while the kernel will keep it spinning through select(), and that's what you're seeing.

Keir, okay to just pull that stuff?

What stuff to where?

Quoted 7 lines
changeset:   21707:feee0abed6aa
user:        Keir Fraser <[email protected]>
date:        Fri Jul 02 18:58:02 2010 +0100
summary:     blktap2: make protocol specific usage of shared sring

explicit

Into 4.0.1.

Okay, done.

K.

Quoted 12 lines

The offsets were broken by

changeset:   20267:e9366bed077e
user:        Keir Fraser <[email protected]>
date:        Thu Oct 01 12:27:01 2009 +0100
summary:     VNIF: Using smart polling instead of event notification.

Not so good?

Daniel

#7 lore raw
Quoted 21 lines · Keir Fraser
Quoted 19 lines · Daniel Stodden
Quoted 11 lines · Keir Fraser
Quoted 7 lines · Daniel Stodden

The problem is that the kernel has those changes. What's going to happen is that if tapdisk2 anticipates the ring 'message' at offset 17, not 16 as intended, it will fail to find/clear the ring message, while the kernel will keep it spinning through select(), and that's what you're seeing.

Keir, okay to just pull that stuff?

What stuff to where?

changeset:   21707:feee0abed6aa
user:        Keir Fraser <[email protected]>
date:        Fri Jul 02 18:58:02 2010 +0100
summary:     blktap2: make protocol specific usage of shared sring

explicit

Quoted 3 lines
Quoted 1 line

Into 4.0.1.

Okay, done.

Thanks!

#8 lore raw
Quoted 4 lines · On Sunday 15 August 2010 23:54:43 Daniel Stodden wrote:
Quoted 3 lines · Keir Fraser
Quoted 2 lines · Daniel Stodden
Quoted 1 line · Keir Fraser

On 15/08/2010 20:35, "Daniel Stodden" <[email protected]>

Quoted 16 lines · wrote:
Quoted 16 lines
Quoted 16 lines
Quoted 9 lines
Quoted 7 lines

The problem is that the kernel has those changes. What's going to happen is that if tapdisk2 anticipates the ring 'message' at offset 17, not 16 as intended, it will fail to find/clear the ring message, while the kernel will keep it spinning through select(), and that's what you're seeing.

Keir, okay to just pull that stuff?

What stuff to where?

changeset:   21707:feee0abed6aa
user:        Keir Fraser <[email protected]>
date:        Fri Jul 02 18:58:02 2010 +0100
summary:     blktap2: make protocol specific usage of shared sring

explicit

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Into 4.0.1.

Okay, done.

Thanks!

Where can I find this change? I am using xen-4.0-testing.hg but the last chnage is a few days old?

Thanks,

Signature · 5 lines
Michael Brade;                                              KDE Developer
  |-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2'
  °--web: http://www.behindkde.org/people/michaelb/

KDE 4: Beyond Your Expectations
#9 lore raw
Quoted 22 lines · Michael Brade
Quoted 4 lines · On Sunday 15 August 2010 23:54:43 Daniel Stodden wrote:
Quoted 3 lines · Keir Fraser
Quoted 2 lines · Daniel Stodden
Quoted 1 line · Keir Fraser

On 15/08/2010 20:35, "Daniel Stodden" <[email protected]>

Quoted 16 lines · wrote:
Quoted 16 lines
Quoted 16 lines
Quoted 9 lines
Quoted 7 lines

The problem is that the kernel has those changes. What's going to happen is that if tapdisk2 anticipates the ring 'message' at offset 17, not 16 as intended, it will fail to find/clear the ring message, while the kernel will keep it spinning through select(), and that's what you're seeing.

Keir, okay to just pull that stuff?

What stuff to where?

changeset:   21707:feee0abed6aa
user:        Keir Fraser <[email protected]>
date:        Fri Jul 02 18:58:02 2010 +0100
summary:     blktap2: make protocol specific usage of shared sring

explicit

Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Into 4.0.1.

Okay, done.

Thanks!

Where can I find this change? I am using xen-4.0-testing.hg but the last chnage is a few days old?

It's in:
http://xenbits.xen.org/staging/xen-4.0-testing.hg

-- Pasi

#13 lore raw
In reply to Keir Fraser
Quoted 21 lines · Keir Fraser
Quoted 19 lines · Daniel Stodden
Quoted 11 lines · Keir Fraser
Quoted 7 lines · Daniel Stodden

The problem is that the kernel has those changes. What's going to happen is that if tapdisk2 anticipates the ring 'message' at offset 17, not 16 as intended, it will fail to find/clear the ring message, while the kernel will keep it spinning through select(), and that's what you're seeing.

Keir, okay to just pull that stuff?

What stuff to where?

changeset:   21707:feee0abed6aa
user:        Keir Fraser <[email protected]>
date:        Fri Jul 02 18:58:02 2010 +0100
summary:     blktap2: make protocol specific usage of shared sring

explicit

Quoted 4 lines
Quoted 1 line

Into 4.0.1.

Okay, done.

Btw will there be -rc7 now with these changes?

-- Pasi

Quoted 21 lines

K.

Quoted 12 lines

The offsets were broken by

changeset:   20267:e9366bed077e
user:        Keir Fraser <[email protected]>
date:        Thu Oct 01 12:27:01 2009 +0100
summary:     VNIF: Using smart polling instead of event notification.

Not so good?

Daniel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#14 lore raw
Quoted 11 lines · Pasi Kärkkäinen
Quoted 9 lines
Quoted 7 lines
changeset:   21707:feee0abed6aa
user:        Keir Fraser <[email protected]>
date:        Fri Jul 02 18:58:02 2010 +0100
summary:     blktap2: make protocol specific usage of shared sring

explicit

Into 4.0.1.

Okay, done.

Btw will there be -rc7 now with these changes?

I'm not planning on doing an RC7. The two patches applied since RC6 are very limited and obvious in their scope and impact. AFAIAC we are still on for release at the end of the week.

-- Keir

#10 lore raw
In reply to Pasi Kärkkäinen
Quoted 6 lines · On Monday 16 August 2010 08:56:16 Pasi Kärkkäinen wrote:
Quoted 2 lines · Michael Brade

Where can I find this change? I am using xen-4.0-testing.hg but the last chnage is a few days old?

It's in:
http://xenbits.xen.org/staging/xen-4.0-testing.hg

Great, thanks! So whats the difference between

http://xenbits.xensource.com/xen-4.0-testing.hg
http://xenbits.xen.org/staging/xen-4.0-testing.hg

Is the former meant to be used at all?

Thanks,

Signature · 5 lines
Michael Brade;                                              KDE Developer
  |-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2'
  °--web: http://www.behindkde.org/people/michaelb/

KDE 4: Beyond Your Expectations

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#12 lore raw

Keir Fraser writes ("Re: [Xen-devel] Tapdisk2 problem"):

Quoted 9 lines · Michael Brade
Quoted 6 lines

Great, thanks! So whats the difference between

http://xenbits.xensource.com/xen-4.0-testing.hg
http://xenbits.xen.org/staging/xen-4.0-testing.hg

Is the former meant to be used at all?

Staging gets pushed there when it passes some automated tests.

Unfortunately those tests have been failing recently which is why the main 4.0-testing tree is out of date. We're working on finding and fixing the problem, before releasing 4.0.1 !

(Also there is no meaningful difference in the domain name:
xenbits.xen.org is the new name for xenbits.xensource.com.)

Ian.