You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2015/04/08 08:45:12 UTC

[jira] [Updated] (HAMA-526) Multi-threaded vertex processing

     [ https://issues.apache.org/jira/browse/HAMA-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-526:
--------------------------------
    Attachment: patch.txt

Here's small bench result:

patch applied: 33.818 seconds 
trunk: 39.748 seconds

> Multi-threaded vertex processing
> --------------------------------
>
>                 Key: HAMA-526
>                 URL: https://issues.apache.org/jira/browse/HAMA-526
>             Project: Hama
>          Issue Type: Improvement
>          Components: bsp core, graph
>            Reporter: Edward J. Yoon
>         Attachments: patch.txt
>
>
> {code}
>   public void bsp(BSPPeer peer) throws IOException, SyncException,
>       InterruptedException {
>  
>       ...
>       while (updated && iteration < maxIteration) {
>         peer.sync();
>         ...
>         for (Map.Entry<String, LinkedList<Writable>> e : msgMap.entrySet()) {
>           if (e.getValue().size() > 0) {
>             vertices.get(e.getKey()).compute(e.getValue().iterator());
>           }
>         }
>       ...
>       }
> {code}
> Above code will run Vertex sequentially. Do you think we can run Vertex processing concurrently using multi-threads?
> Then what's the advantages or disadvantages of using multi-threading?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)