Update mutex from file to pthread
Bug #1527044 reported by
Daniel Axtens
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The default Mutex implementation used by Ubuntu's Apache package is file locking. (See /etc/apache2/
The Apache project currently warns about pthreads being potentially dangerous.[1] However, Linux has supported robust pthreads for many years now,[2] so it's safe for Ubuntu to move to pthreads and reap the performance benefits.
My tests on POWER8, VM and bare-metal, PHP and static files, show something like a 1.5% to 3.5% performance gain for a one-line config change.
[1] https:/
[2] See this apache bug: https:/
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better.
We could fix this in Xenial, thanks. I appreciate your performance testing report, but is there anything from upstream that documents that pthread mutexes with mpm_prefork are expected to be faster?
This should be reported to Debian too, so I'll leave a tag for that. Again, we'd prefer to stay as close to Debian as possible.