Hi, Kienan
I am attaching an screen recording of
the behaviour I am seeing in this mail. The behaviour is same
irrespective of the device i use, sorry for miscommunication in the
npocs output (I assumed it was 32), but other than that all outputs are
same (except the hostname as there are multiple devices with same lttng
config but this memory cosumption is seen on all the devices).
I had few question
1.
Does lltng allocated all the memory it needs and mark it as dirty in
ram when any process which links/uses lttng-ust runs? (here i tried with
one process but it is same for any of my process)
2. (nSubbuf * subbufSize) * (nCPUs + 1 iff snapshot mode is enabled) * (nUIDs or nPIDs)
How do we calculate uid in the system is it all uids in the system? is it equal to `cat /etc/passwd | wc -l` ?
I will put my calculations according to the above estimate based on all the channel i am creating
(4194304*4 + 262144*4 + 16384*4) * (16) * (30 if number user are equal to `cat /etc/passwd | wc -l`)B = 7.998046875 GB approx [this is based on the start_lttng.py please do correct me if am wrong here.]
But since there are only two users which uses lttng i think the correct estimate would be
(4194304*4 + 262144*4 + 16384*4) * (16) * (2)B = 546MB
Please do correct me If I am wrong calculations here.
Now,
there are a few things here, according to my output lttng is using 11G
which is much more higher than the what is configured.
I am attaching the lttng status and the file which is uses to create the lttng sessions.