What is heating the memory here? hashlib?

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Mon Feb 15 12:29:07 EST 2016


Às 08:12 de 15-02-2016, Johannes Bauer escreveu:
> On 15.02.2016 03:21, Paulo da Silva wrote:
> 
>> So far I tried the program twice and it ran perfectly.
> 
> I think you measured your RAM consumption wrong.
> 
> Linux uses all free RAM as HDD cache. That's what is used in "buffers".
> That is, it's not "free", but it would be free if any process would
> sbrk(). My guess is that you only looked at the "free" number going down
> and concluded your program is eating your RAM. Which it wasn't.
> 
No, for sure.
I monitored (using atop) free, cache and swap. In general, because I
only have 2GB, freemem is almost always a few tens of MB. Remaining
"free" memory is in Cache. When Cache goes low it begins to swap out.

Paulo



More information about the Python-list mailing list