From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 16 10:26:13 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04CC737B401 for ; Mon, 16 Jun 2003 10:26:13 -0700 (PDT) Received: from Princeton.EDU (postoffice02.Princeton.EDU [128.112.130.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30A5243F3F for ; Mon, 16 Jun 2003 10:26:11 -0700 (PDT) (envelope-from yruan@cs.princeton.edu) Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.12.9/8.12.9) with ESMTP id h5GHQAar009712 for ; Mon, 16 Jun 2003 13:26:10 -0400 (EDT) Received: from cs.princeton.edu (targe.CS.Princeton.EDU [128.112.139.194]) (authenticated bits=0)h5GHQ9NX006882 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Mon, 16 Jun 2003 13:26:09 -0400 (EDT) Message-ID: <3EEDFC43.BD80B098@cs.princeton.edu> Date: Mon, 16 Jun 2003 13:20:03 -0400 From: Yaoping Ruan X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Subject: Kernel Support for System Call Performance Monitoring X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2003 17:26:13 -0000 We have been working on improving Web server performance on FreeBSD, and think you may be interested in the results and techniques we used. Specifically, we focus on the SpecWeb99 benchmark and the Flash Web Server, and have roughly quadrupled its performance. We did this by adding support for a very low-cost kernel performance monitoring system, which allowed us to find and fix a number of bad interactions between the server and the OS. We additionally augmented one of the system calls, sendfile, to be more useful for this kind of server. We think that our observations may be useful for other servers, and may present opportunities for performance improvement in FreeBSD. A paper describing our system can be found at http://www.cs.princeton.edu/~yruan/DeBox and we can provide the patches we made if anyone's interested. We welcome any comments and feedback that you have. Sincerely - Yaoping yruan@cs.princeton.edu