I rebuilt libjpeg and zoneminder using the Intel compiler (icc/icpc). This reduced my total zma "top" CPU utilization from 30% to 17%. I am posting the procedure here in the hopes that it will be useful to other ZM users.
source /opt/intel/Compiler/11.0/bin/iccvars.sh intel64
CC=icc CXX=icpc fakeroot debian/rules binary
Install the new deb's (dpkg -i *.deb) and you should be good to go.
-xHOST uses the fastest ISA available for the system you are running on. i.e. my binaries probably will not run at all on an older CPU, and will not be optimal on a newer CPU. So you are best off building them from source on your system.
You will need to install a whole bunch of development packages to do the build. Off the top of my head:
Thanks for this. This would be a good post to put in the Wiki if you have the time (and the inclination).
Mon Jun 29, 2009 10:57 am
Joined: Wed Jan 30, 2008 6:53 pm Posts: 519 Location: St. Louis, MO, USA
Has anyone tried this with a more recent version, say 1.24.2? Also, I found 1.24.2 wouldn't complile with libjpeg6, had to bump it up to 7.
Theoretically I installed the intel compiler, but compliation's not my strong point. Do I need to rerun configure? The instructions in the post seemed to indicate it was going to give me .deb's when it was done, but I can't seem to locate "debian/rules" to edit in intel's stuff or ZoneMinders.
I'm starting to push the boundaries of this machine, so any tweaks would be nice, and I have a feeling the core 2 quad could benefit from intel's compiler.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum