Re: poll() vs select()

1999-07-06 Thread John Polstra
Brian F. Feldman wrote: > On Tue, 6 Jul 1999, John Polstra wrote: > >> In article , >> >> The application itself has to get involved if it wants to do async >> name lookups, or async anything else, for that matter. Suppose you >> do have an async thread to do hostname lookups as you propose. Wh

Re: poll() vs select()

1999-07-06 Thread Justin C. Walker
> From: John Polstra > Date: 1999-07-06 09:36:51 -0700 > To: arc...@whistle.com > Subject: Re: poll() vs select() > Cc: hack...@freebsd.org > In-reply-to: <199907050103.saa51...@bubba.whistle.com> > Delivered-to: freebsd-hackers@freebsd.org > X-Loop: FreeBSD.OR

Re: poll() vs select()

1999-07-06 Thread Brian F. Feldman
On Tue, 6 Jul 1999, John Polstra wrote: > In article , > > The application itself has to get involved if it wants to do async > name lookups, or async anything else, for that matter. Suppose you > do have an async thread to do hostname lookups as you propose. What > is the application going to

Re: poll() vs select()

1999-07-06 Thread Jonathan Lemon
In article you write: >In article <199907050103.saa51...@bubba.whistle.com>, >Archie Cobbs wrote: >> >> A new, faster event notification system would be great. But don't forget >> to include *all* events, not just file descriptor readability/writability. > >Yes! Yes! Yes! (I agree.) There

Re: poll() vs select()

1999-07-06 Thread John Polstra
In article , Brian F. Feldman wrote: > On Sun, 4 Jul 1999, Archie Cobbs wrote: > > > A new, faster event notification system would be great. But don't forget > > to include *all* events, not just file descriptor readability/writability. > > I.e., signal delivery, child exit notification, maybe ev

Re: poll() vs select()

1999-07-06 Thread John Polstra
Brian F. Feldman wrote: > On Tue, 6 Jul 1999, John Polstra wrote: > >> In article <[EMAIL PROTECTED]>, >> >> The application itself has to get involved if it wants to do async >> name lookups, or async anything else, for that matter. Suppose you >> do have an async thread to do hostname lookups

Re: poll() vs select()

1999-07-06 Thread Justin C. Walker
> From: John Polstra <[EMAIL PROTECTED]> > Date: 1999-07-06 09:36:51 -0700 > To: [EMAIL PROTECTED] > Subject: Re: poll() vs select() > Cc: [EMAIL PROTECTED] > In-reply-to: <[EMAIL PROTECTED]> > Delivered-to: [EMAIL PROTECTED] > X-Loop: FreeBSD.ORG > Organiza

Re: poll() vs select()

1999-07-06 Thread John Polstra
In article <199907050103.saa51...@bubba.whistle.com>, Archie Cobbs wrote: > > A new, faster event notification system would be great. But don't forget > to include *all* events, not just file descriptor readability/writability. Yes! Yes! Yes! (I agree.) John -- John Polstra

Re: poll() vs select()

1999-07-06 Thread Brian F. Feldman
On Tue, 6 Jul 1999, John Polstra wrote: > In article <[EMAIL PROTECTED]>, > > The application itself has to get involved if it wants to do async > name lookups, or async anything else, for that matter. Suppose you > do have an async thread to do hostname lookups as you propose. What > is the a

Re: poll() vs select()

1999-07-06 Thread Jonathan Lemon
In article [EMAIL PROTECTED]> you write: >In article <[EMAIL PROTECTED]>, >Archie Cobbs <[EMAIL PROTECTED]> wrote: >> >> A new, faster event notification system would be great. But don't forget >> to include *all* events, not just file descriptor readability/writability. > >Yes! Yes! Yes! (I

Re: poll() vs select()

1999-07-06 Thread John Polstra
In article <[EMAIL PROTECTED]>, Brian F. Feldman <[EMAIL PROTECTED]> wrote: > On Sun, 4 Jul 1999, Archie Cobbs wrote: > > > A new, faster event notification system would be great. But don't forget > > to include *all* events, not just file descriptor readability/writability. > > I.e., signal deli

Re: poll() vs select()

1999-07-06 Thread John Polstra
In article <[EMAIL PROTECTED]>, Archie Cobbs <[EMAIL PROTECTED]> wrote: > > A new, faster event notification system would be great. But don't forget > to include *all* events, not just file descriptor readability/writability. Yes! Yes! Yes! (I agree.) John -- John Polstra

Re: poll() vs select()

1999-07-04 Thread Brian F. Feldman
On Sun, 4 Jul 1999, Archie Cobbs wrote: > Christopher Sedore writes: > > A new, faster event notification system would be great. But don't forget > to include *all* events, not just file descriptor readability/writability. > I.e., signal delivery, child exit notification, maybe even support for >

Re: poll() vs select()

1999-07-04 Thread Archie Cobbs
Christopher Sedore writes: > > Actually.. select() has three copyins and three copyouts per call. poll() > > has one copyin and one copyout per call. > > > > Now what I particular like is the event queue system that David Filo put > > together for Yahoo. In a nutshell you create a queue (a fd), a

Re: poll() vs select()

1999-07-04 Thread Brian F. Feldman
On Sun, 4 Jul 1999, Archie Cobbs wrote: > Christopher Sedore writes: > > A new, faster event notification system would be great. But don't forget > to include *all* events, not just file descriptor readability/writability. > I.e., signal delivery, child exit notification, maybe even support for

Re: poll() vs select()

1999-07-04 Thread Archie Cobbs
Christopher Sedore writes: > > Actually.. select() has three copyins and three copyouts per call. poll() > > has one copyin and one copyout per call. > > > > Now what I particular like is the event queue system that David Filo put > > together for Yahoo. In a nutshell you create a queue (a fd),

Re: poll() vs select()

1999-07-04 Thread Christopher Sedore
On Sun, 4 Jul 1999, Peter Wemm wrote: > "Brian F. Feldman" wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > In article > > > 0...@crb.crb-web.com> you write: > > > >now supports the select() and poll() system calls. My question is > > > >really > one > > > >of usage.

Re: poll() vs select()

1999-07-04 Thread Christopher Sedore
On Sun, 4 Jul 1999, Peter Wemm wrote: > "Brian F. Feldman" wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > In article [EMAIL PROTECTED]> you write: > > > >now supports the select() and poll() system calls. My question is really > one > > > >of usage. Why would one us

Re: poll() vs select()

1999-07-04 Thread Zach Brown
> But poll() copies in HUGE amounts of data compared to the few bytes for > thousands of FDs that select does. but the size of the select() mask is dependant on the highest numbered fd that we care about, rather than the number of fds we actually care about. this becomes highly uncool in a mondo

Re: poll() vs select()

1999-07-04 Thread Zach Brown
On Sun, 4 Jul 1999, Peter Wemm wrote: > Now what I particular like is the event queue system that David Filo put > together for Yahoo. In a nutshell you create a queue (a fd), and then > register the descriptors you want to monitor with the queue. You then run > an accept()-like loop where the ac

Re: poll() vs select()

1999-07-04 Thread Zach Brown
> But poll() copies in HUGE amounts of data compared to the few bytes for > thousands of FDs that select does. but the size of the select() mask is dependant on the highest numbered fd that we care about, rather than the number of fds we actually care about. this becomes highly uncool in a mondo

Re: poll() vs select()

1999-07-04 Thread Zach Brown
On Sun, 4 Jul 1999, Peter Wemm wrote: > Now what I particular like is the event queue system that David Filo put > together for Yahoo. In a nutshell you create a queue (a fd), and then > register the descriptors you want to monitor with the queue. You then run > an accept()-like loop where the a

Re: poll() vs select()

1999-07-03 Thread Greg Lehey
On Saturday, 3 July 1999 at 23:31:20 -0500, Jonathan Lemon wrote: > On Jul 07, 1999 at 01:51:28PM +0930, Greg Lehey wrote: >> On Saturday, 3 July 1999 at 23:10:29 -0500, Jonathan Lemon wrote: >>> On Jul 07, 1999 at 12:04:35PM +0800, Peter Wemm wrote: Is there interest in doing something lik

Re: poll() vs select()

1999-07-03 Thread Greg Lehey
On Saturday, 3 July 1999 at 23:31:20 -0500, Jonathan Lemon wrote: > On Jul 07, 1999 at 01:51:28PM +0930, Greg Lehey wrote: >> On Saturday, 3 July 1999 at 23:10:29 -0500, Jonathan Lemon wrote: >>> On Jul 07, 1999 at 12:04:35PM +0800, Peter Wemm wrote: Is there interest in doing something like

Re: poll() vs select()

1999-07-03 Thread Brian F. Feldman
On Sun, 4 Jul 1999, Peter Wemm wrote: > "Brian F. Feldman" wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > In article [EMAIL PROTECTED]> you write: > > > >now supports the select() and poll() system calls. My question is really > one > > > >of usage. Why would one us p

Re: poll() vs select()

1999-07-03 Thread Brian F. Feldman
On Sun, 4 Jul 1999, Peter Wemm wrote: > "Brian F. Feldman" wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > In article > > > 0...@crb.crb-web.com> you write: > > > >now supports the select() and poll() system calls. My question is > > > >really > one > > > >of usage. W

Re: poll() vs select()

1999-07-03 Thread Jonathan Lemon
On Jul 07, 1999 at 01:51:28PM +0930, Greg Lehey wrote: > On Saturday, 3 July 1999 at 23:10:29 -0500, Jonathan Lemon wrote: > > On Jul 07, 1999 at 12:04:35PM +0800, Peter Wemm wrote: > >> Is there interest in doing something like this in general? > > > > YES! As a matter of fact, I've done someth

Re: poll() vs select()

1999-07-03 Thread Jonathan Lemon
On Jul 07, 1999 at 01:51:28PM +0930, Greg Lehey wrote: > On Saturday, 3 July 1999 at 23:10:29 -0500, Jonathan Lemon wrote: > > On Jul 07, 1999 at 12:04:35PM +0800, Peter Wemm wrote: > >> Is there interest in doing something like this in general? > > > > YES! As a matter of fact, I've done somethi

Re: poll() vs select()

1999-07-03 Thread Greg Lehey
On Saturday, 3 July 1999 at 23:10:29 -0500, Jonathan Lemon wrote: > On Jul 07, 1999 at 12:04:35PM +0800, Peter Wemm wrote: >> "Brian F. Feldman" wrote: >>> On Fri, 2 Jul 1999, Jonathan Lemon wrote: >>> In article > [EMAIL PROTECTED]> you write: > now supports the select() and poll()

Re: poll() vs select()

1999-07-03 Thread Greg Lehey
On Saturday, 3 July 1999 at 23:10:29 -0500, Jonathan Lemon wrote: > On Jul 07, 1999 at 12:04:35PM +0800, Peter Wemm wrote: >> "Brian F. Feldman" wrote: >>> On Fri, 2 Jul 1999, Jonathan Lemon wrote: >>> In article > 0...@crb.crb-web.com> you write: > now supports the select() and poll(

Re: poll() vs select()

1999-07-03 Thread Jonathan Lemon
On Jul 07, 1999 at 12:04:35PM +0800, Peter Wemm wrote: > "Brian F. Feldman" wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > In article [EMAIL PROTECTED]> you write: > > > >now supports the select() and poll() system calls. My question is really > one > > > >of usage. Wh

Re: poll() vs select()

1999-07-03 Thread Jonathan Lemon
On Jul 07, 1999 at 12:04:35PM +0800, Peter Wemm wrote: > "Brian F. Feldman" wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > In article > > > 0...@crb.crb-web.com> you write: > > > >now supports the select() and poll() system calls. My question is > > > >really > one > >

Re: poll() vs select()

1999-07-03 Thread Peter Wemm
"Brian F. Feldman" wrote: > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > In article you write: > > >now supports the select() and poll() system calls. My question is really one > > >of usage. Why would one us poll() over select()? Is select eventually go ing > > >to go away for so

Re: poll() vs select()

1999-07-03 Thread Peter Wemm
"Brian F. Feldman" wrote: > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > In article you write: > > >now supports the select() and poll() system calls. My question is really one > > >of usage. Why would one us poll() over select()? Is select eventually go ing > > >to go away for som

Re: poll() vs select()

1999-07-03 Thread Wes Peters
"Brian F. Feldman" wrote: > > On Sat, 3 Jul 1999, Jonathan Lemon wrote: > > > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > > As for new code, use whichever you are comfortable with. Personally, I > > > > would recommend p

Re: poll() vs select()

1999-07-03 Thread Wes Peters
"Brian F. Feldman" wrote: > > On Sat, 3 Jul 1999, Jonathan Lemon wrote: > > > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > > As for new code, use whichever you are comfortable with. Personally, I > > > > would recommend po

Re: poll() vs select()

1999-07-03 Thread Alfred Perlstein
On Sat, 3 Jul 1999, Jonathan Lemon wrote: > On Jul 07, 1999 at 11:27:57AM -0400, Brian F. Feldman wrote: > > On Sat, 3 Jul 1999, Jonathan Lemon wrote: > > > > > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > > > > As for

Re: poll() vs select()

1999-07-03 Thread Alfred Perlstein
On Sat, 3 Jul 1999, Jonathan Lemon wrote: > On Jul 07, 1999 at 11:27:57AM -0400, Brian F. Feldman wrote: > > On Sat, 3 Jul 1999, Jonathan Lemon wrote: > > > > > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > > > > As for n

Re: poll() vs select()

1999-07-03 Thread Jonathan Lemon
On Jul 07, 1999 at 11:27:57AM -0400, Brian F. Feldman wrote: > On Sat, 3 Jul 1999, Jonathan Lemon wrote: > > > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > > As for new code, use whichever you are comfortable with. Person

Re: poll() vs select()

1999-07-03 Thread Jonathan Lemon
On Jul 07, 1999 at 11:27:57AM -0400, Brian F. Feldman wrote: > On Sat, 3 Jul 1999, Jonathan Lemon wrote: > > > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > > > As for new code, use whichever you are comfortable with. Persona

Re: poll() vs select()

1999-07-03 Thread Brian F. Feldman
On Sat, 3 Jul 1999, Jonathan Lemon wrote: > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > As for new code, use whichever you are comfortable with. Personally, I > > > would recommend poll(), since it provides some added functi

Re: poll() vs select()

1999-07-03 Thread Brian F. Feldman
On Sat, 3 Jul 1999, Jonathan Lemon wrote: > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > As for new code, use whichever you are comfortable with. Personally, I > > > would recommend poll(), since it provides some added functio

Re: poll() vs select()

1999-07-03 Thread Jonathan Lemon
On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > poll() is faster (it doesn't have to do bit twiddling), and it's interface > > is cleaner (it can report invalid fd's, something select() can't do). As > > its functionality is a superset

Re: poll() vs select()

1999-07-03 Thread Jonathan Lemon
On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > poll() is faster (it doesn't have to do bit twiddling), and it's interface > > is cleaner (it can report invalid fd's, something select() can't do). As > > its functionality is a superset o

Re: poll() vs select()

1999-07-02 Thread Brian F. Feldman
On Fri, 2 Jul 1999, Jonathan Lemon wrote: > In article >[EMAIL PROTECTED]> >you write: > >now supports the select() and poll() system calls. My question is really one > >of usage. Why would one us poll() over select()? Is select eventually going > >to go away for some reason? > > select()

Re: poll() vs select()

1999-07-02 Thread Brian F. Feldman
On Fri, 2 Jul 1999, Jonathan Lemon wrote: > In article > > you write: > >now supports the select() and poll() system calls. My question is really one > >of usage. Why would one us poll() over select()? Is select eventually going > >to go away for some reason? > > select() as a user-level

Re: poll() vs select()

1999-07-02 Thread Jonathan Lemon
In article [EMAIL PROTECTED]> you write: >now supports the select() and poll() system calls. My question is really one >of usage. Why would one us poll() over select()? Is select eventually going >to go away for some reason? select() as a user-level call will never go away; there is a larg

Re: poll() vs select()

1999-07-02 Thread Jonathan Lemon
In article you write: >now supports the select() and poll() system calls. My question is really one >of usage. Why would one us poll() over select()? Is select eventually going >to go away for some reason? select() as a user-level call will never go away; there is a large base of code that

poll() vs select()

1999-07-02 Thread Wayne Cuddy
I am struggling through understanding device drivers under freebsd. I have nice book and linux device drivers and some older ones on the UNIX device drivers but nothing seems to match perfectly with freebsd... So stay tuned for more questions Correct me if I am wrong... After reading the in

poll() vs select()

1999-07-02 Thread Wayne Cuddy
I am struggling through understanding device drivers under freebsd. I have nice book and linux device drivers and some older ones on the UNIX device drivers but nothing seems to match perfectly with freebsd... So stay tuned for more questions Correct me if I am wrong... After reading the ins