Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'memory.': 0.05; '(of': 0.07; 'completeness': 0.07; 'python': 0.09; 'available)': 0.09; 'received:155': 0.09; 'itself.': 0.11; 'subject:not': 0.11; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'received:155.180': 0.16; 'received:155.180.234': 0.16; 'received:155.180.234.122': 0.16; 'received:159.53': 0.16; 'received:159.53.110': 0.16; 'received:159.53.110.174': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:se3.svr.bankone.net': 0.16; 'received:sj2.jpmchase.com': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'memory': 0.18; 'load': 0.19; 'to:name:python- list@python.org': 0.20; 'file.': 0.20; 'converted': 0.22; 'mention': 0.23; 'originally': 0.23; 'received:169.254': 0.24; 'tried': 0.25; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'accuracy': 0.27; 'noticed': 0.28; 'received:169': 0.29; 'that.': 0.30; 'error': 0.30; 'code': 0.31; 'file': 0.32; 'to:addr:python- list': 0.33; 'but': 0.36; 'charset:us-ascii': 0.36; 'data': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'takes': 0.39; 'information,': 0.63; 'url:email': 0.63; 'more': 0.63; 'gave': 0.65; 'legal': 0.65; 'subject': 0.66; 'purchase': 0.67; 'physical': 0.69; 'sale': 0.76; 'received:169.254.8': 0.84; 'subject:available': 0.96 X-DKIM: OpenDKIM Filter v2.1.3 sj2.jpmchase.com q9JJY7dh028864 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1350675248; bh=JGzG8qclaBBx5ncr7ErfQ2fLHg55XJuozTRuQ7bzukU=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=eo+cj71vX8LW1XVgWD8ZGyxPuPb1oWj+upeCyhu5oHeFKUnIwAIfLQ+NtoxCdz42U A8vJRKycfNGR6C3v7WkjrIhjnSaYwWo+PSfpj9FHNA01ReekGAvrhUF3rUutmYqake /rU6uH9Y0SOM8yzCOx1EP9rLA23QvLCgF0D5ze4E= From: "Prasad, Ramit" To: "python-list@python.org" Subject: RE: Python does not take up available physical memory Thread-Topic: Python does not take up available physical memory Thread-Index: Ac2uHGpaUb5JSqdJR1m8LKyDAm0X3wAk7LKA//87toCAAD8YsA== Date: Fri, 19 Oct 2012 19:33:46 +0000 References: <76D03718A3233B4C8CC236C169B535B5A23E063E45@AUSP01VMBX08.collaborationhost.net> <76D03718A3233B4C8CC236C169B535B5A23E063EB5@AUSP01VMBX08.collaborationhost.net> In-Reply-To: <76D03718A3233B4C8CC236C169B535B5A23E063EB5@AUSP01VMBX08.collaborationhost.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.47] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350675714 news.xs4all.nl 6940 [2001:888:2000:d::a6]:37897 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31764 Pradipto Banerjee wrote:=0D=0A> Thanks, I tried that=2E Still got MemoryErr= or, but at least this time python tried to use the physical memory=2E=0D=0A= > What I noticed is that before it gave me the error it used up to 1=2E5GB = (of the 2=2E23 GB originally showed as=0D=0A> available) - so in general, p= ython takes up more memory than the size of the file itself=2E=0D=0A=0D=0A= =0D=0AOf course it will=2E Python has to keep its own code in memory and = =0D=0Aload the file=2E Not to mention that the file is converted from data = =0D=0Ainto a Python object with its own overhead=2E=0D=0A=0D=0ARamit Prasad= =0D=0A=0D=0A=0D=0AThis email is confidential and subject to important discl= aimers and=0D=0Aconditions including on offers for the purchase or sale of= =0D=0Asecurities, accuracy and completeness of information, viruses,=0D=0Ac= onfidentiality, legal privilege, and legal entity disclaimers,=0D=0Aavailab= le at http://www=2Ejpmorgan=2Ecom/pages/disclosures/email=2E