On Tue, Oct 18, 2022 at 05:03:48PM +0000, Emmanuel Dreyfus wrote: > dbm is fast once you have it open. mod_dav_fs opens DAVLockDB on each > HTTP request, then it acquire a filesystem level lock on it. This is > where contenton occurs.
I have been thinking about how Apache could open DAVLockDB once, instead of for each HTTP request. The workers should share a file descriptor on the file, and a mutex to avoid concurent access. That does not fit well with the prefork model. Opending DAVLockDB and creating the mutex (a sysV mutex?) should be done in the master process. Should it be done when processing the configuration directive? We would also need to take care of closing the previous file descriptor on reloads. -- Emmanuel Dreyfus m...@netbsd.org