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


Groups > comp.lang.python > #50857

Re: Why on CentOS, python consumes too much memory ?

Date 2013-07-18 07:51 -0600
From Michael Torrie <torriem@gmail.com>
Subject Re: Why on CentOS, python consumes too much memory ?
References <9c8ca067-a230-406a-95f6-12af80da1728@googlegroups.com> <0ee7b61b-5fcd-406c-b3ac-44aeb949e7e9@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.4840.1374155491.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 07/18/2013 03:13 AM, William Bai wrote:
> I found that it was caused by not by python but by
> /usr/lib/locale/locale-archive, the same problem as that described
> in http://illiterat.livejournal.com/4615.html.

Too funny.  So in other words there isn't a problem at all.  What you
thought was RAM usage was really just a memory-mapped file.  That's why
Antoine said that using VSS to determine memory usage is not valid at
all in determining memory footprint.  VSS shows all kinds of things from
shared libraries to locale archives that have zero impact on RAM usage.
 Every app will show at least the size of glibc in its VSS number.

What is "too much memory" anyway?  What do you mean by "consume too much
memory?"  Now if your script has a resource leak and is long-running,
then that's a problem, but the solution is to fix your resource leak,
not have the OS kill your app when it exceeds the RLIMIT.

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


Thread

Why on CentOS, python consumes too much memory ? snowingbear@gmail.com - 2013-07-17 21:45 -0700
  Re: Why on CentOS, python consumes too much memory ? William Bai <snowingbear@gmail.com> - 2013-07-18 02:13 -0700
    Re: Why on CentOS, python consumes too much memory ? Michael Torrie <torriem@gmail.com> - 2013-07-18 07:51 -0600
  Re: Why on CentOS, python consumes too much memory ? Antoine Pitrou <solipsis@pitrou.net> - 2013-07-18 09:21 +0000

csiph-web