* [BUG] memory leak in xend, console output
@ 2005-04-05 5:14 Christopher S. Aker
2005-04-05 5:27 ` [BUG] memory leak in xend Christopher S. Aker
0 siblings, 1 reply; 10+ messages in thread
From: Christopher S. Aker @ 2005-04-05 5:14 UTC (permalink / raw)
To: xen-devel
2.05 stable tools
My xend process is currently at 462M. To reproduce: start a domain, telnet/xencons
into the console, make some output (find / is a good way) and watch xend's memory
rise.
Can't restart xend, since it refuses to restart if there are domUs running (check
this post)
http://lists.xensource.com/archives/html/xen-devel/2005-04/msg00051.html
Thanks,
-Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] memory leak in xend
2005-04-05 5:14 [BUG] memory leak in xend, console output Christopher S. Aker
@ 2005-04-05 5:27 ` Christopher S. Aker
2005-04-07 13:34 ` M.A. Williamson
0 siblings, 1 reply; 10+ messages in thread
From: Christopher S. Aker @ 2005-04-05 5:27 UTC (permalink / raw)
To: xen-devel
> My xend process is currently at 462M. To reproduce: start a domain, telnet/xencons
> into the console, make some output (find / is a good way) and watch xend's memory
> rise.
Ok, it's not console output. xend's memory flickers up/down, but ends on the same
number.
I'm trying "watch -n0 xm list" now. So far, it's gone up 700k in the last minute. It
appears as though every run through "xm list" list adds ~2k
-Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [BUG] memory leak in xend
@ 2005-04-05 6:49 Ian Pratt
0 siblings, 0 replies; 10+ messages in thread
From: Ian Pratt @ 2005-04-05 6:49 UTC (permalink / raw)
To: Christopher S. Aker, xen-devel
> > My xend process is currently at 462M. To reproduce: start
> a domain,
> > telnet/xencons into the console, make some output (find / is a good
> > way) and watch xend's memory rise.
>
> Ok, it's not console output. xend's memory flickers up/down,
> but ends on the same number.
>
> I'm trying "watch -n0 xm list" now. So far, it's gone up 700k
> in the last minute. It appears as though every run through
> "xm list" list adds ~2k
Since pyhthon is a garbage collected language, this is not unexpected.
It will reclaim the memory only ehen the GC runs.
You can probably set tuning parameters for python's GC if you want to
reclaim the memory earlier. See python.org.
Ian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] memory leak in xend
2005-04-05 5:27 ` [BUG] memory leak in xend Christopher S. Aker
@ 2005-04-07 13:34 ` M.A. Williamson
2005-04-07 17:51 ` Christopher S. Aker
0 siblings, 1 reply; 10+ messages in thread
From: M.A. Williamson @ 2005-04-07 13:34 UTC (permalink / raw)
To: Christopher S. Aker; +Cc: xen-devel
> I'm trying "watch -n0 xm list" now. So far, it's gone up 700k in the
> last minute. It appears as though every run through "xm list" list adds
> ~2k
I can replicate this too, so it does need looking into. I can't really see
what could be wrong with the code, though so would appreciate if someone
else could poke around in there.
Can you post a link to the graph you mentioned in #xen?
Cheers,
Mark
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] memory leak in xend
2005-04-07 13:34 ` M.A. Williamson
@ 2005-04-07 17:51 ` Christopher S. Aker
2005-04-07 18:23 ` Anthony Liguori
0 siblings, 1 reply; 10+ messages in thread
From: Christopher S. Aker @ 2005-04-07 17:51 UTC (permalink / raw)
To: maw48; +Cc: xen-devel
> > I'm trying "watch -n0 xm list" now. So far, it's gone up 700k in the
> > last minute. It appears as though every run through "xm list" list adds
> > ~2k
>
> I can replicate this too, so it does need looking into. I can't really see
> what could be wrong with the code, though so would appreciate if someone
> else could poke around in there.
>
> Can you post a link to the graph you mentioned in #xen?
http://www.theshore.net/~caker/xen/memory-week.png
The flat spot towards the end is from when I stopped running the above command.
Thanks for looking into this!
-Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] memory leak in xend
2005-04-07 17:51 ` Christopher S. Aker
@ 2005-04-07 18:23 ` Anthony Liguori
2005-04-07 18:36 ` Matt Ayres
2005-04-07 18:45 ` Christopher S. Aker
0 siblings, 2 replies; 10+ messages in thread
From: Anthony Liguori @ 2005-04-07 18:23 UTC (permalink / raw)
To: Christopher S. Aker; +Cc: xen-devel, maw48
Christopher S. Aker wrote:
>http://www.theshore.net/~caker/xen/memory-week.png
>
>The flat spot towards the end is from when I stopped running the above command.
>Thanks for looking into this!
>
>
I found this article while Googling.
http://evanjones.ca/python-memory.html
It specifically calls out Twisted as being known to cause this sort of
behavior in the Python VM.
For what it's worth, I've been able to reproduce this memory leakage
also with Xend.
A workaround for current systems could be a cron job that restarts Xend
every few days.
Regards,
Anthony Liguori
>-Chris
>
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] memory leak in xend
2005-04-07 18:23 ` Anthony Liguori
@ 2005-04-07 18:36 ` Matt Ayres
2005-04-07 18:45 ` Christopher S. Aker
1 sibling, 0 replies; 10+ messages in thread
From: Matt Ayres @ 2005-04-07 18:36 UTC (permalink / raw)
To: Anthony Liguori, Christopher S. Aker; +Cc: xen-devel, maw48
>
> A workaround for current systems could be a cron job that restarts Xend
> every few days.
>
See other posts... xend can't be restarted for many users.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] memory leak in xend
2005-04-07 18:23 ` Anthony Liguori
2005-04-07 18:36 ` Matt Ayres
@ 2005-04-07 18:45 ` Christopher S. Aker
2005-04-07 18:50 ` Adam Heath
1 sibling, 1 reply; 10+ messages in thread
From: Christopher S. Aker @ 2005-04-07 18:45 UTC (permalink / raw)
To: Anthony Liguori; +Cc: xen-devel, maw48
> A workaround for current systems could be a cron job that restarts Xend
> every few days.
Xend won't restart in my environment. The work-around that's been posted does allow
xend to be restarted, but not quite. It loses the naming of domains (which, I
suppose is to be expected) but other nasty things happen that make it not a reliable
solution for me.
-Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] memory leak in xend
2005-04-07 18:45 ` Christopher S. Aker
@ 2005-04-07 18:50 ` Adam Heath
2005-04-07 20:49 ` Christopher S. Aker
0 siblings, 1 reply; 10+ messages in thread
From: Adam Heath @ 2005-04-07 18:50 UTC (permalink / raw)
To: Christopher S. Aker; +Cc: xen-devel@lists.xensource.com, maw48@cantab.net
On Thu, 7 Apr 2005, Christopher S. Aker wrote:
> > A workaround for current systems could be a cron job that restarts Xend
> > every few days.
>
> Xend won't restart in my environment. The work-around that's been posted does allow
> xend to be restarted, but not quite. It loses the naming of domains (which, I
> suppose is to be expected) but other nasty things happen that make it not a reliable
> solution for me.
Note, that this problaby isn't that bad of a problem in the real world. We
have a xen box with 4g and 20 domains(including dom0). 64g ram for dom0(128m
swap). It's been up for 84 days, and python only has 15m in use for xend.
My guess is that as long as you don't do a lot with xm/xend, the memory usage
won't grow.
ps: the above box is running 2 tinderboxes constantly in an instance, and
running a busy mailserver, all over nfsroot. It's been rock solid(except for
nfs issues, which aren't xen related).
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] memory leak in xend
2005-04-07 18:50 ` Adam Heath
@ 2005-04-07 20:49 ` Christopher S. Aker
0 siblings, 0 replies; 10+ messages in thread
From: Christopher S. Aker @ 2005-04-07 20:49 UTC (permalink / raw)
To: Adam Heath; +Cc: xen-devel, maw48
> Note, that this problaby isn't that bad of a problem in the real world. We
> have a xen box with 4g and 20 domains(including dom0). 64g ram for dom0(128m
> swap). It's been up for 84 days, and python only has 15m in use for xend.
>
> My guess is that as long as you don't do a lot with xm/xend, the memory usage
> won't grow.
This happens under real-world usage, as well. One of our management scripts polls
"xm list" every minute to gather statistics and state of the domains. The box has
been up for 24 hours, and already xend is using > 120M. I could see other people
doing something similar very easily and I hope that this problem isn't just dismissed
as a corner case.
I guess it's time to look towards the alternative management tools. Any chance of
making them work with xen-2.0?
Thanks,
-Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-04-07 20:49 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-05 5:14 [BUG] memory leak in xend, console output Christopher S. Aker
2005-04-05 5:27 ` [BUG] memory leak in xend Christopher S. Aker
2005-04-07 13:34 ` M.A. Williamson
2005-04-07 17:51 ` Christopher S. Aker
2005-04-07 18:23 ` Anthony Liguori
2005-04-07 18:36 ` Matt Ayres
2005-04-07 18:45 ` Christopher S. Aker
2005-04-07 18:50 ` Adam Heath
2005-04-07 20:49 ` Christopher S. Aker
-- strict thread matches above, loose matches on Subject: below --
2005-04-05 6:49 Ian Pratt
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.