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 44CD6200BDA for ; Tue, 29 Nov 2016 02:30:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4356C160B25; Tue, 29 Nov 2016 01:30:01 +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 B4ADE160B22 for ; Tue, 29 Nov 2016 02:30:00 +0100 (CET) Received: (qmail 48155 invoked by uid 500); 29 Nov 2016 01:29:58 -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 47968 invoked by uid 99); 29 Nov 2016 01:29:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2016 01:29:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7C8552C03E2 for ; Tue, 29 Nov 2016 01:29:58 +0000 (UTC) Date: Tue, 29 Nov 2016 01:29:58 +0000 (UTC) From: "Ashu Pachauri (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17057) Minor compactions should also drop page cache behind reads MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 29 Nov 2016 01:30:01 -0000 [ https://issues.apache.org/jira/browse/HBASE-17057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15703800#comment-15703800 ] Ashu Pachauri commented on HBASE-17057: --------------------------------------- I had a first look at the code, things never are straightforward in the land of compactions. 1. Whether we can drop cache behind reads/writes for compaction is tried to whether we should throttle compactions. Not sure what dropping page cache has to do with throttling compactions. [~eclark] , can you shed a little light on why this is the case? (Since you added this piece of code in HBASE-14098 ) 2. It seems that we just ignore drop cache hint for all compactions on master branch. I'll dig more and try to find why the behavior was modified on master. > Minor compactions should also drop page cache behind reads > ---------------------------------------------------------- > > Key: HBASE-17057 > URL: https://issues.apache.org/jira/browse/HBASE-17057 > Project: HBase > Issue Type: Improvement > Components: Compaction > Reporter: Ashu Pachauri > Assignee: Ashu Pachauri > > Long compactions currently drop cache behind reads so that they don't pollute the page cache but short compactions don't do that. The bulk of the data is actually read during minor compactions instead of major compactions, and thrashes the page cache since it's mostly not needed. > We should drop page cache behind reads for minor compactions too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)