From owner-cvs-all Thu Jun 15 22:19:33 2000 Delivered-To: cvs-all@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 31B2C37B74F; Thu, 15 Jun 2000 22:19:25 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (doconnor@cain [203.38.152.97]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id OAA09028; Fri, 16 Jun 2000 14:49:09 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Fri, 16 Jun 2000 14:49:09 +0930 (CST) From: "Daniel O'Connor" To: Marc Slemko Subject: Re: cvs commit: src/sys/kern uipc_socket.c uipc_socket2.c src/sy Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, Nate Williams , Alfred Perlstein , "Daniel C. Sobral" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 16-Jun-00 Marc Slemko wrote: > On Fri, 16 Jun 2000, Daniel O'Connor wrote: > > Well, my naivity abounds, but I would have thought it was because you do an > > accept() which returns and then immediatly you go back to waiting on > > select(). > > Why should that be expensive? Because you go into and out of the kernel twice? If you know a header is in the buffer already you can do accept() then read().. > I just don't see what is that expensive about having to do an > accept() then a select()-like call. In any case, if you are looking > just for code that benchmarks well on simple static content, then the > only answer is to stick the server (well, or a caching mini-server that > only handles simple requests and punts anything it doesn't grok down to > userland) in the kernel. Then you can come pretty darn close to > saturating the bus (well, on other OSes; assuming FreeBSD has no other > bottlenecks) before you run out of CPU. That would be a nice goal but I think the socket option is a nice start... --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message