From notifications-return-38624-apmail-accumulo-notifications-archive=accumulo.apache.org@accumulo.apache.org Tue Apr 11 19:59:52 2017 Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F8E718E78 for ; Tue, 11 Apr 2017 19:59:52 +0000 (UTC) Received: (qmail 89282 invoked by uid 500); 11 Apr 2017 19:59:46 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 89142 invoked by uid 500); 11 Apr 2017 19:59:46 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 88868 invoked by uid 99); 11 Apr 2017 19:59:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2017 19:59:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2B03B1AFB49 for ; Tue, 11 Apr 2017 19:59:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 8E1PFwqfia_9 for ; Tue, 11 Apr 2017 19:59:44 +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 BA16760DB2 for ; Tue, 11 Apr 2017 19:59:43 +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 CDC61E0D4A for ; Tue, 11 Apr 2017 19:59:42 +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 16E172406B for ; Tue, 11 Apr 2017 19:59:42 +0000 (UTC) Date: Tue, 11 Apr 2017 19:59:42 +0000 (UTC) From: "Michael Miller (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ACCUMULO-4621) Refactor hot methods for JIT optimization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Michael Miller created ACCUMULO-4621: ---------------------------------------- Summary: Refactor hot methods for JIT optimization Key: ACCUMULO-4621 URL: https://issues.apache.org/jira/browse/ACCUMULO-4621 Project: Accumulo Issue Type: Improvement Components: client, fate, tserver Reporter: Michael Miller Fix For: 1.8.2, 2.0.0 I did some analysis of how well the JIT compiler optimizes Accumulo code by running tests locally in JMH and against a single local instance of Uno. To print what the JIT compiler was doing, I used the following java options: {code} -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintInlining {code} Then I would grep the output for "accumulo" and "hot method too big". Here is the list of methods I compiled from the tests I did on both client and server.: {code} org.apache.accumulo.core.client.impl.TabletLocatorImpl::processInvalidated org.apache.accumulo.core.client.impl.ThriftScanner::scan org.apache.accumulo.core.data.Key::equals org.apache.accumulo.core.data.thrift.TMutation$TMutationStandardScheme::read org.apache.accumulo.core.file.rfile.RFile$LocalityGroupReader::_seek org.apache.accumulo.core.file.rfile.RelativeKey:: org.apache.accumulo.core.file.rfile.RelativeKey::readFields org.apache.accumulo.core.security.ColumnVisibility$ColumnVisibilityParser::parse_ org.apache.accumulo.fate.zookeeper.ZooCache$2::run org.apache.accumulo.server.constraints.MetadataConstraints::check org.apache.accumulo.server.master.LiveTServerSet::checkServer org.apache.accumulo.tserver.FileManager::reserveReaders org.apache.accumulo.tserver.constraints.ConstraintChecker::check org.apache.accumulo.tserver.scan.NextBatchTask::run org.apache.accumulo.tserver.tablet.ScanDataSource::createIterator org.apache.accumulo.tserver.tablet.Scanner::read {code} This work was inspired by this blog post: https://techblug.wordpress.com/2013/08/19/java-jit-compiler-inlining/ -- This message was sent by Atlassian JIRA (v6.3.15#6346)