Please do the following: <start traffic>
"clear run" <accumulate data for a number of seconds> "show run" <stop traffic> Otherwise, you're looking at a long-term average data which include an awful lot of 0 PPS time... D. From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Rubina Bianchi Sent: Saturday, June 30, 2018 4:55 AM To: John DeNisco (jdenisco) <jdeni...@cisco.com>; Damjan Marion <dmar...@me.com> Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] CPU Usage in VPP Hi Damjan I run T-rex on a VPP acl stateful machine with 4 core and run a watch on vppctl show run. Average vectors/node value per each thread increases at first until they reach around 60 (20% of 255 that you mentioned). After that, I saw drop in my T-rex report but average vectors/node value is still around 60. I stopped T-rex and I expected average vectors/node value should be decreased. But It didn't change an it was still around 60. I wait until all acl session to be deleted but average vectors/node didn't go down? Am I missed anything from your last email? ________________________________ From: John DeNisco (jdenisco) <jdeni...@cisco.com<mailto:jdeni...@cisco.com>> Sent: Thursday, June 28, 2018 4:47 PM To: Damjan Marion; Rubina Bianchi Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] CPU Usage in VPP Rubina, Damjan, I am working on a project to enhance the VPP documentation. I think these are great questions and answers. Do you mind if I use them for my documents? Thanks, John From: <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> on behalf of Damjan Marion <dmar...@me.com<mailto:dmar...@me.com>> Date: Tuesday, June 26, 2018 at 6:28 AM To: Rubina Bianchi <r_bian...@outlook.com<mailto:r_bian...@outlook.com>> Cc: "vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>" <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> Subject: Re: [vpp-dev] CPU Usage in VPP Yes, good indicator is "average vectors/node" in show run. Bigger number means VPP is more busy but also more efficient. Maximum value us 255 (unless you change VLIB_FRAME_SIZE in code). It basically means how many packets are processed in batch. If VPP is not loaded it will likely poll so fast that it will just get one or few packets from the rx queue, as load goes up vpp will have more work to do, so it will poll less frequently, and that will result in more packets waiting in rx queue. More packets will result in more efficient execution of the code so number of clock cycles / packet will go down. When "average vectors/node" goes up close to 255, you will likely start observing rx queue tail drops. Hope this explains... On 26 Jun 2018, at 07:57, Rubina Bianchi <r_bian...@outlook.com<mailto:r_bian...@outlook.com>> wrote: Thanks Dear Damjan So, Is there any way to compute VPP load or power? Actually, what I'm looking for is a metric to determine how much is VPP load in different cases. In other word I want to know how much VPP is busy. Thanks, Sincerely ________________________________ From: Damjan Marion <dmar...@me.com<mailto:dmar...@me.com>> Sent: Monday, June 25, 2018 8:43 PM To: Rubina Bianchi Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] CPU Usage in VPP With at least one interface in polling mode, VPP CPU is always 100% utilised. For memory usage, you can use "show memory [verbose]" debug cli. On 25 Jun 2018, at 13:51, Rubina Bianchi <r_bian...@outlook.com<mailto:r_bian...@outlook.com>> wrote: Hi Dear VPP Is there any command or tools in vpp to show real cpu and memory usage on runtime? I used top and htop in linux kernel but it shows pre-allocated amounts. I also tried vppctl sho runtime, but its frequency is less than what I expected (on high traffic and low traffic its reported clocks are same or have low frequency). Thanks, Sincerely _._,_._,_ ________________________________ Links: You receive all messages sent to this group. View/Reply Online (#9705)<https://lists.fd.io/g/vpp-dev/message/9705> | Reply To Sender<mailto:dmar...@me.com?subject=Private:%20Re:%20Re%3A%20%5Bvpp-dev%5D%20CPU%20Usage%20in%20VPP> | Reply To Group<mailto:vpp-dev@lists.fd.io?subject=Re:%20Re%3A%20%5Bvpp-dev%5D%20CPU%20Usage%20in%20VPP> | Mute This Topic<https://lists.fd.io/mt/22674849/675681> | New Topic<https://lists.fd.io/g/vpp-dev/post> Your Subscription<https://lists.fd.io/g/vpp-dev/editsub/675681> | Contact Group Owner<mailto:vpp-dev+ow...@lists.fd.io> | Unsubscribe<https://lists.fd.io/g/vpp-dev/unsub> [jdeni...@cisco.com] _._,_._,_
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9750): https://lists.fd.io/g/vpp-dev/message/9750 Mute This Topic: https://lists.fd.io/mt/22674849/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-