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 5D55811EEB for ; Fri, 15 Aug 2014 21:59:21 +0000 (UTC) Received: (qmail 31148 invoked by uid 500); 15 Aug 2014 21:59:20 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 31098 invoked by uid 500); 15 Aug 2014 21:59:20 -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 30968 invoked by uid 99); 15 Aug 2014 21:59:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Aug 2014 21:59:20 +0000 Date: Fri, 15 Aug 2014 21:59:20 +0000 (UTC) From: "Nick Dimiduk (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11550) Custom value for BUCKET_CACHE_BUCKETS_KEY should be sorted 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-11550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14099232#comment-14099232 ] Nick Dimiduk commented on HBASE-11550: -------------------------------------- [~stack] Trivial is fine. I think it's important that the semantics of the allocator placement policy be identical, but the change itself is trivial. I didn't communicate my shift in opinion after researching allocation strategies. I believe Ted's point about roundUpToBucketSizeInfo is quite valid, makes it clear that this allocator implementation does indeed depend on the order of target sizes. I don't think it fair to the new contributor to have their contributions get caught up in the project politicking. I'm happy to help see a valuable patch through, even if the circumstances around it are not ideal. More, valid tests are better than less. I don't know what the new issue's test might look like. For a cache of configured size and shape, for given sequence of blocks, they're placed such that they all fit, something like this? I'm much more interested in thinking through what constitutes a "better" or "worse" criteria for HBase and if there's a different allocation strategy that fits HBase access patterns "better". This looks like a decent starting point http://www.memorymanagement.org/mmref/index.html > Custom value for BUCKET_CACHE_BUCKETS_KEY should be sorted > ---------------------------------------------------------- > > Key: HBASE-11550 > URL: https://issues.apache.org/jira/browse/HBASE-11550 > Project: HBase > Issue Type: Bug > Affects Versions: 0.99.0, 0.98.4, 0.98.5 > Reporter: Ted Yu > Assignee: Gustavo Anatoly > Priority: Trivial > Fix For: 0.99.0, 2.0.0, 0.98.6 > > Attachments: HBASE-11550-v1.patch, HBASE-11550-v2.patch, HBASE-11550-v3.patch, HBASE-11550-v4-0.98.patch, HBASE-11550-v4.patch, HBASE-11550.patch > > > User can pass bucket sizes through "hbase.bucketcache.bucket.sizes" config entry. > The sizes are supposed to be in increasing order. Validation should be added in CacheConfig#getL2(). -- This message was sent by Atlassian JIRA (v6.2#6252)