All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jérémie Galarneau" <jeremie.galarneau@efficios.com>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: "lttng-dev@lists.lttng.org" <lttng-dev@lists.lttng.org>,
	Jeremie Galarneau <jgalar@efficios.com>
Subject: Re: [RFC PATCH lttng-tools] Bump default kernel, and UST per-uid/per-pid buffer size
Date: Sat, 6 May 2017 15:49:10 -0400	[thread overview]
Message-ID: <CA+jJMxsi9AE9s+gWpZ9zs7KdW_bU61na9wUpKL2PHSch6jB9Fg__8165.84073841131$1494100162$gmane$org@mail.gmail.com> (raw)
In-Reply-To: <1490969060-10055-1-git-send-email-mathieu.desnoyers@efficios.com>

Merged, thanks!

Jérémie

On 31 March 2017 at 10:04, Mathieu Desnoyers
<mathieu.desnoyers@efficios.com> wrote:
> LTTng with current default buffer size often lead to discarded events,
> which is not something we want as a first user impression.
>
> The choice of default buffer size were made conservatively around 2010.
> Since then, the memory available on typical systems has increased, and
> so has the amount of instrumentation available. As an example, the
> mid-2010 Macbook Pro had 2GB ram. The current 2017 Macbook specification
> states 8GB ram, for a 4-fold installed memory size increase.
>
> Increase the kernel tracer buffer size from:
> 4 x 256kB per core
> to:
> 4 x 1MB per core
>
> Increase the UST tracer per-uid buffer size from:
> 4 x 128kB per core
> to
> 4 x 512kB per core
>
> Increase the UST tracer per-pid buffer size from:
> 4 x 4kB per core
> to
> 4 x 16kB per core
>
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
> ---
>  configure.ac | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 0a7034e..91a2d5e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -240,7 +240,7 @@ AC_DEFUN([_AC_DEFINE_QUOTED_AND_SUBST], [
>  ])
>
>  # Default values
> -m4_define([_DEFAULT_CHANNEL_SUBBUF_SIZE], [4096])
> +m4_define([_DEFAULT_CHANNEL_SUBBUF_SIZE], [16384])
>  m4_define([_DEFAULT_CHANNEL_SUBBUF_NUM], [4])
>  m4_define([_DEFAULT_CHANNEL_SWITCH_TIMER], [0])
>  m4_define([_DEFAULT_CHANNEL_LIVE_TIMER], [0])
> @@ -253,7 +253,7 @@ _AC_DEFINE_AND_SUBST([DEFAULT_CHANNEL_TRACEFILE_SIZE], [0])
>  _AC_DEFINE_AND_SUBST([DEFAULT_KERNEL_CHANNEL_LIVE_TIMER], [_DEFAULT_CHANNEL_LIVE_TIMER])
>  _AC_DEFINE_AND_SUBST([DEFAULT_KERNEL_CHANNEL_READ_TIMER], [_DEFAULT_CHANNEL_READ_TIMER])
>  _AC_DEFINE_AND_SUBST([DEFAULT_KERNEL_CHANNEL_SUBBUF_NUM], [_DEFAULT_CHANNEL_SUBBUF_NUM])
> -_AC_DEFINE_AND_SUBST([DEFAULT_KERNEL_CHANNEL_SUBBUF_SIZE], [262144])
> +_AC_DEFINE_AND_SUBST([DEFAULT_KERNEL_CHANNEL_SUBBUF_SIZE], [1048576])
>  _AC_DEFINE_AND_SUBST([DEFAULT_KERNEL_CHANNEL_SWITCH_TIMER], [_DEFAULT_CHANNEL_SWITCH_TIMER])
>  _AC_DEFINE_AND_SUBST([DEFAULT_LTTNG_LIVE_TIMER], [1000000])
>  _AC_DEFINE_AND_SUBST([DEFAULT_METADATA_CACHE_SIZE], [4096])
> @@ -272,7 +272,7 @@ _AC_DEFINE_AND_SUBST([DEFAULT_UST_PID_CHANNEL_SWITCH_TIMER], [_DEFAULT_CHANNEL_S
>  _AC_DEFINE_AND_SUBST([DEFAULT_UST_UID_CHANNEL_LIVE_TIMER], [_DEFAULT_CHANNEL_LIVE_TIMER])
>  _AC_DEFINE_AND_SUBST([DEFAULT_UST_UID_CHANNEL_READ_TIMER], [0])
>  _AC_DEFINE_AND_SUBST([DEFAULT_UST_UID_CHANNEL_SUBBUF_NUM], [_DEFAULT_CHANNEL_SUBBUF_NUM])
> -_AC_DEFINE_AND_SUBST([DEFAULT_UST_UID_CHANNEL_SUBBUF_SIZE], [131072])
> +_AC_DEFINE_AND_SUBST([DEFAULT_UST_UID_CHANNEL_SUBBUF_SIZE], [524288])
>  _AC_DEFINE_AND_SUBST([DEFAULT_UST_UID_CHANNEL_SWITCH_TIMER], [_DEFAULT_CHANNEL_SWITCH_TIMER])
>  _AC_DEFINE_QUOTED_AND_SUBST([DEFAULT_AGENT_BIND_ADDRESS], [localhost])
>  _AC_DEFINE_QUOTED_AND_SUBST([DEFAULT_NETWORK_CONTROL_BIND_ADDRESS], [0.0.0.0])
> --
> 2.1.4
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

       reply	other threads:[~2017-05-06 19:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1490969060-10055-1-git-send-email-mathieu.desnoyers@efficios.com>
2017-05-06 19:49 ` Jérémie Galarneau [this message]
2017-03-31 14:04 [RFC PATCH lttng-tools] Bump default kernel, and UST per-uid/per-pid buffer size Mathieu Desnoyers

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='CA+jJMxsi9AE9s+gWpZ9zs7KdW_bU61na9wUpKL2PHSch6jB9Fg__8165.84073841131$1494100162$gmane$org@mail.gmail.com' \
    --to=jeremie.galarneau@efficios.com \
    --cc=jgalar@efficios.com \
    --cc=lttng-dev@lists.lttng.org \
    --cc=mathieu.desnoyers@efficios.com \
    /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 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.