public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfsdump -s unacceptable performances
@ 2006-08-16 13:15 Daniele P.
  2006-08-16 14:38 ` Klaus Strebel
  2006-08-16 16:38 ` Bill Kendall
  0 siblings, 2 replies; 8+ messages in thread
From: Daniele P. @ 2006-08-16 13:15 UTC (permalink / raw)
  To: xfs

Hi all,
I'm new to the list. I have a problem with xfsdump using the -s option.
I'm aware that the latest version (2.2.38) skip the scan and prune of
the entire filesystem (see the test below), but there are other places
where xfsdump performs an entire scan of the filesystem, slowing down
the backup process.

For example in:
 * dump/inomap.c after "phase 3" there is a function call to
   bigstat_iter that scan the entire filesystem
 * dump/content.c the function dump_dirs again scan the entire
   filesystem

Are all there scan really necessary?
Could we expect a performance fix?
Is there a workaround?

I have done some test, and with quite large filesystem the performances
where unacceptable. Dumping one directory with 4 file using 4KB of space
takes hours (or days, it hasn't finished yet) if the underlying filesystem
contains around 10.000.000 inodes.

On request I could provide more information and the output of some test.

Let's start with a simple comparison between 2.2.27 and 2.2.38
using a small filesystem (40.000 inodes).

time xfsdump -p 60 -v drive=debug,media=debug \
-s etc/20060401-0030 - /media/xfs-test | dd of=/dev/null
xfsdump: using file dump (drive_simple) strategy
xfsdump: version 2.2.27 (dump format 3.0) - Running single-threaded
[...]
xfsdump: media file size 17780576 bytes
xfsdump: dump size (non-dir files) : 16477472 bytes
xfsdump: dump complete: 219459 seconds elapsed
xfsdump: Dump Status: SUCCESS
34727+1 records in
34727+1 records out
17780576 bytes transferred in 219459.047053 seconds (81 bytes/sec)

real    3657m39.120s
user    0m2.361s
sys     0m9.238s


time /usr/lib/bin/xfsdump -p 60 -v drive=debug,media=debug \
-s etc/20060401-0030 - /media/xfs-test | dd of=/dev/null
/usr/lib/bin/xfsdump: using file dump (drive_simple) strategy
/usr/lib/bin/xfsdump: version 2.2.38 (dump format 3.0) - Running single-threaded
[...]
/usr/lib/bin/xfsdump: media file size 17780576 bytes
/usr/lib/bin/xfsdump: dump size (non-dir files) : 16477472 bytes
/usr/lib/bin/xfsdump: dump complete: 18 seconds elapsed
/usr/lib/bin/xfsdump: Dump Status: SUCCESS
34727+1 records in
34727+1 records out
17780576 bytes transferred in 17.451939 seconds (1018831 bytes/sec)

real    0m17.575s
user    0m0.132s
sys     0m1.035s

Thanks in advance for your suggestions.

Daniele P.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-08-17 14:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16 13:15 xfsdump -s unacceptable performances Daniele P.
2006-08-16 14:38 ` Klaus Strebel
2006-08-16 18:01   ` Daniele P.
2006-08-17  1:31     ` Timothy Shimmin
2006-08-17  6:58       ` Daniele P.
2006-08-17 12:29         ` Peter Grandi
2006-08-16 16:38 ` Bill Kendall
2006-08-16 18:05   ` Daniele P.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox