From owner-freebsd-performance@FreeBSD.ORG Mon Apr 23 22:42:00 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A4E916A408 for ; Mon, 23 Apr 2007 22:42:00 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1208C13C45B for ; Mon, 23 Apr 2007 22:42:00 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 904AC470A0; Mon, 23 Apr 2007 18:41:59 -0400 (EDT) Date: Mon, 23 Apr 2007 23:41:59 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Stefan Lambrev In-Reply-To: <462B8898.5090306@FreeBSD-BG.org> Message-ID: <20070423233713.M58942@fledge.watson.org> References: <462A31A9.5080207@FreeBSD-BG.org> <462B8898.5090306@FreeBSD-BG.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-performance@freebsd.org, Ivan Voras Subject: Re: apache httpd performance X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2007 22:42:00 -0000 On Sun, 22 Apr 2007, Stefan Lambrev wrote: > I'm using my laptop to run ab in both test, and 2 totally different servers > :) That's why I do not pretend that the benchmark is done the right way. > > The linux host is with pentium 4 single core processor, The freebsd host is > amd64 athlon 3200+ (2GHz) - single core too > > Both servers share same dns server(s), so I do not think that the DNS can be > issue. > > I'm using 3com network card - 100mbps - xl. > > I'll test with accf_http and will report back. If there is a problem (as I'm > still not sure that there is) I'll make more accurate benchmark and will try > to find where is the problem (with your help) :) If the hardware used for the servers and clients isn't identical between the two tests, then the results are at best misleading. In this case, assuming I understand your hardware description correctly, the significant differences in server hardware make any comparison utterly meaningless. We'd be better off ignoring the Linux results entirely and simply try instead to optimize your FreeBSD performance. If you want to do side-by-side OS comparisons, you need to use the same hardware configurations in an otherwise identical software configuration. If this is 6.x, try setting net.isr.direct to 1. If running threaded apps, try using libthr instead of libpthread. If using uniprocessor hardware, make sure you are using a UP kernel rather than an SMP kernel. Robert N M Watson Computer Laboratory University of Cambridge