[Asterisk-Users] How "expensive"are thedifferent codecs? (Regarding CPU time)

Jim Van Meggelen jim at vanmeggelen.ca
Wed Dec 15 14:59:18 MST 2004



> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Michael Vogel
> Sent: December 15, 2004 4:27 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] How "expensive"are thedifferent 
> codecs? (Regarding CPU time)
> 
> 
> Jim Van Meggelen schrieb:
> 
> > YIKES! What kind of processor have you got there?
> 
> ;-)
> 
> Its a:
> - Pentium II (Deschutes) 333MHz
> - 128mb memory
> 
> I'm using it as:
> - Mailserver (IMAP, SMTP)
> - Webserver (mainly for webmail)
> - Newsserver
> - Packet Radio station
> - VNC server
> - Proxy
> ...
> 
> 
> Some system information:
> 
> zhad:~# cat /proc/interrupts
>             CPU0
>    0:  870123727          XT-PIC  timer
>    1:       2614          XT-PIC  i8042
>    2:          0          XT-PIC  cascade
>    4: 3082002249          XT-PIC  baycom_ser12
>   10:      10847          XT-PIC  OPL3-SA2/3
>   12:  870006570          XT-PIC  wcfxo
>   14:    5783522          XT-PIC  eth0
>   15:    5800309          XT-PIC  sym53c8xx
> NMI:          0
> LOC:  870168660
> ERR:          0
> MIS:          0
> zhad:~# cat /proc/meminfo
> MemTotal:       126740 kB
> MemFree:          1684 kB
> Buffers:          1728 kB
> Cached:          17288 kB
> SwapCached:      60720 kB
> Active:          94872 kB
> Inactive:        11684 kB
> HighTotal:           0 kB
> HighFree:            0 kB
> LowTotal:       126740 kB
> LowFree:          1684 kB
> SwapTotal:      345356 kB
> SwapFree:       172840 kB
> Dirty:             344 kB
> Writeback:           0 kB
> Mapped:          92468 kB
> Slab:            13100 kB
> Committed_AS:   397756 kB
> PageTables:       2208 kB
> VmallocTotal:   901112 kB
> VmallocUsed:      2108 kB
> VmallocChunk:   898828 kB
> zhad:~# cat /proc/cpuinfo
> processor       : 0
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 5
> model name      : Pentium II (Deschutes)
> stepping        : 0
> cpu MHz         : 333.370
> cache size      : 512 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 2
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep 
> mtrr pge 
> mca cmov pat pse36 mmx fxsr
> bogomips        : 657.40
> 
> zhad:~#
> 
> and "top" tells me:
> 
>   22:22:10 up 10 days,  1:49,  5 users,  load average: 0.01, 
> 0.09, 0.13 167 processes: 163 sleeping, 2 running, 2 zombie, 0 stopped
> CPU states:  12.1% user,   7.4% system,   0.0% nice,  80.5% idle
> Mem:    126740K total,   124172K used,     2568K free,     
> 4760K buffers
> Swap:   345356K total,   173684K used,   171672K free,    
> 22992K cached
> 
> Is it a little bit too much for such a machine? What could be the 
> bottleneck? CPU? Memory? Interrupts?

YES!

And by that I mean "all of the above".

Asterisk will run, but the sound quality is almost certainly going to be
awful (like a poorly-tuned radio station). Go ahead and try it if you're
just playing around, but if you put it into production, don't bother
asking anyone what's wrong when your quality sucks, 'cause you already
know the answer.

If you have serious plans for Asterisk, you'll probably want to look at
giving it a dedicated server.

Cheers, and best of luck (Asterisk has ben run on less than what you
have, so don't be discouraged, just be aware of what you're getting
into).

Jim.





More information about the asterisk-users mailing list