[Asterisk-Users] CPU Optimisations For asterisk
Robert Boardman
robb at boardman.me.uk
Wed Sep 24 05:09:35 MST 2003
Thanks for your reply
The system is a small installation but I was thinking about optimizations and
wondered if there would be any particular benifit
anyway thanks for the reply, your comments are very useful
robb
Quoting Alastair Maw <asterisk at almaw.com>:
> 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
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list