netdev
[Top] [All Lists]

Re: inter-packet gap in pktgen

To: Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx>
Subject: Re: inter-packet gap in pktgen
From: Robert Olsson <Robert.Olsson@xxxxxxxxxxx>
Date: Wed, 8 Dec 2004 11:21:54 +0100
Cc: Ben Greear <greearb@xxxxxxxxxxxxxxx>, Robert Olsson <Robert.Olsson@xxxxxxxxxxx>, hadi@xxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20041208073858.GA4027@xi.wantstofly.org>
References: <20041207222522.GA30266@xi.wantstofly.org> <41B632F3.1090104@candelatech.com> <20041208073858.GA4027@xi.wantstofly.org>
Sender: netdev-bounce@xxxxxxxxxxx
Lennert Buytenhek writes:
 > 
 > Another option is:
 > 
 >      next_tx = get_time_in_ns();
 >      while (--count) {
 >              tx_packet();
 >              next_tx += 1e9/intended_pps;
 >              nanospin(next_tx - get_time_in_ns());
 >      }

 Hello!

 I think this what Ben is doing with his userland app. Ev. adjusting
 the ipg delay in runtime? A kind of control system. Even the device 
 stats could possible be read.

 
 > This should be relatively independent of system load.  OK, I know,
 > time to show some code.
 
 Also an idea might be to have some kind of option to use pktgen w. 
 existent qdisc/tc infrastructure for this type of tests. Ben did
 you try this?
 
                                                --ro

<Prev in Thread] Current Thread [Next in Thread>