You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/08/15 16:47:44 UTC

[Bug 60006] New: Replacing g_mutex_skiplist_mtx mutex lock with pthread_spin_lock provides performance benefit

https://bz.apache.org/bugzilla/show_bug.cgi?id=60006

            Bug ID: 60006
           Summary: Replacing g_mutex_skiplist_mtx mutex lock with
                    pthread_spin_lock provides performance benefit
           Product: Apache httpd-2
           Version: 2.4.20
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mpm_event
          Assignee: bugs@httpd.apache.org
          Reporter: mejbah.alam@gmail.com

While running benchmark ab with our tool we found that g_timer_skiplist_mtx is
acquired very frequently but the contention is very low. We experinted by
replacing this pthread_mutex_lock with spinlock. We achieve 7% speedup running 
./ab -k -c 350 -n 20000 localhost:8080/
in our 16 core linux machine.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60006] Replacing g_mutex_skiplist_mtx mutex lock with pthread_spin_lock provides performance benefit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60006

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Rich Bowen <rb...@apache.org> ---
Thank you for your report. As part of an effort to clean up our issue tracker,
we are closing tickets that have seen no activity for more than 5 years. If
this issue is still relevant to a current version of Apache httpd (2.4.x or
trunk), please reopen this ticket or open a new one with updated information.
We appreciate your contribution to the project.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60006] Replacing g_mutex_skiplist_mtx mutex lock with pthread_spin_lock provides performance benefit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60006

Jim Jagielski <ji...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jim@apache.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60006] Replacing g_mutex_skiplist_mtx mutex lock with pthread_spin_lock provides performance benefit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60006

Mejbah <me...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60006] Replacing g_mutex_skiplist_mtx mutex lock with pthread_spin_lock provides performance benefit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60006

Luca Toscano <to...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toscano.luca@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60006] Replacing g_mutex_skiplist_mtx mutex lock with pthread_spin_lock provides performance benefit

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60006

--- Comment #1 from Yann Ylavic <yl...@gmail.com> ---
There is a patch proposed in
https://bz.apache.org/bugzilla/show_bug.cgi?id=57399#c5 which avoids this lock
in the listener (unless necessary, i.e. it should be more contented in this
case).

Could you please pass your test(s) with it?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org