memory consumption
Chris Angelico
rosuav at gmail.com
Tue Mar 30 11:50:06 EDT 2021
On Wed, Mar 31, 2021 at 2:44 AM Alan Gauld via Python-list
<python-list at python.org> wrote:
>
> On 29/03/2021 11:12, Alexey wrote:
> > Hello everyone!
> > I'm experiencing problems with memory consumption.
> >
>
> The first thing you really need to tell us is which
> OS you are using? Memory management varies wildly
> depending on OS. Even different flavours of *nix
> do it differently.
>
> However, most do it effectively, so you as a programmer
> shouldn't have to worry too much provided you aren't
> leaking, which you don't think you are.
>
> > and after second run it weighs 1Gb. If I will continue
> > to run this class, memory wont increase, so I think
> > it's not a memory leak, but rather Python wont release
> > allocated memory back to OS. Maybe I'm wrong.
>
> A 1GB process on modern computers is hardly a big problem?
> Most machines have 4G and many have 16G or even 32G
> nowadays.
>
Desktop systems maybe, but if you rent yourself a worker box, it might
not have anything like that much. Especially if you need to have
multiple of them.
ChrisA
More information about the Python-list
mailing list