[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230418110919.221578-1-eiichi.tsukata@nutanix.com>
Date: Tue, 18 Apr 2023 11:09:17 +0000
From: Eiichi Tsukata <eiichi.tsukata@...anix.com>
To: paul@...l-moore.com, eparis@...hat.com,
linux-kernel@...r.kernel.org, audit@...r.kernel.org
Cc: Eiichi Tsukata <eiichi.tsukata@...anix.com>
Subject: [PATCH v2 0/2] audit: syscall audit optimization (> +6% faster)
This patchset is an optimization of auditd_test_task() function.
As is described in Patch 1, it improves the performance of syscall
auditing.
Benchmarks
==========
Run the following micro benchmarks:
(1) dd:
dd if=/dev/zero of=/dev/null bs=1 count=5M
(2) UnixBench syscall:
./Run syscall -i 10 -c 1
With rule:
-a never,exit -F arch=b64 -S uname
Results:
(1) dd
Base line : 2.572 sec
/w this patch: 2.418 sec (6.3% faster)
(2) UnixBench syscall Index Score
Base line : 860
/w this patch: 953 (10.8% faster)
This patchset consists of the following parts:
Patch 1: add global auditd_pid to make auditd_test_task() faster
Patch 2: cleanup: replace auditd_conn.pid with auditd_pid
v1 -> v2:
- Use global auditd_pid intead of pid.is_auditd
- Add UnixBench syscall benchmark
v1: https://lore.kernel.org/audit/20230414031325.82840-1-eiichi.tsukata@nutanix.com/
Eiichi Tsukata (2):
audit: add global auditd_pid to make auditd_test_task() faster
audit: replace auditd_conn.pid with auditd_pid
kernel/audit.c | 61 +++++++++++++++++---------------------------------
kernel/audit.h | 4 +++-
2 files changed, 24 insertions(+), 41 deletions(-)
--
2.39.2
Powered by blists - more mailing lists