[Serusers] Re: [Serdev] Which locking mechanism is useful for usrloc in production environment?
Andrei Pelinescu-Onciul
andrei at iptel.org
Fri Feb 2 15:16:30 CET 2007
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
More information about the sr-users
mailing list