lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] Deleted files held open by LTTng
@ 2020-10-12  9:04 nils.doering--- via lttng-dev
  2020-10-12 13:17 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 3+ messages in thread
From: nils.doering--- via lttng-dev @ 2020-10-12  9:04 UTC (permalink / raw)
  To: lttng-dev

Hi all,

I have recently started using LTTng and stumbled upon the fact, that
LTTng is keeping a lot of open file pointers to a single deleted file.

Specifically the process that holds these open is the lttng-consumerd and its
threads. The file that is held open, but is deleted is
/dev/shm/ust-shm-consumer-${PID} with the PID of the lttng-comsumerd. The
number of open file descriptors is dependent on the number of CPUs the
system has and results to 16 + (#CPUs * 16). Is this behavior expected?

# lsof | grep lttng | grep DEL
lttng-con  2280             root  DEL       REG               0,18               11128
        /dev/shm/ust-shm-consumer-2280
lttng-con  2280             root  DEL       REG               0,18               11127
        /dev/shm/ust-shm-consumer-2280
lttng-con  2280             root  DEL       REG               0,18               11126
        /dev/shm/ust-shm-consumer-2280
[...]

I have tested this on a Xen-Dom0 system running SLES 12 SP5 and on a
SLES12 SP5 without Xen.

Best regards,
Nils Döring
_______________________________________________
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:[~2020-10-13  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-12  9:04 [lttng-dev] Deleted files held open by LTTng nils.doering--- via lttng-dev
2020-10-12 13:17 ` Mathieu Desnoyers via lttng-dev
2020-10-13  6:47   ` nils.doering--- via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).