From: Yanfei Xu <yanfei.xu@windriver.com> To: daniel@iogearbox.net, ast@kernel.org, zlim.lnx@gmail.com, catalin.marinas@arm.com, will@kernel.org, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] bpf: avoid unnecessary IPI in bpf_flush_icache Date: Tue, 1 Jun 2021 23:06:24 +0800 [thread overview] Message-ID: <20210601150625.37419-1-yanfei.xu@windriver.com> (raw) Hi, When looking at the IPI counts in /proc/interrupts, there are always IPI1 happened on isolated cpus, even if the cpus had been idle with nohz. However, we should bother these cpus as less as possible. The IPI1 were raised by flush_icache_range in bpf_int_jit_compile(). Futher, the calling of it was introduced in 3b8c9f1cdfc5("arm64: IPI each CPU after invalidating the I-cache for kernel mappings"), then I found the bpf case seems no need this operation. But I'm not sure, and still learning the JIT codes meanwhile. If I am wrong, please fix me, many thanks! Yanfei Xu (1): bpf: avoid unnecessary IPI in bpf_flush_icache arch/arm64/net/bpf_jit_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0
WARNING: multiple messages have this Message-ID (diff)
From: Yanfei Xu <yanfei.xu@windriver.com> To: daniel@iogearbox.net, ast@kernel.org, zlim.lnx@gmail.com, catalin.marinas@arm.com, will@kernel.org, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] bpf: avoid unnecessary IPI in bpf_flush_icache Date: Tue, 1 Jun 2021 23:06:24 +0800 [thread overview] Message-ID: <20210601150625.37419-1-yanfei.xu@windriver.com> (raw) Hi, When looking at the IPI counts in /proc/interrupts, there are always IPI1 happened on isolated cpus, even if the cpus had been idle with nohz. However, we should bother these cpus as less as possible. The IPI1 were raised by flush_icache_range in bpf_int_jit_compile(). Futher, the calling of it was introduced in 3b8c9f1cdfc5("arm64: IPI each CPU after invalidating the I-cache for kernel mappings"), then I found the bpf case seems no need this operation. But I'm not sure, and still learning the JIT codes meanwhile. If I am wrong, please fix me, many thanks! Yanfei Xu (1): bpf: avoid unnecessary IPI in bpf_flush_icache arch/arm64/net/bpf_jit_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2021-06-01 15:07 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-01 15:06 Yanfei Xu [this message] 2021-06-01 15:06 ` [PATCH 0/1] bpf: avoid unnecessary IPI in bpf_flush_icache Yanfei Xu 2021-06-01 15:06 ` [PATCH 1/1] " Yanfei Xu 2021-06-01 15:06 ` Yanfei Xu 2021-06-01 17:20 ` Daniel Borkmann 2021-06-01 17:20 ` Daniel Borkmann 2021-06-01 17:41 ` Will Deacon 2021-06-01 17:41 ` Will Deacon 2021-06-02 11:26 ` Xu, Yanfei 2021-06-02 11:26 ` Xu, Yanfei 2021-06-02 17:26 ` Will Deacon 2021-06-02 17:26 ` Will Deacon 2021-06-03 10:29 ` Xu, Yanfei 2021-06-03 10:29 ` Xu, Yanfei
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210601150625.37419-1-yanfei.xu@windriver.com \ --to=yanfei.xu@windriver.com \ --cc=andrii@kernel.org \ --cc=ast@kernel.org \ --cc=bpf@vger.kernel.org \ --cc=catalin.marinas@arm.com \ --cc=daniel@iogearbox.net \ --cc=john.fastabend@gmail.com \ --cc=kafai@fb.com \ --cc=kpsingh@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=netdev@vger.kernel.org \ --cc=songliubraving@fb.com \ --cc=will@kernel.org \ --cc=yhs@fb.com \ --cc=zlim.lnx@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.