Re: [Asterisk-Users] CPU Optimisations For asterisk

2003-09-24 Thread Robert Boardman
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 <[EMAIL PROTECTED]>:

> 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
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> 



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] CPU Optimisations For asterisk

2003-09-24 Thread Alastair Maw
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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] CPU Optimisations For asterisk

2003-09-24 Thread Robert Boardman

How would I compile asterisk for the Athlon XP arch, would there be any 
advantage doing this?

Thanks for your Help

Robb
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users