|
From: | Nathan Aschbacher |
Subject: | Re: [rdiff-backup-users] Error When Backing up to samba share on ubuntu 8.10 via smbfs on Mac OS X |
Date: | Mon, 30 Mar 2009 00:35:32 -0700 |
Well I managed to get SMB access working somehow. A combination of "unix extensions = no" in the global space of my samba configuration, building the proper driver for my NIC on the linux server, and luck. I also got netatalk setup and running for AFP access, and installed rdiff-backup on the server to try the direct SSH method. My findings were interesting: Client: Apple MacBook (unibody) 2.4Ghz 4gig RAM w/ 320GB Hitachi HTS543232L9A300 drive; Mac OS X 10.5.6 Server: MSI Wind Nettop (2x core Atom 330) 1.6Ghz 2gig RAM w/ 2x 1TB Samsung Spinpoint F1's, mirrored via mdadm, ext4 filesystem; Ubuntu 9.04 beta Network: Gigabit ethernet on both ends connected via Netgear Gig-E switch, MTU on both machines set to 6144 (the highest the MSI's NIC will handle) Test File Set: 2.91 Gigs, 1748 files, a mix of CD image ISO's, media files (audo/video), and tons of very small documents/resources/source-files Results: (times are in min:sec) Initial Backup Peak Throughput Next Backup (no changed files) SMB - 8:02 ~12 MB/s 0:25 AFP - 3:28 ~38 MB/s 0:10 SSH - 8:36 ~8 MB/s 0:21 local - 3:33 ~27 MB/s 0:09 In standard file copying Samba is typically much closer in performance than that, it's usually only a few MB/s slower than netatalk. Typical data rate for direct copying a large contiguous 1 GB file with this setup is ~43 MB/s for AFP, ~39 MB/s for SMB, and ~17 MB/s for SSH (scp). Going to the AFP share was essentially as fast as performing the backup where the target was the same local disk as the source (of course performance would be better if using an external drive, but still). In that sense I can understand why SSH is so slow, it has all the encrypt/decrypt overhead going on, as well as compression being performed. The only thing I can think to explain the massive disparity between SMB and AFP using rdiff-backup is how each one deals with Mac OS X specific data like resource forks, etc. When using AFP, netatalk is handling all of the Mac-specific data, when using SMB, rdiff-backup is handling it. Not surprisingly netatalk is more efficient in that regard. I suspect these massive discrepancies in performance are largely Mac-specific because of the odd filesystem features that have to be recreated via one means or another on the target filesystem. However, it was interesting to see the massive difference in performance. Needless to say, based on these tests, I'll be sticking with AFP for my rdiff-backups, and finally ditching Time Machine! I hope this information is helpful to somebody someday. Cheers! -Nathan On Mar 29, 2009, at 2:25 PM, Andrew Ferguson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |