Unison on Synology DS211
I finally replaced my NAS with a newer model, a DS 211, which has the same form-factor, but a faster ARM processor. CPU performance was one reason for replacing it (it would basically get maxed out at around 6 MB/sec) the other was that support was discontinued, and among the newer firmware features I wanted was support for Time Machine in Lion. Most of the stuff worked out of the box, and file transfers are way faster. I reinstalled the
ipkg package manager following the instructions you can find on the official wikis. The catch came when I wanted to install the unison file synchroniser which always complicated because it is not written in C, but in Ocaml, which always complicates matters.
- There is no
ipkgfor unison in the standard package list.
gccand friends a compiling from the source does not work, because there is no native compiler for ARM processors.
- Compiling the code but disabling native code generation did not work either, I was getting some random syntax errors.
- I finally found a package in the unstable tree of NSLU2 Linux, this one installs fine.
- I had to enable ssh access for the regular user account I use for synchronisation, by default, user-account cannot remote login, simply editing
/etc/passwddid the trick.
Now unison works, but when doing a big sync, I’m back to ~6MB/sec, but this time, the bottleneck seems to be
sshd which uses around 60% of the CPU, I will have to try other ciphers.