linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Hockin <thockin@hockin.org>
To: bhards@bigpond.net.au (Brad Hards)
Cc: thockin@hockin.org (Tim Hockin),
	greearb@candelatech.com (Ben Greear),
	linux-kernel@vger.kernel.org (linux-kernel mailing list),
	cgl_discussion@osdl.org (cgl_discussion mailing list),
	evlog-developers@lists.sourceforge.net (evlog mailing list)
Subject: Re: alternate event logging proposal
Date: Tue, 24 Sep 2002 18:38:22 -0700 (PDT)	[thread overview]
Message-ID: <200209250138.g8P1cMq24971@www.hockin.org> (raw)
In-Reply-To: <200209251114.53657.bhards@bigpond.net.au> from "Brad Hards" at Sep 25, 2002 11:14:53 AM

> To what level would you see this going?

Not sure - someone talked about receiving all sorts of device events.
Certainly do-able, but it may be desirable to really limit the domain.

> I'm currently doing some documentation work on the input subsystem, and it 
> produces events (/dev/input/eventX) for every mouse movement, every key press 
> (and release), etc. Now most of the application interested in those events 

So I'd say this level of heavy traffic probably deserves it's own event
mechanism that is more lightweight than eventd.  The more generic it is, the
more each event costs (currently O(n) - 1 regex comparison for each
client/config).  Putting high volume mouse/kb events would likely suck.

> > True, and if a dev_event file were created, I'd consider doing it that way.
> > But in that case it's easier for apps to talk to eventd (nee acpid) and get
> > only the messages they want.

> I think that the eventd advantage is that it is easy to do integration with 
> non-event aware apps. Example: eventd re-writes the config file and SIGHUPs 
> the application.

This eventd I'm speaking of is what currently exists as acpid.  It reads
ACPI events and does just that - runs some user-defined handlers and alerts
processes on a UNIX socket.

It does make it possible to do things like not modify DHCP client at all,
and just thump it with a HUP.  It also means everyone needs to be running
eventd.  And then you still have the 'need-an-edge' problem.  If DHCP starts
and hangs because it can't find the network (assume an unplugged NIC),
nothing is going to come along and tell it there is no link because there
was no edge.

By making something like (just for argument) /netdevfs/eth0/link, dhcp could
read that, find a "0" and go to sleep on a poll() of that same fd.  But you
need to modify DHCP.

Advantages and disadvantages to all models.  Which is why I brought it up
for debate.  IFF it is even attainable for 2.5.x.  It certainly is for just
netif style events.  On a broader scope?  Maybe not.  Another drawback of
the generic event file is that you now have a lot more people to please with
a generic enough protocol.

Tim

  reply	other threads:[~2002-09-25  1:33 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-24  1:54 [PATCH-RFC} 3 of 4 - New problem logging macros, plus template generation Larry Kessler
2002-09-24  2:12 ` Jeff Garzik
2002-09-24  5:47   ` Rusty Russell
2002-09-24  6:05     ` Jeff Garzik
2002-09-24  7:06       ` Rusty Russell
2002-09-24  7:23         ` Jeff Garzik
2002-09-24  7:30           ` Rusty Russell
2002-09-24 19:48             ` alternate event logging proposal Jeff Garzik
2002-09-24 19:57               ` Chris Friesen
2002-09-24 20:03                 ` Jeff Garzik
2002-09-24 20:54                   ` Tim Hockin
2002-09-24 22:32                     ` Brad Hards
2002-09-24 23:31                       ` Jeff Garzik
2002-09-24 23:37                         ` Brad Hards
2002-09-24 23:59                           ` Tim Hockin
2002-09-24 23:38                         ` Tim Hockin
2002-09-25  0:09                           ` Ben Greear
2002-09-25  0:47                             ` Tim Hockin
2002-09-25  1:14                               ` Brad Hards
2002-09-25  1:38                                 ` Tim Hockin [this message]
2002-09-24 20:09                 ` Jeff Garzik
2002-09-24 20:27                   ` [evlog-dev] " Larry Kessler
2002-09-24 20:35                     ` Jeff Garzik
2002-09-24 21:11                       ` Larry Kessler
2002-09-24 21:26                         ` Jeff Garzik
2002-09-25  0:15                           ` Larry Kessler
2002-09-24 21:27                         ` Horst von Brand
2002-09-24 21:50                           ` Larry Kessler
2002-09-25 14:44                 ` Lars Marowsky-Bree
2002-09-24 20:54               ` [evlog-dev] " Daniel E. F. Stekloff
2002-09-24 21:04                 ` Jeff Garzik
2002-09-30 22:43                 ` Pavel Machek

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=200209250138.g8P1cMq24971@www.hockin.org \
    --to=thockin@hockin.org \
    --cc=bhards@bigpond.net.au \
    --cc=cgl_discussion@osdl.org \
    --cc=evlog-developers@lists.sourceforge.net \
    --cc=greearb@candelatech.com \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).