Return-Path: X-Original-To: apmail-hama-dev-archive@www.apache.org Delivered-To: apmail-hama-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDF0A18B43 for ; Fri, 22 May 2015 12:28:23 +0000 (UTC) Received: (qmail 9628 invoked by uid 500); 22 May 2015 12:28:23 -0000 Delivered-To: apmail-hama-dev-archive@hama.apache.org Received: (qmail 9599 invoked by uid 500); 22 May 2015 12:28:23 -0000 Mailing-List: contact dev-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hama.apache.org Delivered-To: mailing list dev@hama.apache.org Received: (qmail 9587 invoked by uid 99); 22 May 2015 12:28:23 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2015 12:28:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2115AC0098 for ; Fri, 22 May 2015 12:28:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YSoZn1jMoIIP for ; Fri, 22 May 2015 12:28:22 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id CB79120B6E for ; Fri, 22 May 2015 12:28:21 +0000 (UTC) Received: by iebgx4 with SMTP id gx4so29939490ieb.0 for ; Fri, 22 May 2015 05:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=4kiBRteJumH6LXhN6oSLcT/Cp9PqB1RFu8if5Uw3JHQ=; b=tlAalPsiQnipTgc3Z2Y9DpoYWJVErvyNqguch2s7FmRlvhj80u0HI2RxWHgIHtz4v5 K7IySmbCcZnCzOsQjlF2Ep+6FoslSbmBxUBJGFspl52GzUYlfhxndNVevmAfHMk1GJRY gBr2qNdC97vYcNfbGbe3QghAuJOMAYyx3YYl2KOFhZZ0IT00vSN8O1c+tfPVrZTy9w0z 6R+Xk4T2ScQZu1lO26ccJb6PcBNXKodzo+0ZIUnru3gxSuYThHPcgxwwWU68bfwA1rmy x6at7jluK7emfPq7uuXWt9lFe7UC8rAfhGzJzU5QQN3hqElFqdDrlwD0s71PRXf4a09d 34MA== X-Received: by 10.43.84.73 with SMTP id aj9mr9258319icc.69.1432297694764; Fri, 22 May 2015 05:28:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.153.212 with HTTP; Fri, 22 May 2015 05:27:34 -0700 (PDT) In-Reply-To: References: From: Tommaso Teofili Date: Fri, 22 May 2015 14:27:34 +0200 Message-ID: Subject: Re: where is OffHeapVerticesInfo? To: "dev@hama.apache.org" Content-Type: multipart/alternative; boundary=bcaec51824c64f27a20516aacb0e --bcaec51824c64f27a20516aacb0e Content-Type: text/plain; charset=UTF-8 ok, thanks Edward for the clarification. I would have liked an heads up here on dev@ to see if I could help there, as systems low on memory would still benefit from that feature. I will investigate if we can revamp OffHeapVerticesInfo to play well with multi threading and let you know. Regards, Tommaso 2015-05-22 13:52 GMT+02:00 Edward J. Yoon : > Hi, > > To improve the graph job performance, I used multi-threading for > computing vertices[1]. Because of this, the VerticesInfo would surely > need to be a thread-safe collection. MapVerticesInfo uses > ConcurrentHashMap and putIfAbsent to guarantee concurrency. I also > tried to keep OffHeapVerticesInfo, but DirectMemory buffers seems not > thread safe (If I wrong Please let me know). > > If there's way to solve the concurrency, I think we can add again. :) > > 1. > https://issues.apache.org/jira/browse/HAMA-946?focusedCommentId=14489195&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14489195 > > On Fri, May 22, 2015 at 8:17 PM, Tommaso Teofili > wrote: > > ok, I found it out myself by quickly going through commits at [1]. > > > > My question then is how does removal of that class relate to improving > > graph package ? > > Changing things in a non backward compatible way may still be acceptable > > since we are 0.x but I think we (Edward, in this case) really need to > make > > it clear if we intend to remove features (removing that class means > > removing the feature of storing vertices off heap) before doing that. > > > > Thanks and regards, > > Tommaso > > > > [1] : http://svn.apache.org/viewvc?view=revision&revision=1673079 > > > > 2015-05-22 13:13 GMT+02:00 Tommaso Teofili : > > > >> Hi all, > >> > >> I was having a look at Hama code again after a while and I cannot find > >> anymore the stuff for off heap storage of graph vertices, was it > removed ? > >> If so why and what's the Jira issue for that ? > >> > >> Thanks and regards, > >> Tommaso > >> > > > > -- > Best Regards, Edward J. Yoon > --bcaec51824c64f27a20516aacb0e--