Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8B464200B63 for ; Mon, 15 Aug 2016 18:47:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 89A1E160AA7; Mon, 15 Aug 2016 16:47:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CEFB7160A8A for ; Mon, 15 Aug 2016 18:47:48 +0200 (CEST) Received: (qmail 57141 invoked by uid 500); 15 Aug 2016 16:47:48 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 57132 invoked by uid 99); 15 Aug 2016 16:47:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 16:47:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8E60018859E for ; Mon, 15 Aug 2016 16:47:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id eqfkOb9FSryr for ; Mon, 15 Aug 2016 16:47:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id A2AE45FC1D for ; Mon, 15 Aug 2016 16:47:46 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 1433FE01AB for ; Mon, 15 Aug 2016 16:47:46 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id 1AD4460DA9; Mon, 15 Aug 2016 16:47:44 +0000 (UTC) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: [Bug 60006] New: Replacing g_mutex_skiplist_mtx mutex lock with pthread_spin_lock provides performance benefit Date: Mon, 15 Aug 2016 16:47:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mpm_event X-Bugzilla-Version: 2.4.20 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mejbah.alam@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Mon, 15 Aug 2016 16:47:49 -0000 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