Return-Path: X-Original-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 48B2E9B8E for ; Sat, 28 Apr 2012 09:32:12 +0000 (UTC) Received: (qmail 42594 invoked by uid 500); 28 Apr 2012 09:32:12 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 42443 invoked by uid 500); 28 Apr 2012 09:32:11 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 42408 invoked by uid 99); 28 Apr 2012 09:32:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2012 09:32:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2012 09:32:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 70DC8425EEB for ; Sat, 28 Apr 2012 09:31:49 +0000 (UTC) Date: Sat, 28 Apr 2012 09:31:49 +0000 (UTC) From: "Edward J. Yoon (JIRA)" To: hama-dev@incubator.apache.org Message-ID: <1907443278.6119.1335605509463.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <752321656.14192.1330724757503.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HAMA-521) Improve message buffering to save memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HAMA-521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264271#comment-13264271 ] Edward J. Yoon commented on HAMA-521: ------------------------------------- Builds OK, Examples and my BSP programs are all OK on 4 nodes cluster. Let's commit this. > Improve message buffering to save memory > ---------------------------------------- > > Key: HAMA-521 > URL: https://issues.apache.org/jira/browse/HAMA-521 > Project: Hama > Issue Type: Sub-task > Affects Versions: 0.5.0 > Reporter: Thomas Jungblut > Assignee: Thomas Jungblut > Fix For: 0.6.0 > > Attachments: HAMA-521.patch, HAMA-521_1.patch, HAMA-521_2.patch, HAMA-521_3.patch, HAMA-521_final.patch, HAMA-521_final_2.patch, mytest.patch > > > Suraj and I had a bit of discussion about incoming and outgoing message buffering and scalability. > Currently everything lies on the heap, causing huge amounts of GC and waste of memory. We can do better. > Therefore we need to extract an abstract Messenger class which is directly under the interface but over the compressor class. > It should abstract the use of the queues in the back (currently lot of duplicated code) and it should be backed by a sequencefile on local disk. > Once sync() starts it should return a message iterator for combining and then gets put into a message bundle which is send over RPC. > On the other side we get a bundle and looping over it putting everything into the heap making it much larger than it needs to be. Here we can also flush on disk because we are just using a queue-like method to the user-side. > Plus points: > In case we have enough heap (see our new metric system), we can also implement a buffering technology that is not flushing everything to disk. > Open questions: > I don't know how much slower the whole system gets, but it would save alot of memory. Maybe we should first evaluate if it is really needed. > In any case, the refactoring of the duplicate code in the messengers is needed. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira