All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ted Ts'o" <tytso@mit.edu>
To: "Björn Christoph" <einkaufenbc09@googlemail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: BUG: jbd2 slowing down file copies even though no journaling file system is used
Date: Sun, 13 May 2012 00:40:52 -0400	[thread overview]
Message-ID: <20120513044052.GC31866@thunk.org> (raw)
In-Reply-To: <CAHOpdHWMcV6LjpaEhk27ULkz-wGUD0-pNH=PC+ahDn47VQ+qmQ@mail.gmail.com>

On Sun, May 13, 2012 at 01:21:00AM +0200, Björn Christoph wrote:
> 
> IOTOP shows this in some cases, mostly jbd2 is not there:
>   PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO>    COMMAND
>   416 be/3 root        0.00 B/s   97.65 M/s  0.00 % 13.74 % [jbd2/dm-1-8]

Well, the file system in that has the huge write bandwidth is
whichever device is associated with device mapper device dm-1 (i.e.,
with a device mapper minor number of 1).  What does "ls -l
/dev/mapper" show you?

Whatever file system is associated with it is clearly generating a lot
of journal activity.

Something that may help in determining what process is generating all
of this journal activity (which is likely the result of something
calling fsync a lot) is to try this:

echo 1 > /sys/kernel/debug/tracing/events/ext4/ext4_sync_file_enter/enable

... then wait for a minute or so, and then capture the output of:

cat /sys/kernel/debug/tracing/trace

See if that shows up anything useful.

Regards,

					- Ted

  reply	other threads:[~2012-05-13  4:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12 23:21 BUG: jbd2 slowing down file copies even though no journaling file system is used Björn Christoph
2012-05-13  4:40 ` Ted Ts'o [this message]
2012-05-13  8:55   ` Björn Christoph
2012-05-16 21:03 ` Roland Eggner

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=20120513044052.GC31866@thunk.org \
    --to=tytso@mit.edu \
    --cc=einkaufenbc09@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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.