mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RESEND PATCH v5 0/2] x86: Add xsave/xrstor Latency Trace Events and Consuming Script
@ 2022-10-25 12:17 Yi Sun
  2022-10-25 12:17 ` [RESEND PATCH v5 1/2] x86/fpu: Measure the Latency of XSAVE and XRSTOR Yi Sun
  2022-10-25 12:17 ` [RESEND PATCH v5 2/2] tools/testing/fpu: Add script to consume trace log of xsave latency Yi Sun
  0 siblings, 2 replies; 3+ messages in thread
From: Yi Sun @ 2022-10-25 12:17 UTC (permalink / raw)
  To: dave.hansen, tglx, linux-kernel, x86
  Cc: sohil.mehta, ak, ilpo.jarvinen, heng.su, tony.luck, dave.hansen, Yi Sun

This series introduces trace events that can leak the latency of xsave and
xrstor instructions for the x86 platform to tell when XSAVE/XRSTOR are becoming
more or less expensive, and get the RFBM and XINUSE to figure out why.

We conducted extensive internal testing and compared several latency computation
methodologies. We believe it could be improved. Also included in the series is
a script for consuming trace logs that uses sqlite3 to display statistics data
such as max, min, latency, and 97% tail latency.

- Change from v4 to v5:
  - Rebase patch to the most recent tag v6.1-rc2, no conflict.

- Change from v3 to v4:
  - Rebase patch set to the latest tag v6.0-rc3, replacing
    ALTERNATIVE_2 with ALTERNATIVE_3

- Change from v2 to v3:
  - Move the script xsave-latency-trace.sh to folder tools/testing/fpu/
    (Ingo Molnar)

- Change from v1 to v2:
  - Reword the comments. (Laight, David; Mehta, Sohil)
  - Rename all variable 'dtsc' to 'latency'. (Mehta, Sohil)

Yi Sun (2):
  x86/fpu: Measure the Latency of XSAVE and XRSTOR
  tools/testing/fpu: Add script to consume trace log of xsave latency

 arch/x86/include/asm/trace/fpu.h         |  35 ++++
 arch/x86/kernel/fpu/xstate.h             |  49 ++++-
 tools/testing/fpu/xsave-latency-trace.sh | 227 +++++++++++++++++++++++
 3 files changed, 306 insertions(+), 5 deletions(-)
 create mode 100755 tools/testing/fpu/xsave-latency-trace.sh

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-25 12:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 12:17 [RESEND PATCH v5 0/2] x86: Add xsave/xrstor Latency Trace Events and Consuming Script Yi Sun
2022-10-25 12:17 ` [RESEND PATCH v5 1/2] x86/fpu: Measure the Latency of XSAVE and XRSTOR Yi Sun
2022-10-25 12:17 ` [RESEND PATCH v5 2/2] tools/testing/fpu: Add script to consume trace log of xsave latency Yi Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®