Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1433A200C00 for ; Wed, 18 Jan 2017 23:31:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 12BC3160B43; Wed, 18 Jan 2017 22:31:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5D1DC160B22 for ; Wed, 18 Jan 2017 23:31:30 +0100 (CET) Received: (qmail 68173 invoked by uid 500); 18 Jan 2017 22:31:29 -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 68157 invoked by uid 99); 18 Jan 2017 22:31:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2017 22:31:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DE16718066C for ; Wed, 18 Jan 2017 22:31:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id lFQpYtAdj55H for ; Wed, 18 Jan 2017 22:31:28 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 869D85F4AC for ; Wed, 18 Jan 2017 22:31:27 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B6B69E864E for ; Wed, 18 Jan 2017 22:31:26 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 73BC425286 for ; Wed, 18 Jan 2017 22:31:26 +0000 (UTC) Date: Wed, 18 Jan 2017 22:31:26 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17484) Add non cached version of OffheapKV for write path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 Jan 2017 22:31:31 -0000 [ https://issues.apache.org/jira/browse/HBASE-17484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15828886#comment-15828886 ] stack commented on HBASE-17484: ------------------------------- Any evidence to present to justify why we should have these new types? We've gone this route a bunch of times in our history adding caching and then undoing it. The argument is that reading these lengths by parsing offheap bytes is slow? After this patch, how many versions of KeyValue do we have? Do we have to have a OffheapKeyValue and Cached... ? Do we have to realize the storage in the Type? Isn't it enough having a ByteBufferCell with it internally doing direct or non-direct? This looks odd... private static final int FIXED_OVERHEAD = 39 OffheapKeyValue.FIXED_OVERHEAD + +Bytes.SIZEOF_INT + Bytes.SIZEOF_SHORT; .... is that a double '+'? > Add non cached version of OffheapKV for write path > -------------------------------------------------- > > Key: HBASE-17484 > URL: https://issues.apache.org/jira/browse/HBASE-17484 > Project: HBase > Issue Type: Sub-task > Components: regionserver > Affects Versions: 2.0.0 > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Fix For: 2.0.0 > > Attachments: HBASE-17484.patch > > > After running lot of different performance tests for various scenarios and with multi threads we thought that is better to have a version of OffheapKV in write path that does not cache anything and its fixed_overhead is equal to that in KeyValue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)