What about being nice ?
Posted: Wed May 26, 2010 12:43 pm
I suggest the following change in AST_CRON_audio_1_move_mix.pl in order to be more CPU friendly:
line 232 (in my version but line number could change according to your version of Vicidial)
should be replaced by
The nice command is made to place some process in background and decrease their priority so that they can run long and CPU consuming task without generating too much perturbation for the other processes running on the same machine
This change can also be done for other processes dealing with records such as WAV to MP3 or GSM compression, file transfer to other servers, etc.[/i]
line 232 (in my version but line number could change according to your version of Vicidial)
- Code: Select all
`$soxmixbin "$dir1/$INfile" "$dir1/$OUTfile" "$dir2/$ALLfile"`;
should be replaced by
- Code: Select all
`nice $soxmixbin "$dir1/$INfile" "$dir1/$OUTfile" "$dir2/$ALLfile"`;
The nice command is made to place some process in background and decrease their priority so that they can run long and CPU consuming task without generating too much perturbation for the other processes running on the same machine
This change can also be done for other processes dealing with records such as WAV to MP3 or GSM compression, file transfer to other servers, etc.[/i]