From owner-freebsd-hackers Mon Nov 20 21:49:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id 2C37D37B479 for ; Mon, 20 Nov 2000 21:49:53 -0800 (PST) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13y6It-0004Tx-00; Tue, 21 Nov 2000 05:49:15 +0000 Date: Tue, 21 Nov 2000 05:49:15 +0000 From: Tony Finch To: Maxime Henrion Cc: freebsd-hackers@freebsd.org Subject: Re: kqueue()/kevent(), select() and poll() Message-ID: <20001121054915.G54653@hand.dotat.at> References: <20001118150445.A260@nebula.cybercable.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001118150445.A260@nebula.cybercable.fr> Organization: Covalent Technologies, Inc Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Maxime Henrion wrote: > >I was wondering if it was reasonnable to implement the select() and >poll() system calls as kqueue()/kevent() wrappers. This would make >any application using these system calls benefit from the performance >improvements of the new kernel thread. The performance problem with select and poll that kqueue fixes is that kqueue doesn't require you to notify the kernel of every event you are interested in every time you call it. This is an API problem, not an implementation problem, so you cannot fix it by changing the implementation. Tony. -- f.a.n.finch dot@dotat.at fanf@covalent.net Chad for President! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message