From owner-freebsd-current Fri Sep 17 19:50: 5 1999 Delivered-To: freebsd-current@freebsd.org Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (Postfix) with ESMTP id C86821551C for ; Fri, 17 Sep 1999 19:50:00 -0700 (PDT) (envelope-from jwd@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.8]) by lamb.sas.com (8.9.3/8.9.1) with SMTP id WAA21866; Fri, 17 Sep 1999 22:49:59 -0400 (EDT) Received: from bb01f39.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA22380; Fri, 17 Sep 1999 22:49:29 -0400 Received: (from jwd@localhost) by bb01f39.unx.sas.com (8.9.1/8.9.1) id WAA25039; Fri, 17 Sep 1999 22:49:29 -0400 (EDT) (envelope-from jwd) From: "John W. DeBoskey" Message-Id: <199909180249.WAA25039@bb01f39.unx.sas.com> Subject: Re: An FS question perhaps... non blocking I/O. In-Reply-To: From Poul-Henning Kamp at "Sep 17, 1999 6: 2:38 pm" To: freebsd-current@freebsd.org Date: Fri, 17 Sep 1999 22:49:29 -0400 (EDT) Cc: phk@critter.freebsd.dk (Poul-Henning Kamp) X-Mailer: ELM [version 2.4ME+ PL43 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In message , John Polstra writes: > > >> ugh, why aren't you extending poll to work on files and directories to > >> get this info?? it would make MUCH more sense to extend poll to do this.. > >> > >> any specific reason why it wasn't done this way? > > > >Yes. Last time I checked, our CVS repository contained 50,000 files > >in 13,000 directories. Somehow the thought of a 63,000-element pollfd > >array leaves me cold. > > Sounds like something Bruce would do :-) He can try it on the repository here: $ find . -type d | wc -l 8764 $ find . -type f | wc -l 586382 $ It would be one expensive call with that many elements to scan... > > - -- > Poul-Henning Kamp FreeBSD coreteam member > phk@FreeBSD.ORG "Real hackers run -current on their laptop." > FreeBSD -- It will take a long time before progress goes too far! > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > > ------------------------------ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message