mbox series

[v6,0/2] Enable PMD power management on Arm

Message ID 20230220085109.3463640-1-feifei.wang2@arm.com (mailing list archive)
Headers
Series Enable PMD power management on Arm |

Message

Feifei Wang Feb. 20, 2023, 8:51 a.m. UTC
  For Arm aarch, use WFE instructions to enable PMD power management.

Test Results:
dynamic instructions over 1sec	without wfe	with wfe	percentage
ampere-altra			6,298,483,712	9,117,624	-99.855%
thunderx2			6,990,909,373	3,247,226	-99.954%

When power efficient PMD is enabled by using WFE on Arm, if no pkts
received, the instructions that CPU executes is reduced by 99%.

V2:
1. move rte_wake_up API out of signal_exit(David Marchand, Thomas, Stephen)
2. Add test results when using wfe on ARM server

v3:
1. make code cleaner (Stephen)

v4:
1. add support check in API (Thomas)

v5:
1. delete v4 check patch and l3fwd-power change. This is due to
that WFE instructions can be applied into all lcores. 
When all cores are in 'WFE' state, kernal can run normally and
receive interrupt signal to send it to the l3fwd-power thread.
Thus core in 'WFE' state can exit from sleeping by interrupt event.

v6:
1. delete '__check_val_size' API in ARM to simplify the code (Stephen)

Feifei Wang (2):
  eal: add 8 bits case for wait scheme
  eal: add power mgmt support on Arm

 doc/guides/rel_notes/release_23_03.rst |  4 ++
 lib/eal/arm/include/rte_pause_64.h     | 32 +++++++++++++--
 lib/eal/arm/rte_cpuflags.c             |  5 +++
 lib/eal/arm/rte_power_intrinsics.c     | 55 ++++++++++++++++++++++++--
 4 files changed, 89 insertions(+), 7 deletions(-)
  

Comments

David Marchand Feb. 20, 2023, 12:07 p.m. UTC | #1
On Mon, Feb 20, 2023 at 9:51 AM Feifei Wang <feifei.wang2@arm.com> wrote:
>
> For Arm aarch, use WFE instructions to enable PMD power management.
>
> Test Results:
> dynamic instructions over 1sec  without wfe     with wfe        percentage
> ampere-altra                    6,298,483,712   9,117,624       -99.855%
> thunderx2                       6,990,909,373   3,247,226       -99.954%
>
> When power efficient PMD is enabled by using WFE on Arm, if no pkts
> received, the instructions that CPU executes is reduced by 99%.
>
> Feifei Wang (2):
>   eal: add 8 bits case for wait scheme
>   eal: add power mgmt support on Arm
>
>  doc/guides/rel_notes/release_23_03.rst |  4 ++
>  lib/eal/arm/include/rte_pause_64.h     | 32 +++++++++++++--
>  lib/eal/arm/rte_cpuflags.c             |  5 +++
>  lib/eal/arm/rte_power_intrinsics.c     | 55 ++++++++++++++++++++++++--
>  4 files changed, 89 insertions(+), 7 deletions(-)

Fixed release notes, squashed patches and applied, thanks.
  
Feifei Wang Feb. 21, 2023, 2:37 a.m. UTC | #2
> -----邮件原件-----
> 发件人: David Marchand <david.marchand@redhat.com>
> 发送时间: Monday, February 20, 2023 8:07 PM
> 收件人: Feifei Wang <Feifei.Wang2@arm.com>
> 抄送: dev@dpdk.org; david.hunt@intel.com; stephen@networkplumber.org;
> thomas@monjalon.net; nd <nd@arm.com>
> 主题: Re: [PATCH v6 0/2] Enable PMD power management on Arm
> 
> On Mon, Feb 20, 2023 at 9:51 AM Feifei Wang <feifei.wang2@arm.com>
> wrote:
> >
> > For Arm aarch, use WFE instructions to enable PMD power management.
> >
> > Test Results:
> > dynamic instructions over 1sec  without wfe     with wfe        percentage
> > ampere-altra                    6,298,483,712   9,117,624       -99.855%
> > thunderx2                       6,990,909,373   3,247,226       -99.954%
> >
> > When power efficient PMD is enabled by using WFE on Arm, if no pkts
> > received, the instructions that CPU executes is reduced by 99%.
> >
> > Feifei Wang (2):
> >   eal: add 8 bits case for wait scheme
> >   eal: add power mgmt support on Arm
> >
> >  doc/guides/rel_notes/release_23_03.rst |  4 ++
> >  lib/eal/arm/include/rte_pause_64.h     | 32 +++++++++++++--
> >  lib/eal/arm/rte_cpuflags.c             |  5 +++
> >  lib/eal/arm/rte_power_intrinsics.c     | 55 ++++++++++++++++++++++++--
> >  4 files changed, 89 insertions(+), 7 deletions(-)
> 
> Fixed release notes, squashed patches and applied, thanks.
Thanks for the fix.
> 
> 
> --
> David Marchand