From: Jeff Layton <jlayton@kernel.org>
To: Stefan Kooman <stefan@bit.nl>,
Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: Investigate busy ceph-msgr worker thread
Date: Fri, 04 Dec 2020 16:13:29 -0500 [thread overview]
Message-ID: <0920eb110e59b6e3090cde8bd1845ee083d7880a.camel@kernel.org> (raw)
In-Reply-To: <945af793-1425-181a-c334-99e6602bc899@bit.nl>
On Fri, 2020-12-04 at 20:49 +0100, Stefan Kooman wrote:
> On 12/3/20 5:46 PM, Jeff Layton wrote:
> > On Thu, 2020-12-03 at 12:01 +0100, Stefan Kooman wrote:
> > > Hi,
> > >
> > > We have a cephfs linux kernel (5.4.0-53-generic) workload (rsync) that
> > > seems to be limited by a single ceph-msgr thread (doing close to 100%
> > > cpu). We would like to investigate what this thread is so busy with.
> > > What would be the easiest way to do this? On a related note: what would
> > > be the best way to scale cephfs client performance for a single process
> > > (if at all possible)?
> > >
> > > Thanks for any pointers.
> > >
> >
> > Usually kernel profiling (a'la perf) is the way to go about this. You
> > may want to consider trying more recent kernels and see if they fare any
> > better. With a new enough MDS and kernel, you can try enabling async
> > creates as well, and see whether that helps performance any.
>
> The thread is mostly busy with "build_snap_context":
>
>
> + 94.39% 94.23% kworker/4:1-cep [kernel.kallsyms] [k]
> build_snap_context
>
> Do I understand correctly if this code is checking for any potential
> snapshots? As grepping through linux cephfs code gives a hit on snap.c
>
> Our cephfs filesystem has been created in Luminous, and upgraded through
> Mimic to Nautilus. We have never enabled snapshot support (ceph fs set
> cephfs allow_new_snaps true). But the filesystem does seem to support it
> (.snap dirs present). The data rsync is processing does contain a lot of
> directories. It might explain the amount of time spent in this code path.
>
> Would this be a plausible explanation?
>
> Thanks,
>
> Stefan
Yes, that sounds plausible. You probably want to stop rsync from
recursing down into .snap/ directories altogether if you have it doing
that.
--
Jeff Layton <jlayton@kernel.org>
prev parent reply other threads:[~2020-12-04 21:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-03 11:01 Investigate busy ceph-msgr worker thread Stefan Kooman
2020-12-03 16:46 ` Jeff Layton
2020-12-04 19:49 ` Stefan Kooman
2020-12-04 21:13 ` Jeff Layton [this message]
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=0920eb110e59b6e3090cde8bd1845ee083d7880a.camel@kernel.org \
--to=jlayton@kernel.org \
--cc=ceph-devel@vger.kernel.org \
--cc=stefan@bit.nl \
/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;
as well as URLs for NNTP newsgroup(s).