hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-4026) Use JNA to allocate buffers in the block cache
Date Fri, 24 Jun 2011 01:37:47 GMT

    [ https://issues.apache.org/jira/browse/HBASE-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054205#comment-13054205
] 

Todd Lipcon commented on HBASE-4026:
------------------------------------

It's also not hard to just implement this... if you are OK with special casing for different
JDKs, you just need to grab the {{cleaner}} member and call {{clean}}. I do this in hadoop-lzo
(apache license).

> Use JNA to allocate buffers in the block cache
> ----------------------------------------------
>
>                 Key: HBASE-4026
>                 URL: https://issues.apache.org/jira/browse/HBASE-4026
>             Project: HBase
>          Issue Type: Improvement
>          Components: regionserver
>            Reporter: Jason Rutherglen
>            Priority: Minor
>
> The HBase block cache can be problematic because it is unpredictable when Java will reclaim
the unused byte arrays using garbage collection.  
> JNA (Java Native Access from Sun/Oracle) provides one possible way to solve this problem.
> https://github.com/twall/jna
> Memory is the name of the class that can be used to test the implementation.
> https://github.com/twall/jna/blob/master/src/com/sun/jna/Memory.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message