All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Dillaman <jdillama@redhat.com>
To: ceph-devel <ceph-devel@vger.kernel.org>
Subject: "debug ms = 0/5" logging ...
Date: Thu, 19 Oct 2017 07:47:28 -0400	[thread overview]
Message-ID: <1508413648.27011.5.camel@redhat.com> (raw)

While the default messenger logging setting has always been an
impediment to high queue-depth, high IOPS workloads, in Luminous it
appears to have slowed down librbd small block IOPS by an additional 10-
15%. When compared against cases where the messenger logs are disabled,
it's more than a 40% IOPS degradation to have the messenger logs
enabled.

From some quick "perf" runs, the Luminous delta seems to be from from a
few places: (1) hobject_t is now used in the OSD messages, and it's more
expensive to construct[2] and print; (2) log messages are longer in
length; and (3) async messenger is more verbose per message at log level
1 compared to simple messenger.

I'd hate to advocate the sledge-hammer approach to say everyone should
deploy librbd with "debug ms = 0" -- especially since I've relied on
decoding the in-memory log messages from core dumps as a pseudo-librbd
flight recorder in the past.

This seems like an area that could use some team discussion and thought.
Perhaps it would be possible to re-use tracepoint hooks where we keep
the last X traces in-memory so that they can be dumped and/or are
available in the core file. In theory that would at least reduce the
expense of converting these trace-like log messages to expensive human
readable strings.

Thoughts?

[1] http://tracker.ceph.com/issues/21846
[2] http://tracker.ceph.com/issues/21845

--
Jason

             reply	other threads:[~2017-10-19 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-19 11:47 Jason Dillaman [this message]
2017-10-19 12:06 ` "debug ms = 0/5" logging John Spray
2017-10-19 13:24   ` Haomai Wang
2017-10-20  0:08     ` Gregory Farnum

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=1508413648.27011.5.camel@redhat.com \
    --to=jdillama@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dillaman@redhat.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.