From: Ferruh Yigit <ferruh.yigit@amd.com>
To: Anthony Harivel <aharivel@redhat.com>,
Aman Singh <aman.deep.singh@intel.com>,
Yuying Zhang <yuying.zhang@intel.com>,
"Hunt, David" <david.hunt@intel.com>
Cc: dev@dpdk.org, rjarry@redhat.com, david.marchand@redhat.com,
ktraynor@redhat.com, ci@dpdk.org, aconole@redhat.com,
Robin Jarry <rjarry@redhat.com>
Subject: Re: [PATCH 2/2] app/testpmd: add testpmd based sleeping
Date: Tue, 21 Mar 2023 11:45:51 +0000 [thread overview]
Message-ID: <46ee2b41-bbbc-3abf-4733-3a692639a9e8@amd.com> (raw)
In-Reply-To: <CR8M0YYFWTAE.2VTIDJCDTRYOA@fedora>
On 3/17/2023 11:09 AM, Anthony Harivel wrote:
> Ferruh Yigit, Mar 16, 2023 at 18:05:
>> Hi Anthony,
>>
>> What is the motivation here?
>
> Hi Ferruh,
>
> AFAIK testpmd is the reference tool used for CI and tests whether it is
> for functional or performance tests and I think it would be in
> everyone's interest to consume less CPU during them. Moreover, all
> patches coming to the ML are going through validation tests and this
> could reduce the maintenance cost of the project.
>
I don't think testpmd CPU usage is a real concern, it is only used by
limited number of people and only for a limited duration.
And optimizations like this may jeopardize its main task.
On the other hand, CPU/power consumption of a DPDK application in
production is a concern, and there may be many parties interested in to
reduce watt/core with a reasonable performance impact.
There is already a 'power' library for this purpose, to enable power
optimizations for all DPDK applications, instead of just implementing
them on a specific application (like testpmd).
In my experience heuristics approaches (as done in your patch) depends
on workload, while it helps for some usecases it may hurt in others.
Still there may be customers willing to test a specific one for a
specific workload.
What do you think to have these heuristics approaches implemented in the
power library, and add a new power sample application that selects one
of existing algorithm as a kind of plugin?
It can start with single algorithm, that is what you used in this patch.
But overall how to add them into power library needs to be designed.
cc'ed @Dave as power library/sample maintainer.
next prev parent reply other threads:[~2023-03-21 11:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-16 15:14 [PATCH 1/2] app/testpmd: fwd engines report processed packets Anthony Harivel
2023-03-16 15:14 ` [PATCH 2/2] app/testpmd: add testpmd based sleeping Anthony Harivel
2023-03-16 16:17 ` Stephen Hemminger
2023-03-16 17:05 ` Ferruh Yigit
2023-03-17 11:09 ` Anthony Harivel
2023-03-17 16:22 ` Stephen Hemminger
2023-03-21 11:45 ` Ferruh Yigit [this message]
2023-03-17 19:25 ` Robin Jarry
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=46ee2b41-bbbc-3abf-4733-3a692639a9e8@amd.com \
--to=ferruh.yigit@amd.com \
--cc=aconole@redhat.com \
--cc=aharivel@redhat.com \
--cc=aman.deep.singh@intel.com \
--cc=ci@dpdk.org \
--cc=david.hunt@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=ktraynor@redhat.com \
--cc=rjarry@redhat.com \
--cc=yuying.zhang@intel.com \
/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).