On Dec 10, 3:03 pm, "Gary Bernhardt" <[EMAIL PROTECTED]> wrote: > On Dec 9, 2007 2:43 PM, JLIST <[EMAIL PROTECTED]> wrote: > > > > > I find something interesting - Python takes a lot of memory on Linux, > > much more than it does on Windows. > > You've compared them wrong - you're comparing virtual memory use on > Linux to real memory use on Windows. For example, here's the physical > and virtual usage I get (on OS X) for a freshly opened Python > instance: > > grbmbp:~ grb$ ps -c -p 17894 -o command,rss,vsize > COMMAND RSS VSZ > Python 2556 37140 > > Here's the same thing on Linux: > > [EMAIL PROTECTED] ~]$ ps -o cmd,rss,vsize -p 17853 > CMD RSS VSZ > python 2672 7620 > > RSS (or RSIZE, or RES) is the "resident set size", which is roughly > the amount of physical RAM the process is using. This is generally > what you should care about. VSZ (or VSIZE, or VIRT) is a measure of > the size of the process' virtual address space. You probably > shouldn't be concerned with this number at all.
Actually, virtual memory size matters a great deal in a VPS, as the limitations of the VPS take it into consideration in determining if you have exceeded your limits. Posts I referenced talk about it. Did forgot one reference though, and that is section 'Memory Constrained VPS Systems' of: http://code.google.com/p/modwsgi/wiki/ApplicationIssues where I try and summarise the issue and what in Apache/mod_wsgi at least one can do to counter the problem. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
