Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 98376 invoked from network); 28 Feb 2007 12:47:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2007 12:47:22 -0000 Received: (qmail 32705 invoked by uid 500); 28 Feb 2007 12:47:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 32644 invoked by uid 500); 28 Feb 2007 12:47:26 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 32627 invoked by uid 99); 28 Feb 2007 12:47:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 04:47:26 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 04:47:17 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60FB8714044 for ; Wed, 28 Feb 2007 04:46:57 -0800 (PST) Message-ID: <23344296.1172666817393.JavaMail.jira@brutus> Date: Wed, 28 Feb 2007 04:46:57 -0800 (PST) From: "Olav Sandstaa (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2328) Reduce monitor contention in SinglePool In-Reply-To: <11688225.1171358765969.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476570 ] Olav Sandstaa commented on DERBY-2328: -------------------------------------- Adding comments sent earlier today to derby-dev when JIRA was unavailable: ===================================================== I have downloaded and reviewed the patch. I like the introduction of the CompatibilitySpace interface and having to explicitly to create compatibility spaces. It mades the code more readable. Also removing the hash table from SinglePool is good both for simplifying the code, readability and performance (CPU and monitor contention). The patch looks very good. I have only some very minor nits: * java/engine/org/apache/derby/impl/services/locks/LockSpace.java: -since you have changed the signature of the LockSpace constructor you should consider adding JavaDoc describing the new parameter (Object owner). -it might also be an idea to explain the "owner" concept in the JavaDoc for the class since this is a new concept you are introducing? (and if you change the JavaDoc for the class, you can probably also change the sentence refeering the "a hashtable keyed by..." to a "hash map keyed by....") I have run the derbyall and Junit test suites with the patch. Only the two tests that currently fail in the thinderbox test failed. +1 to commit this patch. Thanks for the work on this, Knut Anders! Regards, Olav > Reduce monitor contention in SinglePool > --------------------------------------- > > Key: DERBY-2328 > URL: https://issues.apache.org/jira/browse/DERBY-2328 > Project: Derby > Issue Type: Sub-task > Components: Performance, Services > Affects Versions: 10.3.0.0 > Reporter: Knut Anders Hatlen > Assigned To: Knut Anders Hatlen > Priority: Minor > Attachments: derby-2328.diff, derby-2328.stat, unused.diff > > > When multiple threads enter the lock manager, there might be contention on SinglePool's monitor. The contention should be reduced in order to improve scalability. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.