Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2015 12:15:50 -0800
From:      John-Mark Gurney <jmg@funkthat.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, Adrian Chadd <adrian@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, Rui Paulo <rpaulo@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>
Subject:   Re: svn commit: r278479 - in head: etc sys/kern
Message-ID:  <20150210201550.GH1953@funkthat.com>
In-Reply-To: <2907775.GXqUUp6Hz6@ralph.baldwin.cx>
References:  <201502092313.t19NDpoS083043@svn.freebsd.org> <1516483.e0EXgdk9ur@ralph.baldwin.cx> <CAJ-Vmomm=vZtaYRXjo-Oyw0cAjYaa1dQHLPPGc4KT6txTuQzRw@mail.gmail.com> <2907775.GXqUUp6Hz6@ralph.baldwin.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote this message on Tue, Feb 10, 2015 at 10:36 -0500:
> > I think devd grows these things because it's easier than teaching the
> > devctl interface to support multiple listeners.
> 
> That wasn't really my question.  My question was if we want distinct streams 
> or if we want want unified stream.  Having a unified stream might very well 
> make sense (and if so we could rename devd to make that more obvious).

The biggested issue that I see w/ using devd as the gateway is that
as we add more events, devd will now have to be woken up for ALL events,
even when the even has no listeners for it...  If we keep adding events,
this will be very bad for laptop battery life...

This is becoming a standard pub/sub type problem, and there is plenty
of research/programs out there that already does this...

As someone mentioned earlier, it seems like using kqueue is starting
to make more sense for this type of thing where various programs can
select what they get woken up for...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150210201550.GH1953>