Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.120 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.76; '*S*': 0.00; 'python': 0.09; 'spawn': 0.09; 'subject:None': 0.09; 'thread,': 0.09; 'subject:python': 0.11; 'size,': 0.13; '(just': 0.16; 'ends,': 0.16; 'iterator': 0.16; 'wrote:': 0.17; 'memory': 0.18; 'app': 0.19; 'not,': 0.21; 'os,': 0.22; 'subject:release': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'separate': 0.27; 'disk': 0.27; 'execution': 0.27; "doesn't": 0.28; 'actual': 0.28; 'run': 0.28; 'file': 0.32; 'space,': 0.32; 'running': 0.32; 'problem': 0.33; 'to:addr:python-list': 0.33; 'server': 0.35; 'list': 0.35; 'but': 0.36; "wasn't": 0.36; 'possible': 0.37; 'uses': 0.37; 'being': 0.37; 'why': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'planning': 0.38; 'to:addr:python.org': 0.39; 'release': 0.39; 'received:192': 0.39; 'space': 0.39; 'short': 0.39; 'application': 0.40; 'received:192.168': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'subject:, ': 0.61; 'back': 0.62; 'time,': 0.62; 'more': 0.63; 'therefore': 0.65; 'taking': 0.65; 'received:74.208': 0.71; 'increase': 0.72; 'received:74.208.4.194': 0.84; 'size?': 0.84; 'execution,': 0.91; 'subject:Set': 0.91; 'subject:del': 0.91; 'whereby': 0.91; 'afford': 0.93 Date: Sat, 09 Mar 2013 06:02:37 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Set x to to None and del x doesn't release memory in python 2.7.1 (HPUX 11.23, ia64) References: <390f0dc5-5750-4849-9433-a19d90cc8566@googlegroups.com> <87zjyhhret.fsf@nautilus.nautilus> <5137d292$0$30001$c3e8da3$5496439d@news.astraweb.com> <78E1273CA6E76A43BB8830A194FF709B0B14D68C@039-SN2MPN1-013.039d.mgd.msft.net> <78E1273CA6E76A43BB8830A194FF709B0B153A71@039-SN2MPN1-013.039d.mgd.msft.net> <78E1273CA6E76A43BB8830A194FF709B0B157FC9@039-SN2MPN1-013.039d.mgd.msft.net> In-Reply-To: <78E1273CA6E76A43BB8830A194FF709B0B157FC9@039-SN2MPN1-013.039d.mgd.msft.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:O8Z8PMxChzCnKYrVAh8uVUqgWPZCtK+PleyiCuM4+ew jh1LYATjCiti9edF7wyPtp6JcGIuJUhxfbsof9OmuO2k5QYT4x uHB+iVPTb2IXqYePErLCuGiVzTPgfUJxeR6xiWgSKvUXghyWT/ 4AH4MFp+GiE+gl4N1bsTHcJX/klVd9j0W41Cb57hLHDZPl9aRN AONMQVFRnCwvnLxqxYDdhBTN8dIKyu1phvfkocToYezX3cwvDT 4Foz2oxF0x18O1O1VEMHUWNQNh92+VaKrG2orz5yYLfFq+NTTp xQeg7xAN5lqrJwmSnSZI/14wV4TCQK3nG/RiqQ1+bi49nXhDA= = 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362826985 news.xs4all.nl 6882 [2001:888:2000:d::a6]:36932 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40940 On 03/09/2013 03:07 AM, Wong Wah Meng-R32813 wrote: > > > Yes I have verified my python application is reusing the memory (just that it doesn't reduce once it has grown) and my python process doesn't have any issue to run even though it is seen taking up more than 2G in footprint. My problem is capacity planning on the server whereby since my python process doesn't release memory back to the OS, the OS wasn't able to allocate memory when a new process is spawn off> So is the server running out of disk space? If not, why not increase the swapfile(s) size? That's what's being held onto, not RAM. If you are short on disk space, and therefore cannot afford to increase the swapfile size, then you may want to plan the Python program's execution around that constraint. Discounting the play-program that started this thread, is it possible that your actual app unnecessarily uses lots of space during one phase of execution, and therefore is saddled with that space at other times? For example, are you using a large list to hold a data file when an iterator would do just as well? If that phase of execution cannot be eliminated, but it's a fleeting time, perhaps that part of the execution can be launched from the main app as a separate process. When the process ends, the memory is freed. -- DaveA