From owner-svn-src-head@FreeBSD.ORG Tue Feb 10 20:15:51 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A09C3BB; Tue, 10 Feb 2015 20:15:51 +0000 (UTC) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 542AC81; Tue, 10 Feb 2015 20:15:50 +0000 (UTC) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t1AKFoaE034106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 10 Feb 2015 12:15:50 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t1AKFoXs034105; Tue, 10 Feb 2015 12:15:50 -0800 (PST) (envelope-from jmg) Date: Tue, 10 Feb 2015 12:15:50 -0800 From: John-Mark Gurney To: John Baldwin Subject: Re: svn commit: r278479 - in head: etc sys/kern Message-ID: <20150210201550.GH1953@funkthat.com> References: <201502092313.t19NDpoS083043@svn.freebsd.org> <1516483.e0EXgdk9ur@ralph.baldwin.cx> <2907775.GXqUUp6Hz6@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2907775.GXqUUp6Hz6@ralph.baldwin.cx> X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Tue, 10 Feb 2015 12:15:50 -0800 (PST) Cc: "svn-src-head@freebsd.org" , Adrian Chadd , "src-committers@freebsd.org" , Rui Paulo , "svn-src-all@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2015 20:15:51 -0000 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."