Page 1 of 1

REcording RAM

PostPosted: Tue Feb 09, 2010 5:23 am
by braditm
Hello

Vicidial 2.0.5
Mutltiservers architecture with 4 separated servers:
Each server has 4 x 2,33 Ghz with 4 G of RAM
1 asterisk 1.2
1 my SQL
1 Apache
1 ftp

70 inbound calls
30 outbound calls (manual)

I'm recording all calls
But my CPU is going very high : load average above 8
Without recording, it is using around 2 in load average

1) How can I check if the recording are done on RAM ?
2) What should i do in order to make recording using ram
3) What else should i check
4) Any other ideas to save some CPU

PostPosted: Mon Mar 08, 2010 3:15 pm
by williamconley
1) Have you purchased the manager's manual yet?

2) Please post the vicidial version AND BUILD (you were close!)

3) please also mention whether there is any other software on the server.

I note that you say server load 8, but you failed to mention on which server. I am left to assume it is the asterisk server (i hate assuming, but this seems highly likely, so I'll go with it). You may wish to consider using the unused CPU of your other servers by using your MySQL and / or FTP servers as dialers or by simply adding another asterisk server.

I believe the managers manual details setting up RAM recordings (which would be why i asked if you purchased one yet).

However, recording calls IS CPU intense and you may find that configuration does not resolve your lack of available CPU on the single asterisk. so ... combine MySQL and apache and recycle the mysql machine as an asterisk server, perhaps the ftp server ... check all your CPUs during "high use" and see which one has some (or a lot of) available CPU. then stop wasting it :)

PostPosted: Sat Mar 13, 2010 7:04 am
by batman256
hye,
i have the some problem , i purchased the managers manual (2.2.0) but i don't find how to setting up RAM recordings ? can you give me the pages number please ?

PostPosted: Sat Mar 13, 2010 9:06 am
by williamconley
batman256 wrote:hye,
i have the some problem , i purchased the managers manual (2.2.0) but i don't find how to setting up RAM recordings ? can you give me the pages number please ?
I stand corrected, the directions are in the Free Scratch Install Instructions

20. vi /etc/fstab # to include the following line for recording to RAM
tmpfs /var/spool/asterisk/monitor tmpfs rw 0 0


available at http://astguiclient.sourceforge.net/scr ... stall.html

PostPosted: Sun Mar 14, 2010 2:45 pm
by gardo
If you're using VicidialNOW, edit "/etc/rc.local" and uncomment the following:

### uncomment If kernel RAM drive is enabled
#mke2fs -m 0 /dev/ram0
#mount /dev/ram0 /var/spool/asterisk/monitor
#mkdir /var/spool/asterisk/monitor/DONE
#mkdir /var/spool/asterisk/monitor/ORIG

Should look like this:

### uncomment If kernel RAM drive is enabled
mke2fs -m 0 /dev/ram0
mount /dev/ram0 /var/spool/asterisk/monitor
mkdir /var/spool/asterisk/monitor/DONE
mkdir /var/spool/asterisk/monitor/ORIG

You also need to edit "/boot/grub/menu.1st". Look for the line:

kernel /vmlinuz-2.6.18-164.el5.vnow ro root=LABEL=/

Append "ramdisk_size=512000" (512 MB) to it.

Should look like this:

kernel /vmlinuz-2.6.18-164.el5.vnow ro root=LABEL=/ ramdisk_size=512000

Restart your server after the changes.

PostPosted: Sun Mar 14, 2010 3:37 pm
by williamconley
step by step instructions for setting up ram recordings. very cool.

PostPosted: Wed Mar 17, 2010 6:16 am
by batman256
thanks for your response