[Freeswitch-users] OpenVZ tuning tips

Yuriy Nasida nasida at live.ru
Sat May 25 14:02:05 MSD 2013


I mean to join question  (sure not issue)   :)

From: nasida at live.ru
To: freeswitch-users at lists.freeswitch.org
Subject: RE: [Freeswitch-users] OpenVZ tuning tips
Date: Sat, 25 May 2013 13:52:56 +0400




Tamas,
I think you can find info about performance problems with CentOS 6 on jira. For example. http://jira.freeswitch.org/browse/FS-4291
We also wanted to use timerfd (without virtualization) and  made a moving to latest cenos 6.(2,3) + FS 1.2.8 . It was big mistake. FS got frozen sometimes. As a result we had to move on centos 5.9 again. 
I would like to join issue. how can I be sure that timerfd is used? 
Regards,
Yuriy

Date: Sat, 25 May 2013 07:52:28 +0200
From: jalsot at gmail.com
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] OpenVZ tuning tips

We've tried as root user but as I remember it was not able to set up the priority but will recheck to be sure. Another interesting thing is that when I tried to set a running process scheduler with chrt, got operation not permitted (as root of course), so I guess, something has to be tuned in the VE or on the host. We will try on bare metal centos6+ovz on the host.

We try the latest centos6 with latest openvz kernel (due to security requirements we run on latest stable kernel and OS versions).
Could you give some info about those horrible performance problems to let us check whether it still applies or not? (we've found only mysql create table performance degradation due to ext4 - where the solution could be barrier=0 yet, no other problems).

Actually, how can I be sure that timerfd is used? strace? I'm nearly sure that timerfd works fine in FS.

Yep, it would be much simpler without virtualization, and much harder from another perspective. Probably lxc, kvm and xen aren't much better regarding realtime stuff...


Regards,
   Tamas


On Fri, May 24, 2013 at 11:28 PM, Anthony Minessale <anthony.minessale at gmail.com> wrote:

It will only work running as root I believe because it needs high privs to do realtime.If you do use centOS make sure its the latest rev of cent6, we have some horrible performance problems on the earlier revs and I don't know if they were resolved.

Just make sure your kernels are as new as you can get them on the real host to avoid years of kernel performance bugs and that it has support for timerfd otherwise your VE would compile with timerfd support but not have actual access to the real syscalls for it in the host.


That's why we try not to recommend virtual stuff in general as it takes some very careful setups and its hard to support from our standpoint when people run into issues.
 




On Fri, May 24, 2013 at 12:30 AM, Tamas Jalsovszky <jalsot at gmail.com> wrote:


Hello,

Thank you for tips, we are testing centos/openvz 6 with 2.6.32 kernel on host and Ubuntu 10.04 LTS in VE.


Do you know maybe how to allow realtime priority in the VE for FS? Running FS with -rp does not set the scheduler.

strace says, sched_setscheduler operation permitted, so SCHED_FF is not set. Tried to run as root and/or use ulimit -r option, but cannot run FS with tuned priorities.We guess, some thing missing in the host/VE configuraton.



Any idea?

Br, 
  Tamas


On Thu, May 23, 2013 at 12:47 AM, jay binks <jaybinks at gmail.com> wrote:



Im using 2.6.32 on all my boxes ...
One thing that has me thinking,  are there any tweaks to get MSI-X working best it can ? ( with proxmox )


there seems to be a strong bias towards one CPU for all interrupts.


I could be wrong, but its something I think ive seen, and didnt see any clear suggestions on.
Jay






On 23 May 2013 01:12, Anthony Minessale <anthony.minessale at gmail.com> wrote:





2.6.25 or newer to get timerfd support.




On Wed, May 22, 2013 at 2:56 AM, Zenny <garbytrash at gmail.com> wrote:

On 5/22/13, Anthony Minessale <anthony.minessale at gmail.com> wrote:







> You should consider centos6 or debian stable.  Make sure the host kernel is

> very new to get maximum results.



Tony, do you mean "very new kernel" means 3.2.xx kernel?



Openvz host kernel is still at 2.6.32 so bleeding edge kernel is not

possible. And that is what CentOS6 offers, too.



However, I installed FS as openvz guest, it works fine for outgoing,

but not DNAT works for incoming connections even after throroughly

following http://wiki.freeswitch.org/wiki/NAT_Traversal#FreeSWITCH_behind_NAT.



Just my two cents.







>

>

> On Tue, May 21, 2013 at 2:53 PM, Tamas Jalsovszky <jalsot at gmail.com> wrote:

>

>> Hello,

>>

>> Do you have any recommendations regarding how to set up correctly (for

>> production) CentOS5 openvz and FS 1.2.stable? Is there any trick to

>> tuneup

>> the system to be rock solid?

>> Right now we use centos5 openvz and ubuntu 10.04 LTS in container with FS

>> 1.2.8 and RTP deltas are varying from 15 to around 40ms. We guess that

>> something is not well configured around timers, however mod_posix_timer

>> did

>> not help anything (running FS with -rp). We use our own bare metal and

>> can

>> reproduce those delatas eirher when only one VE is on the HW.

>> Maybe time to check out centos6 with openvz?

>>

>> Any idea, recommendation, experience can be very helpful.

>>

>> Regards,

>>    Jalsot

>>

>> _________________________________________________________________________

>> Professional FreeSWITCH Consulting Services:

>> consulting at freeswitch.org

>> http://www.freeswitchsolutions.com

>>

>> 

>> 

>>

>> Official FreeSWITCH Sites

>> http://www.freeswitch.org

>> http://wiki.freeswitch.org

>> http://www.cluecon.com

>>

>> FreeSWITCH-users mailing list

>> FreeSWITCH-users at lists.freeswitch.org

>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

>> http://www.freeswitch.org

>>

>>

>

>

> --

> Anthony Minessale II

>

> FreeSWITCH http://www.freeswitch.org/

> ClueCon http://www.cluecon.com/

> Twitter: http://twitter.com/FreeSWITCH_wire

>

> AIM: anthm

> MSN:anthony_minessale at hotmail.com

> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com

> IRC: irc.freenode.net #freeswitch

>

> FreeSWITCH Developer Conference

> sip:888 at conference.freeswitch.org

> googletalk:conf+888 at conference.freeswitch.org

> pstn:+19193869900

>



_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org

http://www.freeswitchsolutions.com









Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/






Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com





GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com

IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org





googletalk:conf+888 at conference.freeswitch.org

pstn:+19193869900


_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org

http://www.freeswitchsolutions.com









Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org




-- 
Sincerely

Jay


_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org

http://www.freeswitchsolutions.com









Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org





_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org

http://www.freeswitchsolutions.com









Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org




-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/


Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com

GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com

IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org

googletalk:conf+888 at conference.freeswitch.org

pstn:+19193869900


_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org

http://www.freeswitchsolutions.com









Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org





_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130525/16f34ebc/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list