|
Description:
Currently the use of three type of IPC resources (semaphores, message
queues and shared memory segments) are synchronized by three global
locks respectively. This means, for example, all semaphores are
going to share one global lock. Although the IPC locks are not highly
used as the BKL, on some applications which use lots of IPC resources
(e.g. IPC semaphores), there could be contention.
It makes more sense to me if we break the one global lock for
all semaphores into one lock per sempahore id (same for message
queue id/shared memory id). Patch should also avaliable at lse website.
|