[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZqdTK+i9fH/hxB2A@MiWiFi-R3L-srv>
Date: Mon, 29 Jul 2024 16:30:35 +0800
From: Baoquan He <bhe@...hat.com>
To: Adrian Huang <adrianhuang0701@...il.com>
Cc: Andrey Ryabinin <ryabinin.a.a@...il.com>,
Alexander Potapenko <glider@...gle.com>,
Andrey Konovalov <andreyknvl@...il.com>,
Dmitry Vyukov <dvyukov@...gle.com>,
Vincenzo Frascino <vincenzo.frascino@....com>,
Uladzislau Rezki <urezki@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Christoph Hellwig <hch@...radead.org>, kasan-dev@...glegroups.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Adrian Huang <ahuang12@...ovo.com>, Jiwei Sun <sunjw10@...ovo.com>
Subject: Re: [PATCH 1/1] mm/vmalloc: Combine all TLB flush operations of
KASAN shadow virtual address into one operation
On 07/27/24 at 12:52am, Adrian Huang wrote:
......
> If we combine all TLB flush operations of the KASAN shadow virtual
> address into one operation in the call path
> 'purge_vmap_node()->kasan_release_vmalloc()', the running time of
> drain_vmap_area_work() can be saved greatly. The idea is from the
> flush_tlb_kernel_range() call in __purge_vmap_area_lazy(). And, the
> soft lockup won't not be triggered.
~~~~~~~~~~~
typo
>
> Here is the test result based on 6.10:
>
> [6.10 wo/ the patch]
> 1. ftrace latency profiling (record a trace if the latency > 20s).
> echo 20000000 > /sys/kernel/debug/tracing/tracing_thresh
> echo drain_vmap_area_work > /sys/kernel/debug/tracing/set_graph_function
> echo function_graph > /sys/kernel/debug/tracing/current_tracer
> echo 1 > /sys/kernel/debug/tracing/tracing_on
>
......
> The worst execution time of drain_vmap_area_work() is about 1 second.
>
> Link: https://lore.kernel.org/lkml/ZqFlawuVnOMY2k3E@pc638.lan/
> Fixes: 282631cb2447 ("mm: vmalloc: remove global purge_vmap_area_root rb-tree")
> Signed-off-by: Adrian Huang <ahuang12@...ovo.com>
> Co-developed-by: Uladzislau Rezki (Sony) <urezki@...il.com>
> Signed-off-by: Uladzislau Rezki (Sony) <urezki@...il.com>
> Tested-by: Jiwei Sun <sunjw10@...ovo.com>
> ---
> include/linux/kasan.h | 12 +++++++++---
> mm/kasan/shadow.c | 14 ++++++++++----
> mm/vmalloc.c | 34 ++++++++++++++++++++++++++--------
> 3 files changed, 45 insertions(+), 15 deletions(-)
LGTM,
Reviewed-by: Baoquan He <bhe@...hat.com>
Powered by blists - more mailing lists