linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Joseph D. Wagner" <joe@josephdwagner.info>
To: linux-ext4@vger.kernel.org
Subject: dump ext4 performance degrades linearly as disk fills
Date: Sun, 15 Jun 2014 22:43:29 -0700	[thread overview]
Message-ID: <539E8401.5000607@josephdwagner.info> (raw)

Background:
- I use lvm snapshots on ext4 for backup.  I use dump to backup the 
snapshots.  The backup goes to an external hard drive over usb 3.0. The 
external hard drive has 1 partition formatted with ext4.

Problem:
- I've noticed the performance of dump to my ext4 backup degrades 
linearly as the disk fills.  In the output, the kbps in the status line 
keeps getting lower as the percent complete keeps getting higher.

My Thoughts So Far:
- I suspect that either 1) dump is doing something which lowers 
performance as the backup progresses, or 2) the ext4 algorithm for 
finding and allocating free blocks is vulnerable to performance 
degradation as the volume fills.

- I haven't tested this thoroughly.  However, performance appears to 
improve when I clear out the external drive and do a fresh, full dump 
(-0), and performance appears to remain degraded on incremental backups 
on a nearly full volume.  This leads me to suspect #2.

Help from you:
- What steps can I take to isolate the cause of the problem?  If there's 
any information I can provide, please let me know.

What I've Done:
- I've run both the short and long SMART tests on the external drive, 
which came back clean.  They also told me the relocated sector count was 
zero.

- I also made sure the disk was connecting in usb 3.0 mode.

- I changed the external drive ext4 mount from journal=ordered to 
journal=writeback.  The performance difference was nominal.

Any insight would be appreciated.

Thanks.

Joseph D. Wagner

             reply	other threads:[~2014-06-16  5:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-16  5:43 Joseph D. Wagner [this message]
2014-06-16 12:42 ` dump ext4 performance degrades linearly as disk fills Theodore Ts'o
2014-06-17 14:08   ` Joseph D. Wagner
2014-06-17 14:51     ` Theodore Ts'o
2014-06-16 21:48 ` Andreas Dilger
  -- strict thread matches above, loose matches on Subject: below --
2014-06-19 18:42 Joseph D. Wagner
2014-06-21  0:38 ` Theodore Ts'o
2014-07-29 20:55 ` Phillip Susi
2014-07-29 22:48   ` Joseph D. Wagner
2014-06-20 23:59 Joseph D. Wagner

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=539E8401.5000607@josephdwagner.info \
    --to=joe@josephdwagner.info \
    --cc=linux-ext4@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 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).