Thread (156 messages) 156 messages, 8 authors, 2021-08-04

Re: [dpdk-dev] [PATCH v7 3/7] eal: add power monitor for multiple events

From: David Hunt <hidden>
Date: 2021-07-07 12:02:18

On 7/7/2021 11:48 AM, Anatoly Burakov wrote:
Use RTM and WAITPKG instructions to perform a wait-for-writes similar to
what UMWAIT does, but without the limitation of having to listen for
just one event. This works because the optimized power state used by the
TPAUSE instruction will cause a wake up on RTM transaction abort, so if
we add the addresses we're interested in to the read-set, any write to
those addresses will wake us up.

Signed-off-by: Konstantin Ananyev <redacted>
Signed-off-by: Anatoly Burakov <redacted>
---

Notes:
     v4:
     - Fixed bugs in accessing the monitor condition
     - Abort on any monitor condition not having a defined callback
     
     v2:
     - Adapt to callback mechanism
Initially I had issues running this as I couldn't see the "rtm" flag in 
/proc/cpuinfo, but adding "tsx=on" to the kernel parameters resolved 
this, and rtm was then available to use. Once this was done, I was then 
able to successfully see power saving when a core was configuired with 
multiple queues.

Tested-by: David Hunt <redacted>


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help