Skip to contentSkip to conversation

Xend FD leak upon migrate receive

DISCUSSION Steve Prochniak 4 participants 7 messages May 1, 2013 – May 8, 2013

lore
Share & tools
lore
#0 lore raw

Xend leaks one fd each time a guest migrates to it's server. I'm wondering if this is a known problem with a known fix, or if someone who knows that code better than me could point me in the right direction.

Thanks.

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

#1 lore raw
Quoted 4 lines · Steve Prochniak

Xend leaks one fd each time a guest migrates to it’s server. I’m wondering if this is a known problem with a known fix, or if someone who knows that code better than me could point me in the right direction.

I'm afraid xend is basically unmaintained these days (which has caused to become deprecated in current releases) AFAIK there aren't any people around who know the code in any great detail.

I don't recall having heard of anything along the lines of what you report so I don't think it is a known problem.

Ian.

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

#2 lore raw
Quoted 6 lines · you
Quoted 4 lines · Steve Prochniak

Xend leaks one fd each time a guest migrates to it’s server. I’m wondering if this is a known problem with a known fix, or if someone who knows that code better than me could point me in the right direction.

Quoted 6 lines

I'm afraid xend is basically unmaintained these days (which has caused to become deprecated in current releases) AFAIK there aren't any people around who know the code in any great detail.

I don't recall having heard of anything along the lines of what you report so I don't think it is a known problem.

Isn't this the same as the:
test-amd64-i386-xend-winxpsp3 16 leak-check/check fail never pass
test-amd64-i386-xend-qemut-winxpsp3 16 leak-check/check fail never pass

Reported in about every automated test (a bit hidden by ever present "guest-stop" problem (due to lack of the -F on shutdown for HVM guests without PV drivers))

--
Sander

Quoted 1 line

Ian.

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

#3 lore raw
Quoted 12 lines · Sander Eikelenboom
Quoted 9 lines · you
Quoted 4 lines · Steve Prochniak

Xend leaks one fd each time a guest migrates to it’s server. I’m wondering if this is a known problem with a known fix, or if someone who knows that code better than me could point me in the right direction.

I'm afraid xend is basically unmaintained these days (which has caused to become deprecated in current releases) AFAIK there aren't any people around who know the code in any great detail.

Quoted 6 lines
Quoted 2 lines

I don't recall having heard of anything along the lines of what you report so I don't think it is a known problem.

Isn't this the same as the:
test-amd64-i386-xend-winxpsp3 16 leak-check/check fail never pass
test-amd64-i386-xend-qemut-winxpsp3 16 leak-check/check fail never pass

Why do you think that?

AFAIK this is checking for leaked files (not file descriptors) and xenstore entries etc. Also it seems to pass for other test sequences which also involve xend and migration.

Ian.

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

#4 lore raw

Fyi - the leak occurs on the receiver side and only exists when using SSL migration. I don't know if that rings any bells or not.

-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Thursday, May 02, 2013 9:42 AM
To: Sander Eikelenboom
Cc: Steve Prochniak; [email protected]
Subject: Re: [Xen-devel] Xend FD leak upon migrate receive

Quoted 12 lines · Sander Eikelenboom
Quoted 9 lines · you
Quoted 4 lines · Steve Prochniak

Xend leaks one fd each time a guest migrates to it's server. I'm wondering if this is a known problem with a known fix, or if someone who knows that code better than me could point me in the right direction.

I'm afraid xend is basically unmaintained these days (which has caused to become deprecated in current releases) AFAIK there aren't any people around who know the code in any great detail.

Quoted 6 lines
Quoted 2 lines

I don't recall having heard of anything along the lines of what you report so I don't think it is a known problem.

Isn't this the same as the:
test-amd64-i386-xend-winxpsp3 16 leak-check/check fail never pass
test-amd64-i386-xend-qemut-winxpsp3 16 leak-check/check fail never pass

Why do you think that?

AFAIK this is checking for leaked files (not file descriptors) and xenstore entries etc. Also it seems to pass for other test sequences which also involve xend and migration.

Ian.

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

#5 lore raw
Quoted 2 lines · Steve Prochniak

Fyi - the leak occurs on the receiver side and only exists when using SSL migration. I don't know if that rings any bells or not.

Maybe op_quit() in tools/python/xen/xend/server/relocate.py needs to handle cleaning up the pipe created in op_sslreceive()?

Regards,
Jim

Quoted 51 lines

-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Thursday, May 02, 2013 9:42 AM
To: Sander Eikelenboom
Cc: Steve Prochniak; [email protected]
Subject: Re: [Xen-devel] Xend FD leak upon migrate receive

Quoted 14 lines · Sander Eikelenboom
Quoted 11 lines · you
Quoted 5 lines · Steve Prochniak

Xend leaks one fd each time a guest migrates to it's server. I'm wondering if this is a known problem with a known fix, or if someone who knows that code better than me could point me in the right direction.

I'm afraid xend is basically unmaintained these days (which has caused to become deprecated in current releases) AFAIK there aren't any people around who know the code in any great detail.

Quoted 7 lines
Quoted 3 lines

I don't recall having heard of anything along the lines of what you report so I don't think it is a known problem.

Isn't this the same as the:
test-amd64-i386-xend-winxpsp3 16 leak-check/check fail never pass
test-amd64-i386-xend-qemut-winxpsp3 16 leak-check/check fail never pass

Why do you think that?

AFAIK this is checking for leaked files (not file descriptors) and xenstore entries etc. Also it seems to pass for other test sequences which also involve xend and migration.

Ian.

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

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

#6 lore raw

Thanks Jim -

That's really close to what I've been testing.

I close the p2cread fd in op_sslreceive (but outside of the except: scope), and I believe that the p2cwrite fd gets closed as part of the recv2fd thread that runs in connection.py. So far so good.

Steve

-----Original Message-----
From: Jim Fehlig [mailto:[email protected]]
Sent: Tuesday, May 07, 2013 11:31 AM
To: Steve Prochniak
Cc: Sander Eikelenboom; Ian Campbell; [email protected]
Subject: Re: [Xen-devel] Xend FD leak upon migrate receive

Quoted 2 lines · Steve Prochniak

Fyi - the leak occurs on the receiver side and only exists when using SSL migration. I don't know if that rings any bells or not.

Maybe op_quit() in tools/python/xen/xend/server/relocate.py needs to handle cleaning up the pipe created in op_sslreceive()?

Regards,
Jim

Quoted 45 lines

-----Original Message-----
From: Ian Campbell [mailto:[email protected]]
Sent: Thursday, May 02, 2013 9:42 AM
To: Sander Eikelenboom
Cc: Steve Prochniak; [email protected]
Subject: Re: [Xen-devel] Xend FD leak upon migrate receive

Quoted 14 lines · Sander Eikelenboom
Quoted 11 lines · you
Quoted 5 lines · Steve Prochniak

Xend leaks one fd each time a guest migrates to it's server. I'm wondering if this is a known problem with a known fix, or if someone who knows that code better than me could point me in the right direction.

I'm afraid xend is basically unmaintained these days (which has caused to become deprecated in current releases) AFAIK there aren't any people around who know the code in any great detail.

Quoted 7 lines
Quoted 3 lines

I don't recall having heard of anything along the lines of what you report so I don't think it is a known problem.

Isn't this the same as the:
test-amd64-i386-xend-winxpsp3 16 leak-check/check fail never pass
test-amd64-i386-xend-qemut-winxpsp3 16 leak-check/check fail never pass

Why do you think that?

AFAIK this is checking for leaked files (not file descriptors) and xenstore entries etc. Also it seems to pass for other test sequences which also involve xend and migration.

Ian.

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

Quoted 6 lines

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

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