Trivial example using a packet generator script:

 

packet-generator new {

    name x

    limit 0

    size 128-128

    interface local0

    node ethernet-input

    data {

        IP6: 00.01.02 -> 00.03.04

        ICMP: db00::1 -> db00::2

        incrementing 30

    }

}

 

vpp# pa en

vpp# clea ru

<wait a bit>

vpp# sh ru

Time 6.9, 10 sec internal node vector rate 256.00 loops/sec 146062.54

  vector rates in 3.8578e7, out 0.0000e0, drop 3.8578e7, punt 0.0000e0

             Name                 State         Calls          Vectors        
Suspends         Clocks       Vectors/Call  

dpdk-process                    any wait                 0               0      
         2          5.82e3            0.00

drop                             active            1039350       266073600      
         0          8.05e0          256.00

error-drop                       active            1039350       266073600      
         0          3.91e0          256.00

ethernet-input                   active            1039350       266073600      
         0          9.79e0          256.00

fib-walk                        any wait                 0               0      
         4          8.06e3            0.00

ikev2-manager-process           any wait                 0               0      
         4          5.92e3            0.00

ip4-full-reassembly-expire-wal  any wait                 0               0      
         1          3.35e3            0.00

ip4-sv-reassembly-expire-walk   any wait                 0               0      
         1          3.09e3            0.00

ip6-drop                         active            1039350       266073600      
         0          3.27e0          256.00

ip6-full-reassembly-expire-wal  any wait                 0               0      
         1          3.82e3            0.00

ip6-input                        active            1039350       266073600      
         0          1.43e1          256.00

ip6-lookup                       active            1039350       266073600      
         0          3.29e1          256.00

ip6-mld-process                 any wait                 0               0      
         7          2.53e3            0.00

ip6-ra-process                  any wait                 0               0      
         7          3.22e3            0.00

ip6-sv-reassembly-expire-walk   any wait                 0               0      
         1          5.63e3            0.00

pg-input                         polling           1039350       266073600      
         0          2.05e1          256.00

statseg-collector-process       time wait                0               0      
         1          1.65e4            0.00

unix-cli-stdin                   active                  0               0      
         1          3.49e5            0.00

unix-epoll-input                 polling              1014               0      
         0          1.57e3            0.00

 

 

Remove uninteresting data:

 

drop                             active            1039350       266073600      
         0          8.05e0          256.00

error-drop                       active            1039350       266073600      
         0          3.91e0          256.00

ethernet-input                   active            1039350       266073600      
         0          9.79e0          256.00

ip6-drop                         active            1039350       266073600      
         0          3.27e0          256.00

ip6-input                        active            1039350       266073600      
         0          1.43e1          256.00

ip6-lookup                       active            1039350       266073600      
         0          3.29e1          256.00

pg-input                         polling           1039350       266073600      
         0          2.05e1          256.00

 

Sum clocks/pkt: 

 

8.05e0

3.91e0

9.79e0

3.27e0

1.43e1

3.29e1

2.05e1

-------

9.27E+01 = 92.7 clocks/pkt

 

 

From: Merve Orakcı <[email protected]> 
Sent: Thursday, November 12, 2020 8:44 AM
To: [email protected]
Subject: Re: [vpp-dev] Total Packet Process Time in VPP

 

I run this, I see time is reset.

Start traffic.

“clear run”.

Wait several seconds.

“show run”.

 

But I did not understand how to do "Add up clocks/pkt/node for data-plane nodes 
to form total clocks/pkt" Could you please explain more clearly where and how 
to add it.

 

 

<[email protected] <mailto:[email protected]> > adresine sahip kullanıcı 12 Kas 
2020 Per, 15:09 tarihinde şunu yazdı:

Start traffic.

“clear run”.

Wait several seconds.

“show run”.

 

Add up clocks/pkt/node for data-plane nodes to form total clocks/pkt. Results 
valid only for the prevailing vector rate, CPU type, CPU clock frequency, etc.. 

 

Vpp nodes run dramatically more efficiently as the vector size increases, up to 
the point where rx ring drops occur. 

 

HTH... Dave 

 

From: [email protected] <mailto:[email protected]>  <[email protected] 
<mailto:[email protected]> > On Behalf Of Merve
Sent: Thursday, November 12, 2020 6:30 AM
To: [email protected] <mailto:[email protected]> 
Subject: [vpp-dev] Total Packet Process Time in VPP

 

Hi everyone, I'm using VPP with trex. I send and receive packets. Is there any 
place on  Vpp where I can view the total processing time? I see graph runtime 
statistic
but I haven't found anything about the time passed here.

I see like this; İn here "time" is not total processing time.
(show runtime command)
Time 1603.9, 10 sec internal node vector rate 0.00 loops/sec 1367859.23
  vector rates in 1.5238e5, out 1.5159e5, drop 0.0000e0, punt 0.0000e0



-- 

Merve Orakcı                                    

Research Asistant                              

Gazi University - Institute of Informatics 

Computer Forensics  

Phone :+90 0312 202 3814

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18006): https://lists.fd.io/g/vpp-dev/message/18006
Mute This Topic: https://lists.fd.io/mt/78204265/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to