From owner-freebsd-performance@FreeBSD.ORG Wed Jan 2 04:08:34 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3416516A417 for ; Wed, 2 Jan 2008 04:08:34 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by mx1.freebsd.org (Postfix) with ESMTP id 0456813C458 for ; Wed, 2 Jan 2008 04:08:33 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so5564323rvb.43 for ; Tue, 01 Jan 2008 20:08:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ER7hIr/CBBp+S88wy+yOGOmXnWkGYWSA+JXF43T3DMw=; b=qLr0sGpMKfT3dEfkYXj6iY4QIYKh/YshTYZ76LQBgLe1+RNXXW+NXZgW7upcM3YJgZedDGJRj95r+sgILQ0xmixxa5ltnGd3fNcJomqqAnGPDi93Vr/6UWVrC6fOc0DlR0N5PBr3absL5JP+8J9B2VitPG9Nufl2VxWMV2HnUkY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=F17krv8kR6/23X7YmHY07xd+BeKAllxiQlIKLoBm/WZQBlH363iPUlwW88qr6LyOfqzBNdI/4Xw4GFi7zD7sI4ZA4TZ2o13DKwlXEAdoa8pppJZfvQiOnK5LpCWG0aXT816hTyBW22EGtYgrohLNlyjgjIJxE3JiF6fGIu81KNQ= Received: by 10.142.104.9 with SMTP id b9mr3809936wfc.48.1199246912808; Tue, 01 Jan 2008 20:08:32 -0800 (PST) Received: by 10.142.255.9 with HTTP; Tue, 1 Jan 2008 20:08:32 -0800 (PST) Message-ID: <8cb6106e0801012008q18830aebp906ebfeb3c519e5a@mail.gmail.com> Date: Tue, 1 Jan 2008 23:08:32 -0500 From: "Josh Carroll" To: "Ivan Voras" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071201205609.GA54238@harmless.hu> <20071204130810.GA77186@harmless.hu> <47779AA7.2060801@FreeBSD.org> <20071230132451.GA61295@harmless.hu> <47779EBC.5020900@FreeBSD.org> <20071230134354.GA63555@harmless.hu> <4777A65C.8020406@FreeBSD.org> <20071230141118.GA67574@harmless.hu> <4777AB9C.1010003@FreeBSD.org> Cc: freebsd-performance@freebsd.org Subject: Re: mysql scaling questions X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2008 04:08:34 -0000 > Does anyone have a theory why syscalls are so expensive in FreeBSD? Here > are the results of unixbench 4.1 on two machines. First is the machine > running FreeBSD HEAD (debugging disabled) on a dual-core Athlon 64 (i386 > mode), 2 GHz: I ran the syscall benchmark from UnixBench on the same hardware (Intel Q6600 @ 3.2 GHz) for both FreeBSD 7.0-RC1 (amd64) and Knoppix 5.1 (Linux 2.6.9 PREEMPT kernel, i386). Per the comments in this thread, i386 syscalls should be less expensive than amd64 syscalls, so the results are interesting: FreeBSD 7.0-RC1 (amd64): System Call Overhead 15000.0 1103233.7 735.5 Knoppix Linux 2.6.9 (i686): System Call Overhead 15000.0 1108869.7 739.2 I can try to find a Linux live CD with a 2.6.x x86-64 kernel for a valid apples-to-apples comparison, but thought these results might provide some parity/insight. Doesn't look like the syscalls are slower at all on FreeBSD. Josh