Calculate VM size using jemalloc.

Konstantin Tokarev annulen at yandex.ru
Fri Oct 16 04:32:51 PDT 2015



16.10.2015, 14:16, "Prajakta" <praj.jagtap at gmail.com>:
> So, there might be some way by which I will be able to get constant part process.(Text + stack).
> In my calculations, for finding out this constant part I was referring to:
>
> VMSize (from /proc/pid/status) - stats.allocated (from jemalloc).
>
> But, after few allocations only I can see that this difference is not remaining constant.
> I feel that along with stats.allocated, I need to consider some more stats for finding out this constant.

You can try to use stats.mapped instead.

>
> Thanks,
> Prajakta
>
> On Fri, Oct 16, 2015 at 4:35 PM, Konstantin Tokarev <annulen at yandex.ru> wrote:
>> 16.10.2015, 14:01, "Prajakta" <praj.jagtap at gmail.com>:
>>> Hi,
>>>
>>> I want to calculate VM size of process.
>>> In /proc/pid/status, we get amount of VM size used by the process.
>>> I want to get same counter with the help of jemalloc.
>>
>> You cannot, because jemalloc takes care about heap only.
>>
>>>
>>> For that I was making use of stats.allocated.
>>>
>>> Do I need to take into consideration any other statistics for getting VM Size?
>>>
>>> Thanks,
>>> Prajakta
>>> ,
>>>
>>> _______________________________________________
>>> jemalloc-discuss mailing list
>>> jemalloc-discuss at canonware.com
>>> http://www.canonware.com/mailman/listinfo/jemalloc-discuss
>>
>> --
>> Regards,
>> Konstantin


-- 
Regards,
Konstantin


More information about the jemalloc-discuss mailing list