I recently read in a presentation on Scribd that Facebook had benchmarked a variety of locking mechanisms for APC including file locks (default), IPC semaphore locks, linux Futex locks, pthread mutex locks, and spin locks. You can view this presentation by clicking the following link: APC@Facebook
I was wondering if anybody knew off hand if any of this source code had been released, perhaps in a git or SVN repository somewhere? The speed benefits of switching from the default file locking to one of the other choices appears to be significant.