XFS reflink copy to different filesystem performance question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello -

Blast from the past this is the first Majordomo mailing list I can recall joining in probably
15-18+ years..

Anyway, I ran into a situation today and was wondering if someone could clarify or point me to some docs so I just have a better understanding as to what is going on with this XFS setup.

Hardware: HP DL380 Gen10 6x8TB disks in hardware RAID 10
Software: Ubuntu 20.04 kernel 5.4.0 using XFS with reflinks enabled
Purpose: this system is used to store Veeam Backups (VMware VM backup)

I've used XFS off and on for many years but it wasn't until I set this up last year I had even heard of reflinks. Veeam docs specifically suggested enabling it if possible
so I did. Things have been working fine since.

Recently we had a situation come up where we want to copy some of this data to a local USB drive to ship to another location to restore the data. A simple enough
process I thought just a basic file copy.

Total of 8.6TB, most of that is in a single 8.3TB file. We got a 18TB USB drive , I formatted
it ext4 (feel more comfortable with ext4 on a USB drive).

I started an rsync to copy this data over as I assumed that would be the simplest method. I was pretty surprised to see rsync averaging between 25-30MB/sec. I expected more of course. I checked iostat and was even more surprised to see the 6 disk RAID 10 array showing 100% i/o utilization - the reads were maxed out, the USB drive was barely being touched. Consider me super confused at this point.. there was no other activity on the system. So I tried a basic cp -a command instead maybe data access for rsync is different, I didn't think so but couldn't help to try.. results were similar. iostat showed periodic bursts to 50-60MB/s but most often below 30MB/s. I like rsync with the --progress option
so I went back to rsync again.

So then I looked for other data on the same filesystem that I knew was not Veeam data, so it would not be using reflinks. I found a stash of ~5GB of data and copied that, easily over 100MB/sec(files were smaller and going so fast it was hard to tell for
sure).

So the conclusion here is something special with the reflink data causes regular linux copy operations to suffer. I did a bunch of web searches but only results seemed to be people talking about how great reflinks were to make clones of data, not
references to people copying reflinked data to another filesystem.

So I was wondering, maybe Veeam does something funky with how it accesses data. Obviously this is going from XFS to EXT4 so there can't be any special sauce since
the file systems are totally different.

So I kicked off a copy using Veeam, I don't know what it does on the backend. But iostat showed sustained reads at over 200MB/sec, so call it 8X faster than rsync or cp. At this point the USB drive seemed more of the bottleneck (which
is fine).

I can only guess that Veeam is more intelligent in that it is using some API call to XFS to pull the sequential data for the most recent backup, vs using a linux CLI tool is pulling the entire file which probably has a ton of different
pointers in it causing a lot more random I/O.

So again, not having a problem really just looking to get a better simple
understanding as to why a rsync or cp from reflinked data to another
filesystem is so much slower than veeam doing it itself. I could try to
ask Veeam support but I'm quite confident they'd have no idea what I was
talking about.

and with that said are there tools that can copy reflinked data more
intelligently from the command line (specifically to another filesystem)?
I checked the XFS faq and there is no mention of reflink. I couldn't
find info on how to find how many "links" there were or how big each
one was or how to reference them directly.

thanks

nate




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux