develooper Front page | perl.perl6.users | Postings from August 2017

Memory leak or just normal usage in Rakudo?

From:
Gabor Szabo
Date:
August 3, 2017 10:37
Subject:
Memory leak or just normal usage in Rakudo?
Message ID:
CABe4FJAGxU_Ubwkx0kR-hEtasfSfLHqmvB+47n5PJ2hKeLuYsQ@mail.gmail.com
Hi,

I think I've mentioned earlier that we see some memory leaks in Bailador.
I've started to investigate it by creating a small function that would
use "ps" to get the memory usage of the current process.

The first step was to do some sanity check and so I wrote a test script:

https://github.com/szabgab/p6-memory/blob/master/t/memory-usage.t

As I am far from being an expert in the field, I wonder if checking
the VSZ as reported by ps is even a good indication of the memory
consumption of a process?

Then I've to note that the results were different in almost every run
which makes me further wonder why?

The numbers are also drastically different between my OSX and running
on Travis-CI, though Rakudo is also different.

Does any of this make sense? Does it indicate any memory leak in
Rakudo already or is this just normal memory usage?

How could I improve my measuring and what else should I measure?

regards
    Gabor



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About