All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: LTTng memory map
       [not found] <CY4PR13MB14149C4EF327ABE7F53ED61AC7CC0@CY4PR13MB1414.namprd13.prod.outlook.com>
@ 2016-09-28 23:38 ` Jeffrey Chen
       [not found] ` <DM5PR13MB14195604280F866E14687DFCC7CF0@DM5PR13MB1419.namprd13.prod.outlook.com>
  1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey Chen @ 2016-09-28 23:38 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 2260 bytes --]

It looks like the code that called shm_open() is called at the lttng-consumerd daemon. But, somehow it show up in the pmap at my service process. I noticed all my processes that loads liblttng-ust would have this entry. Do you know what's the reason?


________________________________
From: lttng-dev <lttng-dev-bounces@lists.lttng.org> on behalf of Jeffrey Chen <cpthk@live.com>
Sent: Tuesday, September 27, 2016 11:20 AM
To: lttng-dev
Subject: [lttng-dev] LTTng memory map


Hi LTTng:


Our service has been running overnight with LTTng enabled to do some memory consumption testing. We noticed the linux pmap output would have several memory map used by LTTng, and are marked as deleted. Do you know what are them? Why are they left in the system and marked as deleted? Thanks.


00007fc3017ee000   40968     592     592 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3017ee000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc303ff0000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc303ff0000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3067f2000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3067f2000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc308ff4000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc308ff4000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc30b7f6000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc30b7f6000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc30dff8000   40968     524     524 rw-s- ust-shm-consumer-58905 (deleted)
00007fc30dff8000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3107fa000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3107fa000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc312ffc000   40968     244     244 rw-s- ust-shm-consumer-58905 (deleted)
00007fc312ffc000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3157fe000   40968     396     396 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3157fe000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)


[-- Attachment #1.2: Type: text/html, Size: 4945 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LTTng memory map
       [not found] ` <DM5PR13MB14195604280F866E14687DFCC7CF0@DM5PR13MB1419.namprd13.prod.outlook.com>
@ 2016-09-30  1:24   ` Mathieu Desnoyers
  0 siblings, 0 replies; 3+ messages in thread
From: Mathieu Desnoyers @ 2016-09-30  1:24 UTC (permalink / raw)
  To: Jeffrey Chen; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 2752 bytes --]

Yes, we open and then unlink the file in the shm within consumerd. 
Its inode stays reserved on the disk as long as we have at least 
one handle on it. 

We do file descriptor passing from consumerd to sessiond to 
the application over unix sockets. 

The reason why we unlink the file shortly after creation by consumerd 
is to make sure we teardown all resources cleanly even in case the 
consumerd would be killed by a SIGKILL. 

Thanks, 

Mathieu 

----- On Sep 28, 2016, at 7:38 PM, Jeffrey Chen <cpthk@live.com> wrote: 

> It looks like the code that called shm_open() is called at the lttng-consumerd
> daemon. But, somehow it show up in the pmap at my service process. I noticed
> all my processes that loads liblttng-ust would have this entry. Do you know
> what's the reason?

> From: lttng-dev <lttng-dev-bounces@lists.lttng.org> on behalf of Jeffrey Chen
> <cpthk@live.com>
> Sent: Tuesday, September 27, 2016 11:20 AM
> To: lttng-dev
> Subject: [lttng-dev] LTTng memory map

> Hi LTTng:

> Our service has been running overnight with LTTng enabled to do some memory
> consumption testing. We noticed the linux pmap output would have several memory
> map used by LTTng, and are marked as deleted. Do you know what are them? Why
> are they left in the system and marked as deleted? Thanks.

> 00007fc3017ee000 40968 592 592 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc3017ee000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc303ff0000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc303ff0000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc3067f2000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc3067f2000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc308ff4000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc308ff4000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc30b7f6000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc30b7f6000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc30dff8000 40968 524 524 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc30dff8000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc3107fa000 40968 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc3107fa000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc312ffc000 40968 244 244 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc312ffc000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc3157fe000 40968 396 396 rw-s- ust-shm-consumer-58905 (deleted)

> 00007fc3157fe000 0 0 0 rw-s- ust-shm-consumer-58905 (deleted)

> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 

[-- Attachment #1.2: Type: text/html, Size: 6660 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

* LTTng memory map
@ 2016-09-27 18:20 Jeffrey Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey Chen @ 2016-09-27 18:20 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 1772 bytes --]

Hi LTTng:


Our service has been running overnight with LTTng enabled to do some memory consumption testing. We noticed the linux pmap output would have several memory map used by LTTng, and are marked as deleted. Do you know what are them? Why are they left in the system and marked as deleted? Thanks.


00007fc3017ee000   40968     592     592 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3017ee000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc303ff0000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc303ff0000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3067f2000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3067f2000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc308ff4000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc308ff4000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc30b7f6000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc30b7f6000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc30dff8000   40968     524     524 rw-s- ust-shm-consumer-58905 (deleted)
00007fc30dff8000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3107fa000   40968       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3107fa000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc312ffc000   40968     244     244 rw-s- ust-shm-consumer-58905 (deleted)
00007fc312ffc000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3157fe000   40968     396     396 rw-s- ust-shm-consumer-58905 (deleted)
00007fc3157fe000       0       0       0 rw-s- ust-shm-consumer-58905 (deleted)


[-- Attachment #1.2: Type: text/html, Size: 4036 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-30  1:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CY4PR13MB14149C4EF327ABE7F53ED61AC7CC0@CY4PR13MB1414.namprd13.prod.outlook.com>
2016-09-28 23:38 ` LTTng memory map Jeffrey Chen
     [not found] ` <DM5PR13MB14195604280F866E14687DFCC7CF0@DM5PR13MB1419.namprd13.prod.outlook.com>
2016-09-30  1:24   ` Mathieu Desnoyers
2016-09-27 18:20 Jeffrey Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.