All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Helsley <matthltc@us.ibm.com>
To: Paul Jackson <pj@sgi.com>
Cc: Erik Jacobson <erikj@sgi.com>,
	LKML <linux-kernel@vger.kernel.org>,
	pagg@oss.sgi.com, "Chandra S. Seetharaman" <sekharan@us.ibm.com>
Subject: Re: [PATCH 1/3] Process Notification / pnotify
Date: Mon, 03 Oct 2005 16:19:26 -0700	[thread overview]
Message-ID: <1128381567.12346.2569.camel@stark> (raw)
In-Reply-To: <20051003124918.2a65ef41.pj@sgi.com>

On Mon, 2005-10-03 at 12:49 -0700, Paul Jackson wrote:
> Hmmm ... I notice with interest two notification patches posted in
> the last few days to lkml:
> 
>   Matthew Helsley's Process Events Connector (posted 28 Sep 2005)
>   Erik Jacobson's pnotify (posted 3 Oct 2005)
> 
> I suspect Matthew and Erik will both instantly hate me for asking, but
> does it make sense to integrate these two?
> 
> If I understand these two proposals correctly:
> 
>     Helsley adds hooks in fork, exec, id change, and exit, to pass
>     events to userspace.
> 
>     Jacobson adds hooks in fork, exec and exit, to pass events to
>     kernel routines and loadable modules.
> 
> Perhaps, just brainstorming here, it would make sense for Halsley to
> register with pnotify instead of adding his own hooks in parallel.
> This presumes that pnotify is accepted into the kernel, and that
> pnotify adds the id change hook that Helsley requires.

Paul,

	pnotify is extreme overkill for the process events connector. The
per-task subscriber lists, data, inheritance of those lists, tasklist
locking, and iteration over the lists are all overhead compared to the
process events connector patch.

	For the process events connector it makes more sense to have a global
list of subscribers interested all tasks. If there are M kernel modules
interested in getting events for all N tasks this would save space
proportional to M*N compared to pnotify. Of course this means the
elements of this list could not have per-task data.

	I think per-task data should be split out from pnotify and submitted as
a separate system used by pnotify. Maybe with a *_PER_TASK API similar
to *_PER_CPU.

Cheers,
	-Matt Helsley


      reply	other threads:[~2005-10-04  0:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03 18:46 [PATCH 1/3] Process Notification / pnotify Erik Jacobson
2005-10-03 18:51 ` [PATCH 2/3] Process Notification / pnotify user: keyrings Erik Jacobson
2005-10-03 19:02   ` [PATCH 3/3] Process Notification / pnotify user: Job Erik Jacobson
2005-10-04 15:34     ` serue
2005-10-04 15:42       ` Erik Jacobson
2005-10-04 16:03       ` Erik Jacobson
2005-10-03 19:49 ` [PATCH 1/3] Process Notification / pnotify Paul Jackson
2005-10-03 23:19   ` Matt Helsley [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=1128381567.12346.2569.camel@stark \
    --to=matthltc@us.ibm.com \
    --cc=erikj@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pagg@oss.sgi.com \
    --cc=pj@sgi.com \
    --cc=sekharan@us.ibm.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 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.