linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [RFC] network devices generating uevents?
Date: Sun, 23 Nov 2008 06:32:49 +0000	[thread overview]
Message-ID: <20081122223249.4be03e4e@extreme> (raw)
In-Reply-To: <20081121234110.22b47154@extreme>

On Sun, 23 Nov 2008 03:13:29 +0100
Marcel Holtmann <marcel@holtmann.org> wrote:

> Hi Kay,
> 
> >> Perhaps the following would make it easier for applications to
> >> track network device events without having to use netlink.
> >
> > Sure, that might be useful.
> >
> > These events can not happen at a high frequency, at any time, right?
> > We are sure that things like UP/DOWN/CHANGE can not happen at a high
> > frequency, maybe in some failure situation?
> >
> > Uevents are pretty expensive, every single of them may fork a
> > /sbin/hotplug process, or a udev event process, regardless if anybody
> > is listening to these events or not.
> >
> > We can do that only if we can be sure, that there are never things
> > like "storms of events", which would cause a pretty high system load,
> > and can even crash non-udev systems with out-of-memory, caused by the
> > stateless non-managed (disabled by udev) /sbin/hotplug scripts.
> 
> I was looking into the same thing the other day. And just getting the  
> interface up/down events via uevent is pretty useful. I am also  
> interested in getting the carrier signal of Ethernet cards via a  
> CHANGE event.
> 
> If you look at the RTNL messages, it doesn't happen that often, but  
> the NEWLINK messages are maybe a little bit too much and we should  
> restrict it to event that really matter. So up/down are user triggered  
> event normally. So that should be safe. I would be a little bit  
> worried about the CHANGE event. Here we might wanna restrict it to a  
> subset of possible changes inside the network device.
> 
> Regards
> 
> Marcel
> 

The events are carrier events are sampled by the linkwatch mechanism already, to eliminate
too active bouncing. The other events only happen when administrator does
something like add new device or take it on/off line.

  parent reply	other threads:[~2008-11-23  6:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-22  7:41 [RFC] network devices generating uevents? Stephen Hemminger
2008-11-22 14:08 ` Kay Sievers
2008-11-22 19:22 ` Karl O. Pinc
2008-11-23  2:13 ` Marcel Holtmann
2008-11-23  6:32 ` Stephen Hemminger [this message]
2008-11-23 16:13 ` Kay Sievers
2008-11-24 19:45   ` [PATCH] netdev: generate kobject uevent on network events Stephen Hemminger
2008-11-24 19:55     ` Kay Sievers
2008-11-24 20:06       ` Stephen Hemminger
2008-11-25  8:39         ` David Miller
2008-11-24 20:06     ` Ben Hutchings
2008-11-24 23:03       ` [PATCH] netdev: generate kobject uevent on network state Stephen Hemminger
2008-11-25  3:08         ` [PATCH] netdev: generate kobject uevent on network state transitions Kay Sievers
2008-11-25  3:51         ` Marcel Holtmann
2008-11-25  4:14           ` [PATCH] netdev: generate kobject uevent on network state Stephen Hemminger
2008-11-25  9:09             ` David Miller
2008-11-26  5:24               ` [PATCH] netdev: generate kobject uevent on network state transitions Marcel Holtmann
2008-11-26 12:09                 ` Kay Sievers

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=20081122223249.4be03e4e@extreme \
    --to=shemminger@vyatta.com \
    --cc=linux-hotplug@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).