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

2004-12-17 Thread Michael Vogel
Hi!
Jim Van Meggelen schrieb:
[EMAIL PROTECTED] wrote:
Jim Van Meggelen schrieb:
You understand. I was kidding a little bit, but yes, I am also
wondering just what things can be done to get a slower machine to
work as well as possible.
Okay. So lets try.
What are you running in terms of a kernel or distro?
I'm running a Debian Woody with a handmade 2.6.5 (based on a woody backport)
Otherwise - without the -p option - the system had values of 400ms
(and higher) converting speex when it wasn't idle. Now the value
is constantly at about 210.
Nice. The system is now giving Asterisk the priority it needs. Don't
forget to change that in your rc.local, or wherever you're starting
Asterisk from.
I'm starting it from a start-stop daemon. AT the moment I'm having a 
little fight with it. When starting from the script it tells me 
"Starting Asterisk PBX: Unable to set high priority". Starting it from 
the shell works.

But I guess I can convince the script to cooperate ;-)
I guess this option could help me a lot regarding the sound
problems I got sometimes.
Yes, it might help a lot.
I will see when doing some calls over sip (there I had the most
problems). Maybe at the evening. Now I have to breakfast, shower and
go to work.
And I need to go to bed!
Good night!
Bye!
Michael
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-12-16 Thread Jim Van Meggelen
[EMAIL PROTECTED] wrote:
> Jim Van Meggelen schrieb:
> 
>> You understand. I was kidding a little bit, but yes, I am also
>> wondering just what things can be done to get a slower machine to
>> work as well as possible.
> 
> Okay. So lets try.

What are you running in terms of a kernel or distro?

 Have you tried running Asterisk at pseudo-realtime priority?
 (asterisk -p)
>>> 
>>> That helps in one way: At the moment my system is doing its morning
>>> routine. That means it makes a tar archieve of my /home directory to
>>> my backup drive. With the -p option the "show translation"-values
>>> are equal to the values when my system is idle.
>>> 
>> 
>> And otherwise not?
> 
> Otherwise - without the -p option - the system had values of 400ms
> (and higher) converting speex when it wasn't idle. Now the value
> is constantly at about 210.

Nice. The system is now giving Asterisk the priority it needs. Don't
forget to change that in your rc.local, or wherever you're starting
Asterisk from.

>>> I guess this option could help me a lot regarding the sound
>>> problems I got sometimes.
>> 
>> Yes, it might help a lot.
> 
> I will see when doing some calls over sip (there I had the most
> problems). Maybe at the evening. Now I have to breakfast, shower and
> go to work.

And I need to go to bed!

Cheers,

Jim.


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-12-16 Thread Michael Vogel
Jim Van Meggelen schrieb:
You understand. I was kidding a little bit, but yes, I am also
wondering just what things can be done to get a slower machine to
work as well as possible.
Okay. So lets try.
Have you tried running Asterisk at pseudo-realtime priority? 
(asterisk -p)
That helps in one way: At the moment my system is doing its morning
 routine. That means it makes a tar archieve of my /home directory
to my backup drive. With the -p option the "show 
translation"-values are equal to the values when my system is idle.

And otherwise not?
Otherwise - without the -p option - the system had values of 400ms (and
higher) converting speex when it wasn't idle. Now the value is
constantly at about 210.
I guess this option could help me a lot regarding the sound 
problems I got sometimes.
Yes, it might help a lot.
I will see when doing some calls over sip (there I had the most 
problems). Maybe at the evening. Now I have to breakfast, shower and go 
to work.

Bye!
Michael
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-12-16 Thread Jim Van Meggelen
[EMAIL PROTECTED] wrote:
> Jim Van Meggelen schrieb:
> 
>> Hmmm. I propose that we make your system the list guinea pig!  If we
>> can get that one tweaked, there's no telling what alse we can do with
>> Asterisk!
> 
> I'm not really sure that I completely get the meaning of this
> sentence. (Which can be because of the fact that its 06:47 AM or that
> I'm no native speaker or both ;-)) But I guess you meant that we
> could try to
> test everything that is known to work - including some voodo - and to
> see if it works? ;-) 

You understand. I was kidding a little bit, but yes, I am also wondering
just what things can be done to get a slower machine to work as well as
possible.

>> Have you tried running Asterisk at pseudo-realtime priority?
>> (asterisk -p)
> 
> That helps in one way: At the moment my system is doing its morning
> routine. That means it makes a tar archieve of my /home
> directory to my
> backup drive. With the -p option the "show
> translation"-values are equal
> to the values when my system is idle.

And otherwise not?

> I guess this option could help me a lot regarding the sound
> problems I
> got sometimes.

Yes, it might help a lot.

Cheers,

Jim.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-12-15 Thread Michael Vogel
Jim Van Meggelen schrieb:

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Michael Vogel

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).
By now I only have got sometimes crippled sound. Phonecalls from 
FXO-device to FXS-device are working perfect. They don't seem to have 
echos by now.

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.
Okay.
If you have serious plans for Asterisk, you'll probably want to look at
giving it a dedicated server.
My "serious" plans are only playing around with it and using it only for 
my own.

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).
Okay. At first I will try to fetch more memory. I hope I can organize 
some at work (from old machines).

Bye!
Michael
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-12-15 Thread Jim Van Meggelen


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 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.


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-12-15 Thread Michael Vogel
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?

Bye!
Michael
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-12-15 Thread Jim Van Meggelen
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Michael Vogel
> Sent: December 15, 2004 11:24 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] How "expensive" are 
> thedifferent codecs? (Regarding CPU time)
> 
> 
> el Flynn schrieb:
> 
> > at the CLI, type "show translation" and it will show a chart of how 
> > long
> > (in milliseconds) it will take to translate from one codec 
> to another.
> 
> Thanks! That helps me a lot. Am I right that this chart is calculated 
> depending my machine's speed:
> 
> ##
> #
>  zhad*CLI> show translation
>Translation times between formats (in milliseconds)
> Source Format (Rows) Destination Format(Columns)
>  
> G723   GSM  ULAW  ALAW  G726 ADPCM SLINR LPC10 G729A SPEEX
ILBC
> G723  - - - - - - - - - - -
> GSM   - -131347151243 -   253
124 
> ULAW  -41 - 136 4 132 -   242   113
> ALAW  -41 1 -36 4 132 -   242   113
> G726  -824343 -454273 -   283   154
> ADPCM -43 4 438 - 334 -   244   115
> SLINR -40 1 135 3 -31 -   241   112
> LPC10 -581919532118 - -   259   130
> G729A - - - - - - - - - - -
> SPEEX -52131347151243 - -   124
> ILBC  -59202054221950 -   260 -
> zhad*CLI> 
> ##
> #
> 
> Encoding to speex or ilbc seems to be too heavy for my machine ;-)

YIKES! What kind of processor have you got there?


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users