pinggit / dpdk-contrail-book

contrail dpdk day one book
9 stars 3 forks source link

dpdkvifstats.py script issue #23

Closed pinggit closed 3 years ago

pinggit commented 3 years ago

this does not looks correct: image

currently I have only 2 fwding cores:

[root@a7s3 ~]# taskset -cap `pidof contrail-vrouter-dpdk`
pid 3701's current affinity list: 5,11
pid 3751's current affinity list: 5,11
pid 3752's current affinity list: 5,11
pid 3778's current affinity list: 5,11
pid 3779's current affinity list: 5,11
pid 3780's current affinity list: 5,11
pid 3781's current affinity list: 5,11
pid 3782's current affinity list: 2
pid 3783's current affinity list: 8
pid 4752's current affinity list: 5,11

maybe because I did fwding core pinning after prox stacks created?

PrzemekGrygiel commented 3 years ago

You have 2 forwarding cores on vRouter then do not expect more cores in dpdkvifstats output. Run the command to adjust output to yours configuration (number of vRouter cores) ./dpdkvifstats.py --all --cpu 2

kirankn80 commented 3 years ago

I thought this is auto-calculated?

PrzemekGrygiel commented 3 years ago

It is not, was auto calculated with contrail 3.x based on config

From: kirankn80 notifications@github.com Reply to: pinggit/dpdk-contrail-book reply@reply.github.com Date: Tuesday, 6 October 2020 at 11:21 To: pinggit/dpdk-contrail-book dpdk-contrail-book@noreply.github.com Cc: Przemyslaw Grygiel pgrygiel@juniper.net, Comment comment@noreply.github.com Subject: Re: [pinggit/dpdk-contrail-book] dpdkvifstats.py script issue (#23)

[External Email. Be cautious of content]

I thought this is auto-calculated?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/pinggit/dpdk-contrail-book/issues/23#issuecomment-704143679, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFJVRD2ZO7BC2S6HNZ2YI5DSJLOQNANCNFSM4SFHLQYA.

Juniper Business Use Only

kirankn80 commented 3 years ago

ok got it.. we can calculate for any version based using this -

expr $(vif --get 0 | grep "RX queue errors to lcore" | xargs | cut -d' ' -f6- | wc -w) - 10

PrzemekGrygiel commented 3 years ago

Good point

From: kirankn80 notifications@github.com Reply to: pinggit/dpdk-contrail-book reply@reply.github.com Date: Tuesday, 6 October 2020 at 11:33 To: pinggit/dpdk-contrail-book dpdk-contrail-book@noreply.github.com Cc: Przemyslaw Grygiel pgrygiel@juniper.net, Comment comment@noreply.github.com Subject: Re: [pinggit/dpdk-contrail-book] dpdkvifstats.py script issue (#23)

[External Email. Be cautious of content]

ok got it.. we can calculate for any version based using this -

expr $(vif --get 0 | grep "RX queue errors to lcore" | xargs | cut -d' ' -f6- | wc -w) - 10

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/pinggit/dpdk-contrail-book/issues/23#issuecomment-704150215, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFJVRD3RE7HAAYJEBY4UAQTSJLP53ANCNFSM4SFHLQYA.

Juniper Business Use Only

pinggit commented 3 years ago

this is nice :) maybe we file a bug and have it fixed...

kirankn80 commented 3 years ago

yes