You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Yuri Dolgov (JIRA)" <ji...@apache.org> on 2007/09/28 14:22:50 UTC

[jira] Created: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

[drlvm][jit]Harmony has negative scalability in client mode
-----------------------------------------------------------

                 Key: HARMONY-4875
                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
             Project: Harmony
          Issue Type: Improvement
          Components: DRLVM
            Reporter: Yuri Dolgov
            Priority: Minor


The scalability for some kinds of programs is negative 
on DRLVM whereas they scales fine on other VMs. This 
is due to profile counters are collecting even when profile 
is gathered.

Test to reproduce the issue:

MT.java:

public class MT extends Thread{

 static long result = 0;
 long len = 0;
 public MT(long len){
  this.len = len;
 }

 public void run(){
 long total = 0;
 for(long i = 0; i < len; ++i){
    total += 1;
 }
 result = total;
 }

 public static void main(String[] args) throws InterruptedException {
 long totalWork = Long.parseLong(args[0]);
 int numThreads = Integer.parseInt(args[1]);

 long work = totalWork / numThreads;

 MT[] v = new MT[numThreads];
 for(int i = 0; i < numThreads; ++i){
  v[i] = new MT(work);
 }

 long start = System.currentTimeMillis();
 for(int i = 0; i < numThreads; ++i){
  v[i].start();
 }
 for(int i = 0; i < numThreads; ++i){
   v[i].join();
 }
 long dur = System.currentTimeMillis() - start;

 System.out.println("Total time: " + dur);
 }

}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

Posted by "Mikhail Fursov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikhail Fursov reopened HARMONY-4875:
-------------------------------------


The patch is not yet committed so I'm reopening this issue.

> [drlvm][jit]Harmony has negative scalability in client mode
> -----------------------------------------------------------
>
>                 Key: HARMONY-4875
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Yuri Dolgov
>            Assignee: Mikhail Fursov
>            Priority: Minor
>         Attachments: eb_counters_patching.patch
>
>
> The scalability for some kinds of programs is negative 
> on DRLVM whereas they scales fine on other VMs. This 
> is due to profile counters are collecting even when profile 
> is gathered.
> Test to reproduce the issue:
> MT.java:
> public class MT extends Thread{
>  static long result = 0;
>  long len = 0;
>  public MT(long len){
>   this.len = len;
>  }
>  public void run(){
>  long total = 0;
>  for(long i = 0; i < len; ++i){
>     total += 1;
>  }
>  result = total;
>  }
>  public static void main(String[] args) throws InterruptedException {
>  long totalWork = Long.parseLong(args[0]);
>  int numThreads = Integer.parseInt(args[1]);
>  long work = totalWork / numThreads;
>  MT[] v = new MT[numThreads];
>  for(int i = 0; i < numThreads; ++i){
>   v[i] = new MT(work);
>  }
>  long start = System.currentTimeMillis();
>  for(int i = 0; i < numThreads; ++i){
>   v[i].start();
>  }
>  for(int i = 0; i < numThreads; ++i){
>    v[i].join();
>  }
>  long dur = System.currentTimeMillis() - start;
>  System.out.println("Total time: " + dur);
>  }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

Posted by "Mikhail Fursov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikhail Fursov resolved HARMONY-4875.
-------------------------------------

    Resolution: Fixed

committed revision r584097.


> [drlvm][jit]Harmony has negative scalability in client mode
> -----------------------------------------------------------
>
>                 Key: HARMONY-4875
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Yuri Dolgov
>            Assignee: Mikhail Fursov
>            Priority: Minor
>         Attachments: eb_counters_patching.patch
>
>
> The scalability for some kinds of programs is negative 
> on DRLVM whereas they scales fine on other VMs. This 
> is due to profile counters are collecting even when profile 
> is gathered.
> Test to reproduce the issue:
> MT.java:
> public class MT extends Thread{
>  static long result = 0;
>  long len = 0;
>  public MT(long len){
>   this.len = len;
>  }
>  public void run(){
>  long total = 0;
>  for(long i = 0; i < len; ++i){
>     total += 1;
>  }
>  result = total;
>  }
>  public static void main(String[] args) throws InterruptedException {
>  long totalWork = Long.parseLong(args[0]);
>  int numThreads = Integer.parseInt(args[1]);
>  long work = totalWork / numThreads;
>  MT[] v = new MT[numThreads];
>  for(int i = 0; i < numThreads; ++i){
>   v[i] = new MT(work);
>  }
>  long start = System.currentTimeMillis();
>  for(int i = 0; i < numThreads; ++i){
>   v[i].start();
>  }
>  for(int i = 0; i < numThreads; ++i){
>    v[i].join();
>  }
>  long dur = System.currentTimeMillis() - start;
>  System.out.println("Total time: " + dur);
>  }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

Posted by "Yuri Dolgov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuri Dolgov updated HARMONY-4875:
---------------------------------

    Attachment: eb_counters_patching.patch

Attached patch fixes the problem and dramatically increases the performance. 

Here the results for the test on Harmont r580018
MT 900000000 1
Total time: 17703

MT 900000000 2
Total time: 37124

MT 900000000 4
Total time: 39155

MT 900000000 8
Total time: 89093

Here the results for the test on Harmont r580018 with patch applied
MT 900000000 1
Total time: 16578

MT 900000000 2
Total time: 8672

MT 900000000 4
Total time: 4594

MT 900000000 8
Total time: 2594


> [drlvm][jit]Harmony has negative scalability in client mode
> -----------------------------------------------------------
>
>                 Key: HARMONY-4875
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Yuri Dolgov
>            Priority: Minor
>         Attachments: eb_counters_patching.patch
>
>
> The scalability for some kinds of programs is negative 
> on DRLVM whereas they scales fine on other VMs. This 
> is due to profile counters are collecting even when profile 
> is gathered.
> Test to reproduce the issue:
> MT.java:
> public class MT extends Thread{
>  static long result = 0;
>  long len = 0;
>  public MT(long len){
>   this.len = len;
>  }
>  public void run(){
>  long total = 0;
>  for(long i = 0; i < len; ++i){
>     total += 1;
>  }
>  result = total;
>  }
>  public static void main(String[] args) throws InterruptedException {
>  long totalWork = Long.parseLong(args[0]);
>  int numThreads = Integer.parseInt(args[1]);
>  long work = totalWork / numThreads;
>  MT[] v = new MT[numThreads];
>  for(int i = 0; i < numThreads; ++i){
>   v[i] = new MT(work);
>  }
>  long start = System.currentTimeMillis();
>  for(int i = 0; i < numThreads; ++i){
>   v[i].start();
>  }
>  for(int i = 0; i < numThreads; ++i){
>    v[i].join();
>  }
>  long dur = System.currentTimeMillis() - start;
>  System.out.println("Total time: " + dur);
>  }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov reopened HARMONY-4875:
--------------------------------------


Issue reopened.

> [drlvm][jit]Harmony has negative scalability in client mode
> -----------------------------------------------------------
>
>                 Key: HARMONY-4875
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Yuri Dolgov
>            Assignee: Mikhail Fursov
>            Priority: Minor
>         Attachments: eb_counters_patching.patch
>
>
> The scalability for some kinds of programs is negative 
> on DRLVM whereas they scales fine on other VMs. This 
> is due to profile counters are collecting even when profile 
> is gathered.
> Test to reproduce the issue:
> MT.java:
> public class MT extends Thread{
>  static long result = 0;
>  long len = 0;
>  public MT(long len){
>   this.len = len;
>  }
>  public void run(){
>  long total = 0;
>  for(long i = 0; i < len; ++i){
>     total += 1;
>  }
>  result = total;
>  }
>  public static void main(String[] args) throws InterruptedException {
>  long totalWork = Long.parseLong(args[0]);
>  int numThreads = Integer.parseInt(args[1]);
>  long work = totalWork / numThreads;
>  MT[] v = new MT[numThreads];
>  for(int i = 0; i < numThreads; ++i){
>   v[i] = new MT(work);
>  }
>  long start = System.currentTimeMillis();
>  for(int i = 0; i < numThreads; ++i){
>   v[i].start();
>  }
>  for(int i = 0; i < numThreads; ++i){
>    v[i].join();
>  }
>  long dur = System.currentTimeMillis() - start;
>  System.out.println("Total time: " + dur);
>  }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

Posted by "Yuri Dolgov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuri Dolgov resolved HARMONY-4875.
----------------------------------

    Resolution: Fixed

Investigation showed that the reason is actualy in branch translator. 
Issue is resolved patch will be soon contributed.

> [drlvm][jit]Harmony has negative scalability in client mode
> -----------------------------------------------------------
>
>                 Key: HARMONY-4875
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Yuri Dolgov
>            Assignee: Mikhail Fursov
>            Priority: Minor
>         Attachments: eb_counters_patching.patch
>
>
> The scalability for some kinds of programs is negative 
> on DRLVM whereas they scales fine on other VMs. This 
> is due to profile counters are collecting even when profile 
> is gathered.
> Test to reproduce the issue:
> MT.java:
> public class MT extends Thread{
>  static long result = 0;
>  long len = 0;
>  public MT(long len){
>   this.len = len;
>  }
>  public void run(){
>  long total = 0;
>  for(long i = 0; i < len; ++i){
>     total += 1;
>  }
>  result = total;
>  }
>  public static void main(String[] args) throws InterruptedException {
>  long totalWork = Long.parseLong(args[0]);
>  int numThreads = Integer.parseInt(args[1]);
>  long work = totalWork / numThreads;
>  MT[] v = new MT[numThreads];
>  for(int i = 0; i < numThreads; ++i){
>   v[i] = new MT(work);
>  }
>  long start = System.currentTimeMillis();
>  for(int i = 0; i < numThreads; ++i){
>   v[i].start();
>  }
>  for(int i = 0; i < numThreads; ++i){
>    v[i].join();
>  }
>  long dur = System.currentTimeMillis() - start;
>  System.out.println("Total time: " + dur);
>  }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

Posted by "Mikhail Fursov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikhail Fursov reassigned HARMONY-4875:
---------------------------------------

    Assignee: Mikhail Fursov

> [drlvm][jit]Harmony has negative scalability in client mode
> -----------------------------------------------------------
>
>                 Key: HARMONY-4875
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Yuri Dolgov
>            Assignee: Mikhail Fursov
>            Priority: Minor
>         Attachments: eb_counters_patching.patch
>
>
> The scalability for some kinds of programs is negative 
> on DRLVM whereas they scales fine on other VMs. This 
> is due to profile counters are collecting even when profile 
> is gathered.
> Test to reproduce the issue:
> MT.java:
> public class MT extends Thread{
>  static long result = 0;
>  long len = 0;
>  public MT(long len){
>   this.len = len;
>  }
>  public void run(){
>  long total = 0;
>  for(long i = 0; i < len; ++i){
>     total += 1;
>  }
>  result = total;
>  }
>  public static void main(String[] args) throws InterruptedException {
>  long totalWork = Long.parseLong(args[0]);
>  int numThreads = Integer.parseInt(args[1]);
>  long work = totalWork / numThreads;
>  MT[] v = new MT[numThreads];
>  for(int i = 0; i < numThreads; ++i){
>   v[i] = new MT(work);
>  }
>  long start = System.currentTimeMillis();
>  for(int i = 0; i < numThreads; ++i){
>   v[i].start();
>  }
>  for(int i = 0; i < numThreads; ++i){
>    v[i].join();
>  }
>  long dur = System.currentTimeMillis() - start;
>  System.out.println("Total time: " + dur);
>  }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536712 ] 

Alexei Zakharov commented on HARMONY-4875:
------------------------------------------

Guys, committed patch causes assertion failure error in Struts test on Windows. Please see HARMONY-4995.

> [drlvm][jit]Harmony has negative scalability in client mode
> -----------------------------------------------------------
>
>                 Key: HARMONY-4875
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Yuri Dolgov
>            Assignee: Mikhail Fursov
>            Priority: Minor
>         Attachments: eb_counters_patching.patch
>
>
> The scalability for some kinds of programs is negative 
> on DRLVM whereas they scales fine on other VMs. This 
> is due to profile counters are collecting even when profile 
> is gathered.
> Test to reproduce the issue:
> MT.java:
> public class MT extends Thread{
>  static long result = 0;
>  long len = 0;
>  public MT(long len){
>   this.len = len;
>  }
>  public void run(){
>  long total = 0;
>  for(long i = 0; i < len; ++i){
>     total += 1;
>  }
>  result = total;
>  }
>  public static void main(String[] args) throws InterruptedException {
>  long totalWork = Long.parseLong(args[0]);
>  int numThreads = Integer.parseInt(args[1]);
>  long work = totalWork / numThreads;
>  MT[] v = new MT[numThreads];
>  for(int i = 0; i < numThreads; ++i){
>   v[i] = new MT(work);
>  }
>  long start = System.currentTimeMillis();
>  for(int i = 0; i < numThreads; ++i){
>   v[i].start();
>  }
>  for(int i = 0; i < numThreads; ++i){
>    v[i].join();
>  }
>  long dur = System.currentTimeMillis() - start;
>  System.out.println("Total time: " + dur);
>  }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-4875) [drlvm][jit]Harmony has negative scalability in client mode

Posted by "Yuri Dolgov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuri Dolgov resolved HARMONY-4875.
----------------------------------

    Resolution: Fixed

> [drlvm][jit]Harmony has negative scalability in client mode
> -----------------------------------------------------------
>
>                 Key: HARMONY-4875
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4875
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Yuri Dolgov
>            Priority: Minor
>         Attachments: eb_counters_patching.patch
>
>
> The scalability for some kinds of programs is negative 
> on DRLVM whereas they scales fine on other VMs. This 
> is due to profile counters are collecting even when profile 
> is gathered.
> Test to reproduce the issue:
> MT.java:
> public class MT extends Thread{
>  static long result = 0;
>  long len = 0;
>  public MT(long len){
>   this.len = len;
>  }
>  public void run(){
>  long total = 0;
>  for(long i = 0; i < len; ++i){
>     total += 1;
>  }
>  result = total;
>  }
>  public static void main(String[] args) throws InterruptedException {
>  long totalWork = Long.parseLong(args[0]);
>  int numThreads = Integer.parseInt(args[1]);
>  long work = totalWork / numThreads;
>  MT[] v = new MT[numThreads];
>  for(int i = 0; i < numThreads; ++i){
>   v[i] = new MT(work);
>  }
>  long start = System.currentTimeMillis();
>  for(int i = 0; i < numThreads; ++i){
>   v[i].start();
>  }
>  for(int i = 0; i < numThreads; ++i){
>    v[i].join();
>  }
>  long dur = System.currentTimeMillis() - start;
>  System.out.println("Total time: " + dur);
>  }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.