Skip to content

Optimise cache-flushing system call and add iovec variant

Jonathan Austin linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchJonathan Austin
SeriesT-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Optimise cache-flushing system call and add iovec variant

Hi Will,

Quoted 5 lines · Will Deacon

Hello,

This patch series has been sitting on my box for some time, pending benchmark results and analysis.

Quoted 9 lines

The results are that, with the first two patches in this series, we see ~2% improvement in browser benchmark scores, which flush the cache fairly regularly in response to jitting JS code.

The final patch is more of an RFC, since I don't have any software that uses it outside of my toy programs.

All feedback welcome,

For all three patches

The last one was tested with a modified jit that was hacked to use the new API as a direct replacement for the old one (IE no cleverness with delayed flushing/grouping of calls). The performance decrease from using the new call instead of the old one was well within the noise of the tests. We are, however, yet to test the improvement from actually *exploiting* the new mechanism. If there's a positive response to the idea then I can encourage the jit guys to have another look.

Jonny

Quoted 13 lines

Will

Will Deacon (3):
ARM: cacheflush: don't round address range up to nearest page
ARM: cacheflush: don't bother rounding to nearest vma
ARM: cacheflush: add new iovec-based cache flushing system call

  arch/arm/include/asm/cacheflush.h  |  3 +--
  arch/arm/include/uapi/asm/unistd.h |  1 +
  arch/arm/kernel/traps.c            | 49 +++++++++++++++++++++++++++-----------
  3 files changed, 37 insertions(+), 16 deletions(-)