[Serusers] Re: [Serdev] Which locking mechanism is useful for usrloc in production environment?

Ramu Yadav contactramu at gmail.com
Sat Feb 3 04:13:43 CET 2007


Thanks!

Yes we enabled "posix sems" and we are observing the difference.


On 2/2/07, Andrei Pelinescu-Onciul <andrei at iptel.org> wrote:
>
> On Feb 01, 2007 at 16:05, Ramu Yadav <contactramu at gmail.com> wrote:
> > Hello,
> >
> > At present we are using "sys v semaphores"(USE_SYSV_SEM) for locking.
> >
> > But we see a some delay while acquiring the lock to modify the usrloc's
> > location table.
> >
> > We are in a thought to use "posix semaphores" (USE_POSIX_SEM), will this
> > improve any performance for usrloc location table.
>
> Yes posix sems will imporve performance a lot. Just make sure your os
> supports them for locking between processes (if you're on linux it's ok).
> Also the default "fast_lock" work very well if you're not doing time
> consuming stuff inside them (like db lookups).
>
> sys v locks are very slow.
>
> >
> > Thoughts and Ideas will be appreciated.
> >
>
>
> Andrei
>



-- 
Ramu Yadav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20070203/485513db/attachment.htm>


More information about the sr-users mailing list