From: Bruce Richardson <bruce.richardson@intel.com>
To: "Varghese, Vipin" <Vipin.Varghese@amd.com>
Cc: "Dumitrescu, Cristian" <cristian.dumitrescu@intel.com>,
"dev@dpdk.org" <dev@dpdk.org>,
"Yigit, Ferruh" <Ferruh.Yigit@amd.com>,
"Parikh, Neerav" <Neerav.Parikh@amd.com>
Subject: Re: [PATCH] cfgfile: increase value length
Date: Wed, 6 Dec 2023 15:50:31 +0000 [thread overview]
Message-ID: <ZXCYRzwAHZzEgE9i@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <MN2PR12MB3085F25BCFA579B06B0B5AFE8284A@MN2PR12MB3085.namprd12.prod.outlook.com>
On Wed, Dec 06, 2023 at 03:22:41PM +0000, Varghese, Vipin wrote:
> [AMD Official Use Only - General]
>
> Thanks Bruce & Cristian for the comments.
> An increase seems ok to me, but is an 8x increase really necessary? If
> lines in the config files are over 1k in size, then it implies that
> some
> other mechanism would surely be better for configuration.
> Can we make do with an increase to 512 only?
> VV> We encountered this issue
> [1]https://bugs.dpdk.org/show_bug.cgi?id=1333 trying to use multiple
> queue with DSA. But I hear you 256 to 2048 is big jump.
> Happy to compromise with 1K.
> VV> Sure let me update this is v2.
> Since there is a ABI breakage,
> [2]https://patchwork.dpdk.org/project/dpdk/patch/20231206112952.1588-1-
> vipin.varghese@amd.com/ I will re work and share v2.
Looking at the bugzilla, I still think even an increase to 1k is too much,
and that we should look to adjust the config file format in some way to
accomodate these longer line settings.
Taking the specific example in the bug:
* each entry in the line is wasting 5 characters with the string "lcore"
* each PCI ID is starting with 0000, so we can do like EAL does and assume
PCI domain is "0000" if just the BDF is given. This may involve changes
to the PCI driver in question, since i assume these queues are names
rather than addresses, but it would make them easier to address.
If we did these two items, then:
lcore_dma=lcore10@0000:00:04.2-q0,lcore12@0000:00:04.2-q1,lcore13@0000:00:04.2-q2,lcore14@0000:00:04.2-q3,lcore15@0000:00:04.2-q4,lcore16@0000:00:04.2-q5,lcore17@0000:00:04.2-q6,lcore18@0000:00:04.2-q7,lcore19@0000:00:04.4-q0,lcore20@0000:00:04.4-q1,lcore21@0000:00:04.4-q2,lcore22@0000:00:04.4-q3,lcore23@0000:00:04.4-q4,lcore24@0000:00:04.4-q5,lcore25@0000:00:04.4-q6,lcore26@0000:00:04.4-q7
becomes:
lcore_dma=10@00:04.2-q0,12@00:04.2-q1,13@00:04.2-q2,14@00:04.2-q3,15@00:04.2-q4,16@00:04.2-q5,17@00:04.2-q6,18@00:04.2-q7,19@00:04.4-q0,20@00:04.4-q1,21@00:04.4-q2,22@00:04.4-q3,23@00:04.4-q4,24@00:04.4-q5,25@00:04.4-q6,26@00:04.4-q7
a reduction from 394 chars to 234 (10 chars per device).
However, a better alternative may be to split up the lcore_dma item
entirely, so that we always have one element per line:
lcore_dma0=lcore10@0000:04.2-q0
lcore_dma1=lcore12@0000:04.2-q1
....
lcore_dma15=lcore26@0000:04.4-q7
What is especially good about using this is a solution is that it can be fully
backward compatible and has no ABI issues. If an "lcore_dma=" line exists,
we can split it, otherwise look for lcore_dma0, lcore_dma1 etc.
As I stated above, the need for really long lines in a config file is a
symptom of a more serious config problem, rather than an issue with the
cfgfile lib itself.
/Bruce
next prev parent reply other threads:[~2023-12-06 15:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-06 11:29 Vipin Varghese
2023-12-06 13:21 ` Bruce Richardson
2023-12-06 13:34 ` Dumitrescu, Cristian
2023-12-06 15:22 ` Varghese, Vipin
2023-12-06 15:50 ` Bruce Richardson [this message]
2023-12-06 16:46 ` Varghese, Vipin
2024-02-01 10:32 ` David Marchand
2024-02-01 12:01 ` Varghese, Vipin
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=ZXCYRzwAHZzEgE9i@bricha3-MOBL.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=Ferruh.Yigit@amd.com \
--cc=Neerav.Parikh@amd.com \
--cc=Vipin.Varghese@amd.com \
--cc=cristian.dumitrescu@intel.com \
--cc=dev@dpdk.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).