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 1CC8CEB82 for ; Tue, 12 Feb 2013 22:41:15 +0000 (UTC) Received: (qmail 82345 invoked by uid 500); 12 Feb 2013 22:41:15 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 82271 invoked by uid 500); 12 Feb 2013 22:41:15 -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 82168 invoked by uid 99); 12 Feb 2013 22:41:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 22:41:14 +0000 Date: Tue, 12 Feb 2013 22:41:14 +0000 (UTC) From: "Keith Turner (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-1062) large numbers of threads make in-memory updates slow 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/ACCUMULO-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13577122#comment-13577122 ] Keith Turner commented on ACCUMULO-1062: ---------------------------------------- Eric and I were poking at this issue using the test program. We found the following code in InMemoryMap is causing the performance problem. {code:java} synchronized (this) { // Can not update mutationCount while writes that started before // are in progress, this would cause partial mutations to be seen. // Also, can not continue until mutation count is updated, because // a read may not see a successful write. Therefore writes must // wait for writes that started before to finish. while (kvCount.get() != kv - 1) { try { wait(); } catch (InterruptedException ex) { // ignored } } kvCount.set(kv + numKVs - 1); notifyAll(); } {code} > large numbers of threads make in-memory updates slow > ---------------------------------------------------- > > Key: ACCUMULO-1062 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1062 > Project: Accumulo > Issue Type: Bug > Components: tserver > Affects Versions: 1.4.2 > Environment: testing on large clusters > Reporter: Eric Newton > Assignee: Keith Turner > Priority: Critical > Fix For: 1.5.0 > > Attachments: SlamTest.java > > > Using hundreds of ingest programs, each running several batch writers, ingest would eventually become slow. Testing (attached) proved that performance fell off as the number of threads increased. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira