public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: file watch question
Date: Fri, 16 Aug 2013 18:08:16 -0400	[thread overview]
Message-ID: <1490880.Q3Wb8I5eeY@x2> (raw)
In-Reply-To: <520E9A69.9030208@magitekltd.com>

On Friday, August 16, 2013 04:32:25 PM LC Bruzenak wrote:
> On 08/16/2013 03:19 PM, LC Bruzenak wrote:
> > The line saying, "Unlike most syscall auditing rules, watches do not
> > impact performance based on the number of rules sent to the kernel" -
> > does this mean that BOTH the "-w" and "syscall" rules have no
> > performance impact?
> 
> Nevermind; I see that the rule in force (with auditctl -l) is the same
> regardless of the way it is specified in the auditctl line.

The -w form is for backward compatibility with the original patch. It also 
turns out to be more concise to type. But auditctl translates it to a syscall 
rule with the -F path or -F dir depending on what it detects the object to be 
at rule loading time. The Syscall form does allow more fine grained control.

The reason it doesn't have performance impact like normal syscall rules is 
because it gets moved to a list that is not evaluated every syscall. A normal 
syscall rule will get evaluated for every syscall because it has to see if the 
syscall number is of interest and then it checks the next rule. All of my 
attempts to measure performance impact of watches showed that its in the cache 
noise.

Last time I measured was about 7 years ago but I don't think anything has 
changed that would affect the old results.

http://people.redhat.com/sgrubb/files/watch-perf.tar.gz

-Steve

      reply	other threads:[~2013-08-16 22:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-16 20:19 file watch question LC Bruzenak
2013-08-16 21:32 ` LC Bruzenak
2013-08-16 22:08   ` Steve Grubb [this message]

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=1490880.Q3Wb8I5eeY@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox