> On 23 Nov 2018, at 04:22, Mikado <mik...@yeah.net> wrote:
> 
> Hi,
> Recently I’m developing a plugin based on VPP 18.07 to decode specified 
> packets. I added it between dpdk-input and interface-output  using the same 
> method of adding sample plugin in VPP source code. To test its performance in 
> theory , I used  clib_cpu_time_now() to calculate the average cpu time cost  
> when packets  go through my pulgin.When I use differnet tx speed to send 
> packets to the device using VPP and my plugin , it  turns out  that the 
> average cpu time changes as the tx speed changes. At frist , I assume it is 
> caused by the cpu time cost when VPP moves packets to the next node. So I 
> calculate the average cpu time of each node but it appears  the same.Then, I 
> use the sample plugin to operate  the same test. The result is similar 
> although it does not fluctuate much. 
> Now I’m confused. Isn’t it that all packets go through the same code and cost 
> the same cpu time ?

More packets in batch means code is more efficient and per packet cpu time is 
lower.
Use "show run" debug cli and monitor vector size, VPP is most efficient when 
vector size is close to 256.
Also, note that show run shows per node clocks/packet data (might be inaccurate 
if turboboost is enabled).


-- 
Damjan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11384): https://lists.fd.io/g/vpp-dev/message/11384
Mute This Topic: https://lists.fd.io/mt/28292345/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to