Re: Measuring Network Packet processing time

2014-04-08 Thread Valdis . Kletnieks
On Tue, 08 Apr 2014 15:35:29 +0200, Peter Senna Tschudin said: > I'm not sure that rdtsc registers are synchronized on different CPUs. There exist Intel multi-core chipsets that explicitly do *not* have synchronised rdtsc registers. pgpxoLKfG3GEf.pgp Description: PGP signature __

Re: Measuring Network Packet processing time

2014-04-08 Thread Peter Senna Tschudin
You need to know exactly what you are doing for using rdtsc. There are some external factors that affect the counting such as dynamic clock, and out of order execution. I'm not sure that rdtsc registers are synchronized on different CPUs. Some code for you to play with: https://github.com/petersenn

Measuring Network Packet processing time

2014-04-07 Thread Sunny
Hi all, I’m running xen 4.2 on Linux Kernel 3.7 and I’m trying to figure out the time taken(latency) by a network packet to reach it’s destination VM from the time it arrives at the NIC. What do you think is the best way to do it? I was thinking may be add rdtsc timestamp to the IP options head