Hello Gary, Thanks for looking at the data.
As much as I'd like to believe I'm OK, if I start 20 Python processes, I start to get internal errors from the web app and I remember seeing memory errors in some logs but I don't remember where exactly...what I also see is that in top output, there will be virtually no free memory - this can't be good :) Jack > This is completely normal. Python is using a total of about 28 MB of > RAM here for all 12 processes. The "used" value at the top of the > output does not mean "total amount of resident memory of all > programs". It means "total amount of physical memory used for > *something*". That "something" includes buffers and cache. For > example, the kernel will use any free physical RAM to cache recently > read files. This is a wonderful thing, since the RAM was just sitting > there doing nothing anyway. But it means that the "used" value in top > is effectively meaningless. You can see the actual amount of memory > being used with the "free" command: > [EMAIL PROTECTED] ~]$ free > total used free shared buffers cached > Mem: 1035728 600544 435184 0 94124 235716 > -/+ buffers/cache: 270704 765024 > Swap: 2096472 14680 2081792 > When I run top, it says "600656k used". But free shows me that, when > buffers and cache are excluded, there's really only 270704k used. > Seriously, there's nothing wrong with Linux's memory management and > Python is using a perfectly reasonable amount of memory. Are you > having some performance problem that prompted this interest in memory > usage? Maybe we can talk about that instead. ;) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
