Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: "熊毓华 via lttng-dev" <lttng-dev@lists.lttng.org>
To: lttng-dev@lists.lttng.org
Subject: [lttng-dev] Some confusion about cpu usage of the lttng-consumerd process
Date: Fri, 27 Nov 2020 14:39:28 +0800 (GMT+08:00)	[thread overview]
Message-ID: <40a80cf.2b99.176086d97b1.Coremail.xiongyuhua@zju.edu.cn> (raw)


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

Hi,dear.




I have been using lttng to monitor my server these days,but I found something interesting.

The cpu usage of lttng varies with the number of cpu cores of the server.




On the server, I create a tracing session in live mode, using "lttng create my-session --live". 

Then,I Start the babeltrace2 and configure it to connect to the relay daemon,using "--input-format=lttng-live" mode.

I used 5 cloud servers,1core4G 2core8G 4core16G 8core16G 8core16G.

And,the same test script was executed above to provide the same workload.




As we all know,lttng has 5 processes,

1.lttng-runas    --daemonize

2.lttng-runas      -k --consumerd-cmd-sock /var/run/lttng/kconsumerd/command --consumerd-err-sock /var/run/lttng/kconsumerd/error --group tracing

3.lttng-sessiond --daemonize

4.lttng-relayd -L tcp://localhost:5344

5.lttng-consumerd  -k --consumerd-cmd-sock /var/run/lttng/kconsumerd/command --consumerd-err-sock /var/run/lttng/kconsumerd/error --group tracing




The CPU usage of the first four processes is below 2% on the 5 servers,but the lttng-consumerd process is different.

On 1-core、2-core、4-core servers,the CPU usage of the lttng-consumerd process is below 2%.

But on two 8-core machines, the cpu usage of the lttng-consumerd process reached 10% or more.




And,the cpu usage of the babeltrace process is not much different,just the cpu usage of the lttng-consumerd process varies with the number of cpu cores of the server.




Why it is like this?How should this phenomenon be analyzed?





Looking forward to your reply.


thanks,
yuhua







[-- Attachment #1.2: Type: text/html, Size: 2374 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

             reply	other threads:[~2020-11-27  6:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-27  6:39 熊毓华 via lttng-dev [this message]
2020-11-27 14:05 ` Jonathan Rajotte-Julien via lttng-dev
2020-11-27 15:32   ` 熊毓华 via lttng-dev
2020-11-27 16:04     ` Jonathan Rajotte-Julien via lttng-dev
2020-11-27 17:11       ` Mathieu Desnoyers via lttng-dev
2020-11-28  6:49       ` 熊毓华 via lttng-dev
2020-11-30 14:24         ` Mathieu Desnoyers via lttng-dev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40a80cf.2b99.176086d97b1.Coremail.xiongyuhua@zju.edu.cn \
    --to=lttng-dev@lists.lttng.org \
    --cc=xiongyuhua@zju.edu.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox