All of lore.kernel.org
 help / color / mirror / Atom feed
* Xend FD leak upon migrate receive
@ 2013-05-01 16:50 Steve Prochniak
  2013-05-02 11:42 ` Ian Campbell
  0 siblings, 1 reply; 7+ messages in thread
From: Steve Prochniak @ 2013-05-01 16:50 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 228 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 1592 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xend FD leak upon migrate receive
  2013-05-01 16:50 Xend FD leak upon migrate receive Steve Prochniak
@ 2013-05-02 11:42 ` Ian Campbell
  2013-05-02 13:36   ` Sander Eikelenboom
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Campbell @ 2013-05-02 11:42 UTC (permalink / raw)
  To: Steve Prochniak; +Cc: xen-devel@lists.xen.org

On Wed, 2013-05-01 at 17:50 +0100, Steve Prochniak wrote:
> 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
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xend FD leak upon migrate receive
  2013-05-02 11:42 ` Ian Campbell
@ 2013-05-02 13:36   ` Sander Eikelenboom
  2013-05-02 13:42     ` Ian Campbell
  0 siblings, 1 reply; 7+ messages in thread
From: Sander Eikelenboom @ 2013-05-02 13:36 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Steve Prochniak, xen-devel@lists.xen.org


Thursday, May 2, 2013, 1:42:11 PM, you wrote:

> On Wed, 2013-05-01 at 17:50 +0100, Steve Prochniak wrote:
>> 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.

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

> Ian.






_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xend FD leak upon migrate receive
  2013-05-02 13:36   ` Sander Eikelenboom
@ 2013-05-02 13:42     ` Ian Campbell
  2013-05-02 20:26       ` Steve Prochniak
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Campbell @ 2013-05-02 13:42 UTC (permalink / raw)
  To: Sander Eikelenboom; +Cc: Steve Prochniak, xen-devel@lists.xen.org

On Thu, 2013-05-02 at 14:36 +0100, Sander Eikelenboom wrote:
> Thursday, May 2, 2013, 1:42:11 PM, you wrote:
> 
> > On Wed, 2013-05-01 at 17:50 +0100, Steve Prochniak wrote:
> >> 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.
> 
> 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
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xend FD leak upon migrate receive
  2013-05-02 13:42     ` Ian Campbell
@ 2013-05-02 20:26       ` Steve Prochniak
  2013-05-07 15:31         ` Jim Fehlig
  0 siblings, 1 reply; 7+ messages in thread
From: Steve Prochniak @ 2013-05-02 20:26 UTC (permalink / raw)
  To: Ian Campbell, Sander Eikelenboom; +Cc: xen-devel

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:Ian.Campbell@citrix.com] 
Sent: Thursday, May 02, 2013 9:42 AM
To: Sander Eikelenboom
Cc: Steve Prochniak; xen-devel@lists.xen.org
Subject: Re: [Xen-devel] Xend FD leak upon migrate receive

On Thu, 2013-05-02 at 14:36 +0100, Sander Eikelenboom wrote:
> Thursday, May 2, 2013, 1:42:11 PM, you wrote:
> 
> > On Wed, 2013-05-01 at 17:50 +0100, Steve Prochniak wrote:
> >> 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.
> 
> 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
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xend FD leak upon migrate receive
  2013-05-02 20:26       ` Steve Prochniak
@ 2013-05-07 15:31         ` Jim Fehlig
  2013-05-08 18:19           ` Steve Prochniak
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Fehlig @ 2013-05-07 15:31 UTC (permalink / raw)
  To: Steve Prochniak; +Cc: Sander Eikelenboom, Ian Campbell, xen-devel

Steve Prochniak wrote:
> 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

> -----Original Message-----
> From: Ian Campbell [mailto:Ian.Campbell@citrix.com] 
> Sent: Thursday, May 02, 2013 9:42 AM
> To: Sander Eikelenboom
> Cc: Steve Prochniak; xen-devel@lists.xen.org
> Subject: Re: [Xen-devel] Xend FD leak upon migrate receive
>
> On Thu, 2013-05-02 at 14:36 +0100, Sander Eikelenboom wrote:
>   
>> Thursday, May 2, 2013, 1:42:11 PM, you wrote:
>>
>>     
>>> On Wed, 2013-05-01 at 17:50 +0100, Steve Prochniak wrote:
>>>       
>>>> 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.
>>>       
>> 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
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
>   

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Xend FD leak upon migrate receive
  2013-05-07 15:31         ` Jim Fehlig
@ 2013-05-08 18:19           ` Steve Prochniak
  0 siblings, 0 replies; 7+ messages in thread
From: Steve Prochniak @ 2013-05-08 18:19 UTC (permalink / raw)
  To: Jim Fehlig; +Cc: Sander Eikelenboom, Ian Campbell, xen-devel

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:jfehlig@suse.com] 
Sent: Tuesday, May 07, 2013 11:31 AM
To: Steve Prochniak
Cc: Sander Eikelenboom; Ian Campbell; xen-devel@lists.xen.org
Subject: Re: [Xen-devel] Xend FD leak upon migrate receive

Steve Prochniak wrote:
> 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

> -----Original Message-----
> From: Ian Campbell [mailto:Ian.Campbell@citrix.com] 
> Sent: Thursday, May 02, 2013 9:42 AM
> To: Sander Eikelenboom
> Cc: Steve Prochniak; xen-devel@lists.xen.org
> Subject: Re: [Xen-devel] Xend FD leak upon migrate receive
>
> On Thu, 2013-05-02 at 14:36 +0100, Sander Eikelenboom wrote:
>   
>> Thursday, May 2, 2013, 1:42:11 PM, you wrote:
>>
>>     
>>> On Wed, 2013-05-01 at 17:50 +0100, Steve Prochniak wrote:
>>>       
>>>> 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.
>>>       
>> 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
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
>   

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-08 18:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-01 16:50 Xend FD leak upon migrate receive Steve Prochniak
2013-05-02 11:42 ` Ian Campbell
2013-05-02 13:36   ` Sander Eikelenboom
2013-05-02 13:42     ` Ian Campbell
2013-05-02 20:26       ` Steve Prochniak
2013-05-07 15:31         ` Jim Fehlig
2013-05-08 18:19           ` Steve Prochniak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.