Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F44563A7 for ; Fri, 24 Jun 2011 02:22:08 +0000 (UTC) Received: (qmail 80400 invoked by uid 500); 24 Jun 2011 02:22:08 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 80374 invoked by uid 500); 24 Jun 2011 02:22:08 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 80366 invoked by uid 99); 24 Jun 2011 02:22:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 02:22:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Fri, 24 Jun 2011 02:22:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 61C9242C9E3 for ; Fri, 24 Jun 2011 02:21:47 +0000 (UTC) Date: Fri, 24 Jun 2011 02:21:47 +0000 (UTC) From: "Jason Rutherglen (JIRA)" To: issues@hbase.apache.org Message-ID: <1126245896.35298.1308882107397.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1847633630.35209.1308880667396.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4027) Enable direct byte buffers LruBlockCache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-4027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054216#comment-13054216 ] Jason Rutherglen commented on HBASE-4027: ----------------------------------------- Here's the relevant code from hadoop-lzo: {code} Object cleaner = buf.getClass().getMethod("cleaner").invoke(buf); cleaner.getClass().getMethod("clean").invoke(cleaner); {code} and {code} ByteBuffer.allocateDirect(newSize); {code} > Enable direct byte buffers LruBlockCache > ---------------------------------------- > > Key: HBASE-4027 > URL: https://issues.apache.org/jira/browse/HBASE-4027 > Project: HBase > Issue Type: Improvement > Reporter: Jason Rutherglen > Priority: Minor > > Java offers the creation of direct byte buffers which are allocated outside of the heap. > They need to be manually free'd, which can be accomplished using an documented {{clean}} method. > The feature will be optional. After implementing, we can benchmark for differences in speed and garbage collection observances. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira