TomRadfahrer

Q: Why is my Time Machine backup so slow?

In short: A backup of 2 Mbytes takes more than half an hour

 

Long version

I used Time Machine with my old iMac and of course I am using it with my new iMac (SSD + 2 TB). The Backup destination is an external FireWire drive with 2 TB, the same I used with the old iMac.

 

The first backup took some time (more than 700 GB), but this is normal, I assume. Now I have problems with the "small" delta backups. Just one example from the console output:

 

27.06.11 17:56:20          com.apple.backupd[8775]          Starting standard backup

27.06.11 17:56:20          com.apple.backupd[8775]          Backing up to: /Volumes/Archiv 1/Backups.backupdb

27.06.11 17:57:56          com.apple.backupd[8775]          No pre-backup thinning needed: 855.7 MB requested (including padding), 883.02 GB available

27.06.11 18:06:31          com.apple.backupd[8775]          Copied 226532 files (1.8 MB) from volume Speedy HD.

27.06.11 18:06:50          com.apple.backupd[8775]          Copied 226781 files (1.8 MB) from volume Speedy Medien.

27.06.11 18:09:48          com.apple.backupd[8775]          No pre-backup thinning needed: 871.3 MB requested (including padding), 882.92 GB available

27.06.11 18:17:59          com.apple.backupd[8775]          Copied 178604 files (236 KB) from volume Speedy HD.

27.06.11 18:18:19          com.apple.backupd[8775]          Copied 178853 files (236 KB) from volume Speedy Medien.

27.06.11 18:24:55          com.apple.backupd[8775]          Starting post-backup thinning

27.06.11 18:33:17          com.apple.backupd[8775]          Deleted backup /Volumes/Archiv 1/Backups.backupdb/Speedy/2011-06-26-171728: 883.00 GB now available

27.06.11 18:33:17          com.apple.backupd[8775]          Post-back up thinning complete: 1 expired backups removed

27.06.11 18:33:18          com.apple.backupd[8775]          Backup completed successfully.

 

As you can see from the log there is no single error message or warning but the backup of about 2 MBytes took 37 Minutes !! And this happens every hour. Most time of the day my iMac is backing up!! If I add some content to my iMac, (e.g. the backup of a new TV show with 3 GBytes) the backup is as fast as expected (at least the copy phase of Time Machine). Nevertheless every backup has a long preparation and a long cleanup phase. During these ridiculous long phases the activity of the external FireWire drive is very high, I hear the head of the drive positioning all the time.

 

I checked all discs with disk utility, repaired all rights, rebooted the iMac and switched the external drive off and on.

 

The backup source consists of the SSD and the HDD of my iMac. For the HDD I disable access rights management to share an iPhoto library easily between multiple users in our family.

iMac, Mac OS X (10.6.8), iMac mid 2011

Posted on Jun 27, 2011 10:40 AM

Close

Q: Why is my Time Machine backup so slow?

  • All replies
  • Helpful answers

first Previous Page 4 of 8 last Next
  • by Pondini,

    Pondini Pondini Jul 4, 2011 9:31 AM in response to NewBartleby
    Level 8 (38,747 points)
    Jul 4, 2011 9:31 AM in response to NewBartleby

    NewBartleby wrote:

    . . .

    Should I be concerned?

    Nope. 

     

    the main difference for the incremental backup was a lot of photos and movies I placed in the hard disk. :-)

    That'll do it!

     

    Glad it's sorted out, and thanks for the feedback.

  • by John Kitchen,

    John Kitchen John Kitchen Jul 9, 2011 6:58 AM in response to Pondini
    Level 3 (649 points)
    Jul 9, 2011 6:58 AM in response to Pondini

    Pondini wrote:

    <snip> And by all means, report back.  If there's a fix, please give us the details, so others may benefit.

     

    I don't have a fix yet, but may have eliminated a possible cause.

     

    Apple rep suggested I uninstall another backup app which I use.  CrashPlan.

     

    I've never had any conflict between Time Machine and CrashPlan before, but worth a try, so I have uninstalled, rebooted, and tried to run another Time Machine backup.

     

    Been running for 80 minutes so far, and "stuck" in "Finishing Backup...", so it looks like CrashPlan was not the culprit.

  • by Pondini,

    Pondini Pondini Jul 9, 2011 7:39 AM in response to John Kitchen
    Level 8 (38,747 points)
    Jul 9, 2011 7:39 AM in response to John Kitchen

    John Kitchen wrote:

    . . .

    Been running for 80 minutes so far, and "stuck" in "Finishing Backup...", so it looks like CrashPlan was not the culprit.

    Hi, John,

     

    Did the backup seem to be ok before it got to "Finishing Backup"?

     

    It may be having trouble deleting old backups.  We have seen that a few times, where there was some sort of problem that did eventually get fixed, but apparently the backups made during the problem were difficult or impossible for Time Machine to delete. Repair Disk didn't fix whatever it was.  Once the older ones got deleted, backups ran normally again.

     

    See if there are any messages in the log about deletions, especially "found partially deleted backup, trying again." 

     

    If so, try deleting that one manually, per #12 in Time Machine - Troubleshooting.

  • by John Kitchen,

    John Kitchen John Kitchen Jul 9, 2011 8:10 AM in response to Pondini
    Level 3 (649 points)
    Jul 9, 2011 8:10 AM in response to Pondini

    Everything seems OK, just very slow, with a lot of disk activity.

     

    Here is the log, from which you can see how long it took for each phase

     

    I get really suspicious about what is going on because the number of files copied is about the same in EVERY successful backup.  You can see four lines of text below.  Each time, the number is less than 1,000 different from the previous backup.  Usually the amount of data backed up from the SSD and the HDD are identical.

     

    Jul  9 08:32:27 MyMac com.apple.backupd[466]: Starting standard backup

    Jul  9 08:32:27 MyMac com.apple.backupd[466]: Backing up to: /Volumes/iMac TM/Backups.backupdb

     

    Jul  9 08:36:38 MyMac com.apple.backupd[466]: No pre-backup thinning needed: 3.94 GB requested (including padding), 885.93 GB available

     

    Jul  9 08:58:37 MyMac com.apple.backupd[466]: Copied 183752 files (2.0 GB) from volume iMacSSD.

    Jul  9 09:03:16 MyMac com.apple.backupd[466]: Copied 311395 files (2.0 GB) from volume iMacHDD.

     

    Jul  9 09:09:17 MyMac com.apple.backupd[466]: No pre-backup thinning needed: 1.64 GB requested (including padding), 883.88 GB available

     

    Jul  9 09:32:10 MyMac com.apple.backupd[466]: Copied 131654 files (45.3 MB) from volume iMacSSD.

    Jul  9 09:37:41 MyMac com.apple.backupd[466]: Copied 259295 files (71.6 MB) from volume iMacHDD.

     

    Jul  9 10:25:18 MyMac com.apple.backupd[466]: Starting post-backup thinning

     

    Jul  9 10:55:22 MyMac com.apple.backupd[466]: Deleted backup /Volumes/iMac TM/Backups.backupdb/MyMac/2011-07-07-142259: 883.99 GB now available

    Jul  9 10:55:22 MyMac com.apple.backupd[466]: Post-back up thinning complete: 1 expired backups removed

    Jul  9 10:55:23 MyMac com.apple.backupd[466]: Backup completed successfully.

     

  • by Pondini,

    Pondini Pondini Jul 9, 2011 8:42 AM in response to John Kitchen
    Level 8 (38,747 points)
    Jul 9, 2011 8:42 AM in response to John Kitchen

    John Kitchen wrote:

    . . .

    I get really suspicious about what is going on because the number of files copied is about the same in EVERY successful backup.

    I think that's some odd reporting problem; we see it on occasion with multiple drives on otherwise-normal backups.  And the number of files is always much higher than makes any sense.  I suspect it may be counting every extended attribute, and perhaps every ACL and permission, separately, but yours are still huge. 

     

    But you're right: everything is slow:

     

    4 minutes to see how much needs to be backed up (without a deep traversal)

     

    22 minutes to back up 2 GB from the SSD

     

    5 minutes to back up whatever it actually backed-up from the HD

     

    6 minutes to decide how much needs to be backed-up for the second pass

     

    25 minutes to back up 45 MB from the SSD

     

    5 minutes to back up 72 MB from the HD

     

    48 minutes to . . . decide to start post-backup thinning  (should be a couple of seconds at most)

     

    30 minutes to delete a backup (a small one, as it only gained 110 MB).

     

     

    Are there any other messages in the log while this was going on, from other processes, that look suspicious?

     

     

    ps: here's another thread with similar problems, also with AppleCare involved:  https://discussions.apple.com/thread/3163423?tstart=0

  • by david-se,

    david-se david-se Jul 9, 2011 9:03 AM in response to John Kitchen
    Level 1 (0 points)
    Jul 9, 2011 9:03 AM in response to John Kitchen

    This isn't a reporting problem. If you run timedog on your backup (without the -l option) you will see that TimeMachine is incorrectly re-linking tens-of-thousands of files that haven't changed. It does this if it thinks at least one file in the directory has changed, but it hasn't. This is the root of the problem. You might be able to get this to work again by deleting the /.fseventsd directory on your volumes and restarting. This will force a deep traversal because that's where the "what changed since last time" information is stored. I have the exact same problem on my brand new iMac 27" i7 SSD+HD system and have not solved it.

  • by John Kitchen,

    John Kitchen John Kitchen Jul 9, 2011 9:04 AM in response to Pondini
    Level 3 (649 points)
    Jul 9, 2011 9:04 AM in response to Pondini

    The log shows a lot of Aperture messages (over 2,000), but only for 6 minutes between 10:45:42 and 10:51:25 which overlaps some of the final phases of the backup, but nothing which would explain slowness over the entire period.

     

    Most of the time during this backup, I had pretty much nothing running and very few messages show in system.log

  • by david-se,

    david-se david-se Jul 9, 2011 9:30 AM in response to david-se
    Level 1 (0 points)
    Jul 9, 2011 9:30 AM in response to david-se

    Another interesting data point: I had my old iMac plugged into my new SSD one to transfer files (FireWire target disk mode). Now the old iMac is having exactly the same problem. So there appears to be something about the SSD+HD iMacs that is causing drives to be corrupt in such a way that TimeMachine doesn't work too well. (I deleted .fseventsd on the old iMac but that didn't help.)

  • by Pondini,

    Pondini Pondini Jul 9, 2011 11:27 AM in response to david-se
    Level 8 (38,747 points)
    Jul 9, 2011 11:27 AM in response to david-se

    david-se wrote:

     

    This isn't a reporting problem.

    This particular one may or may not be.

     

    We've seen several threads where the log showed 2 volumes with exactly the same (very large) number of files and GBs backed-up, when that clearly was not the case.  Not just SSD + HD, either; some were 2 HDs.  Others with ridiculously large numbers of files, but very little data, on reasonably-quick backups.

     

    And you have to be careful with apps like TimeDog, Time Tracker, and Backup Loupe; they compare two backups, and don't always get it right.

     

    The most extreme example is, change the name of a volume that was just backed-up, then run another backup.  Very little will be backed-up, but those apps will show a whole new backup of the "new" drive (they must be looking at the names, not the UUIDs).

     

    Just another complication to figuring out what's going on. 

  • by John Kitchen,

    John Kitchen John Kitchen Jul 14, 2011 11:03 AM in response to TomRadfahrer
    Level 3 (649 points)
    Jul 14, 2011 11:03 AM in response to TomRadfahrer

    I would encourage anyone who is having issues with slow Time Machine in conjunction with it apparently backing up a huge number of files to report this by phone to Apple.

     

    Interesting experiment.....

     

    I tried waiting for a successful completion of a Time Machine backup, followed by an immediate restart  and kicked off Time Machine backup again with almost no apps running (except Activity Monitor and Console).

     

    Time Machine found over 800,000 changed files to back up! (but with very little total data)

     

    PS Apple engineers are looking at the logs etc

  • by david-se,

    david-se david-se Jul 15, 2011 2:20 AM in response to TomRadfahrer
    Level 1 (0 points)
    Jul 15, 2011 2:20 AM in response to TomRadfahrer

    I filed a bug for this (radar://9749304) and it was closed as a duplicated of radar://6071017, which is marked as closed. I don't have any further visibility, but that means that they are aware of this at the engineering level. Whether this has been prioritized as important is a completely different question, and one which we are unlikely to ever get an answer for.

  • by John Kitchen,

    John Kitchen John Kitchen Jul 19, 2011 8:39 AM in response to TomRadfahrer
    Level 3 (649 points)
    Jul 19, 2011 8:39 AM in response to TomRadfahrer

    I can confirm that the slowdown is an issue specific to SSD.

     

    When I excluded the SSD (boot) volume and only backed up the 2TB HDD, incremental backups came down to 11 or 12 minutes.

  • by Pondini,

    Pondini Pondini Jul 19, 2011 9:18 AM in response to John Kitchen
    Level 8 (38,747 points)
    Jul 19, 2011 9:18 AM in response to John Kitchen

    Aha!  Suspicious confirmed. 

     

    How much was backed-up in that 11 or 12 minutes, and forgive me, I've forgotten what you're backing-up to? 

  • by John Kitchen,

    John Kitchen John Kitchen Jul 19, 2011 10:18 AM in response to Pondini
    Level 3 (649 points)
    Jul 19, 2011 10:18 AM in response to Pondini

    Pondini wrote:

     

    Aha!  Suspicious confirmed. 

     

    How much was backed-up in that 11 or 12 minutes, and forgive me, I've forgotten what you're backing-up to? 

    How much was backed up?  According to the system.log it was 756 bytes.  But it was 127,677 files!  That makes it an average of 0.05 bits per file!  But it does it twice every backup cycle.

     

    My backup device is either of two external USB drives.  They both behave the same way.

     

    Here is the log for your entertainment

     

    Jul 19 08:38:11 MyiMac com.apple.backupd[6207]: Startingstandard backup

    Jul 19 08:38:11 MyiMac com.apple.backupd[6207]: Backing upto: /Volumes/WD Elements/Backups.backupdb

    Jul 19 08:38:49 MyiMac com.apple.backupd[6207]: Nopre-backup thinning needed: 100.0 MB requested (including padding), 444.28 GBavailable

    Jul 19 08:41:37 MyiMac com.apple.backupd[6207]: Copied127677 files (756 bytes) from volume iMacHDD.

    Jul 19 08:42:40 MyiMac com.apple.backupd[6207]: Nopre-backup thinning needed: 100.0 MB requested (including padding), 444.27 GBavailable

    Jul 19 08:44:43 MyiMac com.apple.backupd[6207]: Copied127677 files (756 bytes) from volume iMacHDD.

    Jul 19 08:49:50 MyiMac com.apple.backupd[6207]: Startingpost-backup thinning

    Jul 19 08:49:50 MyiMac com.apple.backupd[6207]: No post-backup thinning needed: no expired backups exist

    Jul 19 08:49:51 MyiMac com.apple.backupd[6207]: Backupcompleted successfully.

     

    PS I guess if the average file size is 0.05 bits, there are probably some even smaller files being backed up

     

    Message was edited by: John Kitchen - added PS

  • by david-se,

    david-se david-se Jul 19, 2011 10:16 AM in response to John Kitchen
    Level 1 (0 points)
    Jul 19, 2011 10:16 AM in response to John Kitchen

    I don't think that solved it. A time machine backup with few changes (e.g., choose backup now twice in a row) should take about 30 seconds and should only list 10-20 files that changed. The 11-12 minutes is about 20x longer than it should be taking, so I think you're still having the same problem. There is some reason to believe this will be solved with Lion, but we shouldn't have to update the OS to get the computer to work as advertised.

first Previous Page 4 of 8 last Next