How do you debug memory usage?

Noah noah at noah.org
Tue May 6 20:14:30 EDT 2008


On May 6, 2:19 pm, David <wizza... at gmail.com> wrote:
> I want to debug rdiff-backup (Python backup tool for Linux) - it's
> using 2 GB of memory (1GB ram, 1GB swap) on a backup server at work.
> ...
> David

Rsync uses a lot of memory:
   http://www.samba.org/rsync/FAQ.html#4
rdiff-backup uses librsync, not rsync.
I'm not sure if rsync uses librsync, but one could speculate that
they share some code and perhaps some of the same problems.
But 2GB seems excessive unless you are dealing with millions of files.
A memory leak seems more likely.
--
Noah



More information about the Python-list mailing list