[Asterisk-Users] Asterisk CPU priorities (nice?)
Gilad Ben-Yossef
gilad at codefidence.com
Mon Jan 3 10:49:23 MST 2005
Justin Carlson wrote:
> what is wrong with running asterisk with the -pg flags at startup?
Which is exactly what I suggested:
>>
>>Since VoIP is a real time activity, simple "nice" really isn't enough.
>>What you should do is mark the Asterisk proccess as a real time task for
>>the Linux kernel to schedule accordingly. You can do this with Asterisk
>>by passing the "-p" option to the Asterisk command line.
>>
And the warning still holds:
>>A warning is due here: real time priority scheduled tasks are not
>>something to be toyed with. You need to be root to be able to turn on
>>this feature (meaning you have to be running Asterisk as root). A bug in
>>Asterisk, a problem with mpg123 or a red alert on a FXO card can very
>>well leave your system completly non responsive - so use with care.
>>
>>Having said that, I've been running an Asterisk server on a machine
>>which is also used as SOHO firewall and file server for year now and it
>>works great.
Gilad
More information about the asterisk-users
mailing list