Hello all,

I am trying to monitor the message send/receive between each place
with X10_TRACE_RXTX for my codes, but it seems there is something
wrong with the profiling results that: The RX bytes/TX bytes recorded
by the network card is total different from that recorded by
X10_TRACE_RXTX. In my test, the RX bytes/TX bytes recorded by the
network card of a node (testing with multi-nodes) is about 2GB, but
X10RT_RXTX shows only about 3MB per place (there are 12 places on that
node).

Then I run a simple test on a single node with 2 places, the code and
the results are shown as below. It shows that the RX/TX of  sending an
array with size 10,000 is the same as 100,000,000. Then I just doubt
that the X10_TRACE_RXTX can not catch the RX/TX of asyncCopy, is that
right? Is there any method that can record the RX/TX between each
place in this situation?

Thanks in advance!

Long

public class test {
      public static def main(args: Array[String]) {
                val N:Int=Place.MAX_PLACES;

                val NUM:Int=Int.parseInt(args(0));
                val r:Region=0..(N-1);
                val d:Dist=Dist.makeBlock(r);

                val receive=DistArray.make[RemoteArray[Int]](d);
                var sent:Array[Int]=new Array[int](NUM);
                for(i in 0..(NUM-1)){
                        sent(i)=i;
                }

                val p1=Place.place(1);
                at(p1){
                   receive(here.id)= new RemoteArray(new Array[int](NUM));
                 }
                Array.asyncCopy( sent, at (p1) receive(here.id));

                Console.OUT.println(NUM+" is done");
        }
}


10000 is done
Place: 0   rx: 167/6   tx: 161/4
Place: 1   rx: 189/5   tx: 167/6
100000 is done
Place: 0   rx: 167/6   tx: 161/4
Place: 1   rx: 189/5   tx: 167/6
1000000 is done
Place: 0   rx: 167/6   tx: 161/4
Place: 1   rx: 189/5   tx: 167/6
10000000 is done
Place: 0   rx: 167/6   tx: 161/4
Place: 1   rx: 189/5   tx: 167/6
100000000 is done
Place: 0   rx: 167/6   tx: 161/4
Place: 1   rx: 189/5   tx: 167/6

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to