Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D518778D2 for ; Thu, 1 Dec 2011 18:55:03 +0000 (UTC) Received: (qmail 47774 invoked by uid 500); 1 Dec 2011 18:55:03 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 47734 invoked by uid 500); 1 Dec 2011 18:55:03 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 47726 invoked by uid 99); 1 Dec 2011 18:55:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 18:55:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 18:55:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4EB6AAEE6C for ; Thu, 1 Dec 2011 18:54:40 +0000 (UTC) Date: Thu, 1 Dec 2011 18:54:40 +0000 (UTC) From: "Jonathan Ellis (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <242537457.31749.1322765680323.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <592257663.3531.1312335267099.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-2988) Improve SSTableReader.load() when loading index files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-2988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161029#comment-13161029 ] Jonathan Ellis commented on CASSANDRA-2988: ------------------------------------------- Melvin, can you review that patch? (Verified that it still applies to 1.0 branch.) > Improve SSTableReader.load() when loading index files > ----------------------------------------------------- > > Key: CASSANDRA-2988 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2988 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Melvin Wang > Assignee: Melvin Wang > Priority: Minor > Fix For: 1.0.6 > > Attachments: 2988-2-cleaned.txt, 2988-2-v2.txt, 2988-parallel-v2.txt, c2988-2-v2, c2988-modified-buffer.patch, c2988-parallel-load-sstables.patch > > > * when we create BufferredRandomAccessFile, we pass skipCache=true. This hurts the read performance because we always process the index files sequentially. Simple fix would be set it to false. > * multiple index files of a single column family can be loaded in parallel. This buys a lot when you have multiple super large index files. > * we may also change how we buffer. By using BufferredRandomAccessFile, for every read, we need bunch of checking like > - do we need to rebuffer? > - isEOF()? > - assertions > These can be simplified to some extent. We can blindly buffer the index file by chunks and process the buffer until a key lies across boundary of a chunk. Then we rebuffer and start from the beginning of the partially read key. Conceptually, this is same as what BRAF does but w/o the overhead in the read**() methods in BRAF. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira