Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.053 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.01; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'desktop.': 0.16; 'filesystem': 0.16; 'finney': 0.16; 'grasp': 0.16; 'pressed': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'suspend': 0.16; 'wrote:': 0.18; 'machine': 0.22; 'memory': 0.22; 'header:User-Agent:1': 0.23; 'resumes': 0.24; 'satisfying': 0.24; '15,': 0.26; 'header:X-Complaints-To:1': 0.27; 'writes:': 0.31; 'file': 0.32; 'run': 0.32; 'guess': 0.33; 'really': 0.36; 'disk': 0.36; 'machine.': 0.36; 'ben': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'browser': 0.61; 'fire': 0.65; 'continuous': 0.68; '8bit%:21': 0.69; 'power': 0.76; 'transfer': 0.82; 'application?': 0.84; 'leak': 0.84; 'universe': 0.84; 'rusi': 0.91; 'instant': 0.97 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: Debugging memory leaks Date: Sat, 15 Jun 2013 21:23:57 +1000 References: <09917103-b35e-4728-8fea-bcb4ce2bd1af@googlegroups.com> <138836f2-39a4-4424-9090-f29d0b91654b@g5g2000pbp.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: rasputin.madmonks.org X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:2DIUqh3H37keJOZsRPNhxdXJ9bc= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371295450 news.xs4all.nl 16007 [2001:888:2000:d::a6]:40294 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48284 rusi writes: > On Jun 15, 5:16 am, Ben Finney wrote: > > Is a web browser a “typical desktop app”? A filesystem browser? An > > instant messenger? A file transfer application? A podcatcher? All of > > those typically run for months at a time on my desktop. > > > > Any memory leak in any of those is going to cause trouble, please > > hunt them all down with fire and exterminate with prejudice. > > Oh well -- I guess I am an old geezer who shuts my machine when I am > done! As do I. And when I power on the machine, it resumes exactly where it left off: with the exact same contents of memory as when I pressed the Suspend button. That is, the memory leak will continue to accumulate as the run time of the process continues. > Yeah I know -- not so good for the disk though its good for the > planet! You can have both: a continuous session, and stop consuming power while not using your machine. -- \ “It is far better to grasp the universe as it really is than to | `\ persist in delusion, however satisfying and reassuring.” —Carl | _o__) Sagan | Ben Finney