[Bug 289283] New: memory leak in xend
https://bugzilla.novell.com/show_bug.cgi?id=289283 Summary: memory leak in xend Product: openSUSE 10.3 Version: Alpha 5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: cgriffin@novell.com ReportedBy: ccoffing@novell.com QAContact: jdouglas@novell.com Found By: Development While attempting to reproduce a virt-manager memory leak, I ran the following script over night: while true; do xm new debian40 ; sleep 2s; xm delete debian40 ; sleep 2s; done After running for about 16 hours (~14,400 new/delete cycles), xend had grown its memory usage considerably: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5345 root 15 0 197m 98m 1864 S 96 11.3 352:39.00 python Just for the record, here's the pstree: |-python,5344 /usr/sbin/xend start | `-python,5345 /usr/sbin/xend start | |-{python},5351 | |-{python},5352 | |-{python},5423 | |-{python},5424 | |-{python},6177 | |-{python},6178 | |-{python},6179 | |-{python},20573 | `-{python},20576 xenstored has not grown: linux-8cmy:/etc/xen/vm # ls -l /var/lib/xenstored/ total 292 -rw-r----- 1 root root 90112 2007-07-02 16:46 tdb -rw-r----- 1 root root 32768 2007-06-19 15:01 tdb.0x806afb0 -rw-r----- 1 root root 65536 2007-06-21 09:31 tdb.0x806c110 -rw-r----- 1 root root 32768 2007-06-19 15:01 tdb.0x806c608 -rw-r----- 1 root root 65536 2007-06-21 09:31 tdb.0x806caf0 So it appears to truly be a leak (perhaps cyclic reference in python code, or bad refcount in C bindings), not cruft piling up in xenstored. Looks like RSS grew by 6.4KB per cycle. Restarting xend frees up the memory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=289283#c1
Charles Coffing
https://bugzilla.novell.com/show_bug.cgi?id=289283
Lynn Bendixsen
https://bugzilla.novell.com/show_bug.cgi?id=289283
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=289283#c2
--- Comment #2 from James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=289283#c3
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=289283#c4
James Fehlig
https://bugzilla.novell.com/show_bug.cgi?id=289283
James Fehlig
participants (1)
-
bugzilla_noreply@novell.com