linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [RFC] reliability and scalability
Date: Sat, 21 Feb 2004 01:01:46 +0000	[thread overview]
Message-ID: <20040221010146.GD18346@kroah.com> (raw)
In-Reply-To: <40249B59.7080805@sympatico.ca>

On Sat, Feb 07, 2004 at 09:20:06PM +0100, Olaf Hering wrote:
>  On Sat, Feb 07, Greg KH wrote:
> 
> > On Sat, Feb 07, 2004 at 09:57:58AM +0100, Olaf Hering wrote:
> > >  On Sat, Feb 07, Chris Friesen wrote:
> > > 
> > > > Comments, anyone?
> > > 
> > > Better get rid of udevd and keep track of the latest add and remove
> > > SEQNUMs in the database.  unlink the devnodes and symlinks before
> > > creating new ones during add events.
> > 
> > And how would you re-order events in this situation?
> 
> What do you mean with reorder? Maybe I miss the point.

You have to order the events that come in by the seqnum, right?

So if you get a new one, you have to place it in the proper place amoung
all other outstanding events.

> Maybe something like this:
> 
> switch(action)
>         case add:
>                 if (last.add > seqnum)
>                         exit
>                 if (last.remove > seqnum)
>                         exit

exit?  Then do what?  Sit and spin?  You need something persistant to
stick around and figure out what to do next.

And udev is not big at _all_.  On my box it's the tiniest thing running
by a _large_ ammount:

$ size /sbin/udevd 
   text    data     bss     dec     hex filename
   5205      52      20    5277    149d /sbin/udevd

It's still smaller than /bin/true :)

$ size /bin/true 
   text    data     bss     dec     hex filename
   8623     724       0    9347    2483 /bin/true


thanks,

greg k-h


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      parent reply	other threads:[~2004-02-21  1:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-07  8:01 [RFC] reliability and scalability Chris Friesen
2004-02-07  8:57 ` Olaf Hering
2004-02-07  9:49 ` Kay Sievers
2004-02-07 19:30 ` Greg KH
2004-02-07 19:31 ` Greg KH
2004-02-07 20:20 ` Olaf Hering
2004-02-09  3:59 ` Kay Sievers
2004-02-21  1:01 ` Greg KH [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=20040221010146.GD18346@kroah.com \
    --to=greg@kroah.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).