From: Dan Brennan <dan-DxhYhj66CY3IKQKOP/5wZw@public.gmane.org>
To: dev-VfR2kkLFssw@public.gmane.org
Subject: Tx Queue Rate Limiting
Date: Fri, 10 Oct 2014 16:43:51 -0400 [thread overview]
Message-ID: <54384507.5060505@packetstorm.com> (raw)
Hello,
I've been scouring through the code and documentation, experimenting
with various register settings, etc., for some time now and I'm still
stuck on a problem regarding tx queue rate limiting.
I have a simple packet processing application that uses three cores
similar to qos_sched (Rx, Worker, Tx). I am running on an E5-1620 v2,
using an 82599EB based NIC for the network interface. I am using DPDK
1.7.1 on Debian 7 (3.2.46 kernel).
I have modified the testpmd application to utilize multiple tx queues in
both iofwd and flowgen modes. When I start the forwarder, I observe each
queue sending packets equally. I can issue the following command to
alter the rate of each queue individually:
set port N queue X rate NEWRATE
This works well, as I have observed the updated queue transmitting fewer
(or more) packets on output (I also have measured the proportional
change in total bit rate using a Smartbits analyzer).
The problem is that my application doesn't behave the same. I have 32 Tx
queues. However, when I change the rate on one, it appears to affect the
entire interface, instead of the individual queue. I looked at both port
configs (testpmd and my application) and can't locate the discrepancy. I
even went so far as to port the testpmd port init code to my application
with the same results.
I have instrumented the ixgbe driver to dump registers whenever I update
a Tx queue, and have verified all register settings are the same when I
perform this operation in testpmd and my application. The only
difference is that q-stats for testpmd reflect the correct change in Tx
queue rate for the individual queues, while q-stats in my application
indicate all Tx queues change to the same rate.
Has anyone experienced similar behavior or have the ability to shed some
light on what I could be doing wrong? Any assistance is appreciated.
Dan
reply other threads:[~2014-10-10 20:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54384507.5060505@packetstorm.com \
--to=dan-dxhyhj66cy3ikqkop/5wzw@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.