Hi Pavan,
A couple of things to note:
1) 0.01 is an average injection rate. So a node *could* inject more than 10 
packets (but not a lot more).
The implementation is basically a bernoulli trial, where every cycle you 
generate a random number and decide to inject or not based on whether it is 
less than or greater than the injection rate.
If you run the experiment with different random seeds, (and for large number of 
cycles each time), the average should be (injection_rate * simCycles).

2) Vnet 2 injects 5-flit packets. So you should divide the flits injected stat 
from it by 5 to get packets injected.

Let me know if you have more questions. 

- Tushar


On Apr 29, 2012, at 3:25 PM, Pavan Poluri wrote:

> Hello,
> 
> I am trying to simulate the interconnection network using the Network_test 
> protocol. My question is on the file networktest.cc that is responsible for 
> generating and sending the packets. I understand that if I use --fixed-pkts 
> and --maxpackets options together I enforce each cpu node to only inject 
> maxpackets number of packets. So even before the simulation, if simCycles is 
> sufficiently large I know that each node will inject maxpackets number of 
> packets. I wanted the number of packets injected by each node to be random. 
> So I did not use --fixed-pkts and --maxpackets options. 
> 
> Consider the following case. I gave the injection rate to be 0.01 and 
> simCycles to be 1000. I did not use --fixed-pkts and --maxpackets options. As 
> a result at the end of simulation each node injected different number of 
> packets. But, some nodes injected more packets than 1000*0.01 = 10 packets. 
> This is where I am confused. How can a node inject more packets than the 
> product of injectionrate and simCycles even though the maxpackets option is 
> not enabled?
> 
> Thanks for your time.
> 
> Thanks,
> Pavan
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to