Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 57211 invoked from network); 13 Nov 2006 19:55:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2006 19:55:00 -0000 Received: (qmail 71603 invoked by uid 500); 13 Nov 2006 19:55:10 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 71566 invoked by uid 500); 13 Nov 2006 19:55:10 -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 71555 invoked by uid 99); 13 Nov 2006 19:55:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 11:55:10 -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; Mon, 13 Nov 2006 11:54:59 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 16C547142F6 for ; Mon, 13 Nov 2006 11:54:39 -0800 (PST) Message-ID: <17573338.1163447679090.JavaMail.jira@brutus> Date: Mon, 13 Nov 2006 11:54:39 -0800 (PST) From: "Anders Morken (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-801) Allow parallel access to data files. In-Reply-To: <379656011.1136803530096.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/DERBY-801?page=3Dall ] Anders Morken updated DERBY-801: -------------------------------- Attachment: DERBY-801-7.patch This patch (DERBY-801-7.patch) turns the DEBUG_PRINT messages in RAFContain= er4 into assertions guarding the method entry points. Dunno if they're of a= ny use now, but if they catch a bug later, they could be worth the overhead= in debug builds. =3D) M java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java RAFContainer4.java | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) Anything else I need to do before marking this one as resolved? =3D) > Allow parallel access to data files. > ------------------------------------ > > Key: DERBY-801 > URL: http://issues.apache.org/jira/browse/DERBY-801 > Project: Derby > Issue Type: Improvement > Components: Performance, Store > Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1 > Environment: Any > Reporter: =C3=98ystein Gr=C3=B8vlen > Assigned To: Anders Morken > Attachments: DERBY-801-6.patch, DERBY-801-7.patch, DERBY-801-v2.p= atch, DERBY-801-v3.patch, DERBY-801-v4.patch, DERBY-801-v5.patch, NIO-RAFCo= ntainer-v1.patch > > > Derby currently serializes accesses to a data file. For example, the > implementation of RAFContainer.readPage is as follows: > synchronized (this) { // 'this' is a FileContainer, i.e. a file obje= ct > fileData.seek(pageOffset); // fileData is a RandomAccessFile > fileData.readFully(pageData, 0, pageSize); > } > I have experiemented with a patch where I have introduced several file > descriptors (RandomAccessFile objects) per RAFContainer. These are > used for reading. The principle is that when all readers are busy, a > readPage request will create a new reader. (There is a maximum number > of readers.) With this patch, throughput was improved by 50% on > linux. For more discussion on this, see > http://www.nabble.com/Derby-I-O-issues-during-checkpointing-t473523.html > The challenge with the suggested approach is to make a mechanism to > limit the number of open file descpriptors. Mike Matrigali has > suggested to use the existing CacheManager infrastructure for this > purpose. For a discussion on that, see: > http://www.nabble.com/new-uses-for-basic-services-cache---looking-for-adv= ice-t756863.html --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira