sa-compile should speed up SpamAssassin, by pre-compiling rules into Native code.
Seem like you run sa-compile once, and the debian cron job takes care of re-running sa-compile whenever the rules are updated.
Trouble for me is that the load on the NAS of the compile took it down.
Since I have the cross compilers on my desktop PC, I figured it should be possible to build the native rules there, and distribute them to all the NAS drives.
Cross compile packages installed
acid:~# dpkg --get-selections | grep -e gnueabi -e armel
binutils-arm-linux-gnueabi install cpp-4.4-arm-linux-gnueabi install gcc-4.4-arm-linux-gnueabi install gcc-4.4-arm-linux-gnueabi-base install gcc-4.4-base-armel-cross install libc6-armel-cross install libc6-dev-armel-cross install libgcc1-armel-cross install libgomp1-armel-cross install
Compile the rules into some directory
export PERL_MM_OPT="CC=arm-linux-gnueabi-gcc LD=arm-linux-gnueabi-gcc AR=arm-linux-gnueabi-ar"
sa-compile --updatedir /root/sa-updates
I'll probably use a combination of scp and incrond to distribute the rules
Categories: Debian, LinkStation, Linux