[Asterisk-Users] CPU Optimisations For asterisk
Alastair Maw
asterisk at almaw.com
Wed Sep 24 04:41:41 MST 2003
Robert Boardman wrote:
> How would I compile asterisk for the Athlon XP arch, would there be any
> advantage doing this?
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
Well, it might run slightly faster, but you probably won't really notice
the difference. You might well be better off with -O2 rather than -O3,
as -O3 tends to agressively unroll branches to inlines which reduces the
amount of code that fits on the chip's cache, resulting in slowness.
It's swings and roundabouts, really.
If you're using echo cancelling, it should be quicker if you enable the
MMX stuff for that (see the Asterisk Makefile).
Why do you need the extra speed? If you're desperately trying to
optimise things like this to gain extra performance, you must have a
pretty big system. Pretty big system should mean you have the cash to
upgrade your CPU a bit, which will make much more difference.
--
Alastair Maw
MX Telecom - Systems Analyst
http://www.mxtelecom.com
More information about the asterisk-users
mailing list