← Back to team overview

enterprise-support team mailing list archive

[Bug 1527044] [NEW] Update mutex from file to pthread

 

Public bug reported:

The default Mutex implementation used by Ubuntu's Apache package is file
locking. (See /etc/apache2/apache2.conf) This is slower than pthreads,
especially when using mpm_prefork.

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://httpd.apache.org/docs/trunk/mod/core.html#mutex
[2] See this apache bug: https://bz.apache.org/bugzilla/show_bug.cgi?id=58744

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1527044

Title:
  Update mutex from file to pthread

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1527044/+subscriptions


Follow ups