Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30127

Re: Memory usage per top 10x usage per heapy

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <junkshops@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.033
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'memory.': 0.05; 'nested': 0.07; 'references,': 0.09; 'wrong,': 0.09; 'cc:addr:python-list': 0.10; '10x': 0.16; 'expect,': 0.16; 'subject:usage': 0.16; 'wrote:': 0.17; 'memory': 0.18; 'variable': 0.20; "i'd": 0.22; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'am,': 0.27; 'subject:per': 0.29; 'figure': 0.30; 'received:209.85.160.46': 0.32; 'know.': 0.33; "can't": 0.34; 'agree': 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'except': 0.36; 'but': 0.36; 'message- id:@gmail.com': 0.36; 'be.': 0.36; 'expensive': 0.36; 'limitation': 0.36; 'received:209': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'header:Received:5': 0.40; 'think': 0.40; 'first': 0.61; 'more': 0.63; 'results': 0.65; 'reporting,': 0.84; 'suspicion': 0.84; 'way...': 0.84; 'angel': 0.93; 'proposition': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=QX21HSynQ8eAUUis8bSkiVyXm/9kTto/AH4zLbL2Ozg=; b=Niui9A8a1FtgQQBnHipPCXy6jyEy9Bm5Gj8tLjeUbM/R98LeoC2vgv/iL6KYZeddeE nOalDPhEWMTWhh134C0Epk/R38YRzrWb0LqfHU6IJKV9JOSgmFol2w9esRqaGij+PWyH MOPGWR4l5ysFTZT90ulWly6oKQKgqig0yt/jaxdU5A5dCmWhkgDM9pT+h2ckGCiTC1j7 txZ+zvpWiX0fY6VOUp5CJ0vwlMNNIFNzrev16hefjZevxqjzaDxgzrl4Ku6CHnj0p760 tk4yHwODKLak6HhlbWxUASB/hqC/iDHKmamhlpPLWc7uW8lHiP4V1UcaQ6pRUqT8hKq9 oZAA==
Date Tue, 25 Sep 2012 14:02:56 -0700
From Junkshops <junkshops@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version 1.0
To d@davea.name
Subject Re: Memory usage per top 10x usage per heapy
References <983c532f-3ff6-4bd2-bb48-07cf4d065a4b@googlegroups.com> <5061056F.6080702@davea.name> <50613131.6030102@gmail.com> <50619035.3080106@davea.name> <5061EC34.5050009@gmail.com> <5061FCFB.3030900@davea.name>
In-Reply-To <5061FCFB.3030900@davea.name>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1377.1348606988.27098.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1348606988 news.xs4all.nl 6872 [2001:888:2000:d::a6]:34539
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30127

Show key headers only | View raw


On 9/25/2012 11:50 AM, Dave Angel wrote:
> I suspect that heapy has some limitation in its reporting, and that's 
> what the discrepancy.

That would be my first suspicion as well - except that heapy's results 
agree so well with what I expect, and I can't think of any reason I'd be 
using 10x more memory. If heapy is wrong, then I need to try and figure 
out what's using up all that memory some other way... but I don't know 
what that way might be.

> ... can be an expensive proposition if you are building millions of 
> them. So can nested functions with non-local variable references, in 
> case you have any of those. 

Not as far as I know.

Cheers, MrsEntity

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Memory usage per top 10x usage per heapy MrsEntity <junkshops@gmail.com> - 2012-09-24 14:59 -0700
  Re: Memory usage per top 10x usage per heapy Tim Chase <python.list@tim.thechases.com> - 2012-09-24 18:22 -0500
  Re: Memory usage per top 10x usage per heapy Junkshops <junkshops@gmail.com> - 2012-09-24 16:58 -0700
    Re: Memory usage per top 10x usage per heapy bryanjugglercryptographer@yahoo.com - 2012-09-27 01:00 -0700
    Re: Memory usage per top 10x usage per heapy bryanjugglercryptographer@yahoo.com - 2012-09-27 01:00 -0700
  Re: Memory usage per top 10x usage per heapy Dave Angel <d@davea.name> - 2012-09-24 21:14 -0400
  Re: Memory usage per top 10x usage per heapy Junkshops <junkshops@gmail.com> - 2012-09-24 21:21 -0700
  Re: Memory usage per top 10x usage per heapy Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-25 00:41 -0400
  Re: Memory usage per top 10x usage per heapy Tim Chase <python.list@tim.thechases.com> - 2012-09-25 05:51 -0500
  Re: Memory usage per top 10x usage per heapy Dave Angel <d@davea.name> - 2012-09-25 07:06 -0400
  Re: Memory usage per top 10x usage per heapy Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 12:10 +0100
  Re: gracious responses (was: Memory usage per top 10x usage per heapy) Tim Chase <python.list@tim.thechases.com> - 2012-09-25 06:40 -0500
    Re: gracious responses (was: Memory usage per top 10x usage per heapy) alex23 <wuwei23@gmail.com> - 2012-09-25 05:44 -0700
      Re: gracious responses Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 13:53 +0100
  Re: gracious responses Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-25 12:54 +0100
    Re: gracious responses Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-25 15:17 +0000
  Re: Memory usage per top 10x usage per heapy Dave Angel <d@davea.name> - 2012-09-25 14:50 -0400
  Re: Memory usage per top 10x usage per heapy Junkshops <junkshops@gmail.com> - 2012-09-25 14:02 -0700
  Re: Memory usage per top 10x usage per heapy Junkshops <junkshops@gmail.com> - 2012-09-25 14:35 -0700
  Re: Memory usage per top 10x usage per heapy Tim Chase <python.list@tim.thechases.com> - 2012-09-25 17:10 -0500
  Re: Memory usage per top 10x usage per heapy Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-25 16:09 -0600
  Re: Memory usage per top 10x usage per heapy Tim Chase <python.list@tim.thechases.com> - 2012-09-25 18:35 -0500

csiph-web