unison slow on slightly modified large files

Bug #394895 reported by J. Bruce Fields
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
unison (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: unison-gtk

I use unison daily to synchronize a home directory between 3 different machines. The home directory includes a number of large mailbox files which are mostly just appended to. Recently transfers of those files have started taking much longer than they used to, even when the only difference between two versions is a few new messages appended to one of them.

My suspicion is that unison has for some reason started doing whole-file copies of those files instead of using the rsync algorithm, but I haven't confirmed this.

All three machines are running jaunty, with unison at 2.27.57-1ubuntu1.

Related branches

Revision history for this message
J. Bruce Fields (bfields-fieldses) wrote :

Found a fix upstream; applied the fix on both sides and confirmed that performance returns to normal.

The problem should be reproduceable any time one machine is 32-bit and the other 64.

Revision history for this message
J. Bruce Fields (bfields-fieldses) wrote :

Sorry, attached the wrong file! The actual fix is a simple one-liner:

Revision history for this message
J. Bruce Fields (bfields-fieldses) wrote :

"applied the fix on both sides"

Note, however, that it's safe to apply it on only one side. At worst, that may not be sufficient to fix the existing bug.

So this would be reasonable to add to jaunty if desired.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unison - 2.32.52-1ubuntu1

---------------
unison (2.32.52-1ubuntu1) maverick; urgency=low

  * Merge from Debian unstable, remaining changes:
    - Change default logfile directory to .unison by prepending
      .unison to name of logfile in ubase/trace.ml. For this reason
      debian/patches/00list still include change-logfile-location
  * New upstream version fixes bugs:
    - file permissions probem, LP: #304453
    - slowliness on large files, LP: #394895
    - "Failed: Not_found" after directory rename, LP: #569647

unison (2.32.52-1) unstable; urgency=low

  * New upstream release (Closes: #559054)
  * Merge changes from unison2.27.57:
    * Move ${F:OtherUnison*} fields first due to a problem when merging
      conflicts in dpkg-gencontrol
  * Generate manpage using debian/generate-manpage.ml and output of 'unison
    -help', so manpage is always up-to-date
    (Closes: #524526, #517972, #524475)
  * Backup files changed during build (lwt/depend, ubase/depend)

unison (2.27.57-4) unstable; urgency=low

  * Merge changes from unison2.27.57:
    * Update Standards-Version to 3.8.4 (no change)
    * Stop using dh_desktop
    * Use dh_ocaml 0.9 features (auto dependencies)
  * unison binaries are custom executables, so we can remove Depends on any
    ocaml-base* packages (Closes: #540481)
  * Add bash_completion (Closes: #349782, #481070)
  * Use the full path to access icon in .desktop (Closes: #541700)
  * Patch from unison trunk to remove 'Connected ...' message even when
    -silent is set (Closes: #497729, #551199)
  * Auto generate conflicts with unisonX.Y.Z or unison (X.Y.Z) package
    (Closes: #570910)
  * Enhance templating for unison and unison-gtk common files
 -- Ilya Barygin <email address hidden> Sat, 08 May 2010 13:56:17 +0000

Changed in unison (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.