From owner-freebsd-threads@FreeBSD.ORG Mon Apr 27 08:43:44 2009 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A80B1065674; Mon, 27 Apr 2009 08:43:44 +0000 (UTC) (envelope-from raykinsella78@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id B98468FC16; Mon, 27 Apr 2009 08:43:43 +0000 (UTC) (envelope-from raykinsella78@gmail.com) Received: by bwz9 with SMTP id 9so2064852bwz.43 for ; Mon, 27 Apr 2009 01:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=EgL9OfuikxPUuaOQkhhv6hBEs0YxgajW0ZnJZENa4n0=; b=sxaFGPdkm8nw0CSPO4PIhXmMNaMuSrYigaP8I5J37ESCivA7rCooT4PRs5wJZ/6ZlO acbSdBSQSHhJuc5U5tVVO8I1JJN9HT1GFb90DVWtPQx6Z7l9sMZDO8fQxpg09tk7yauF MxR1DgC0VkageEToiqhi4w3JfxocQOhRMaSvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=nHU478wC8tRjwFlDyJ3jSb3PRQ/fNhULLI4bcbOMBzLmGgDL2GzgzHPQzQU3Er4i+O XKmr7z/bQe3qr/IELHoBSGP/CLeEYdkwAGRfTkgSDLSUm0SQmFw2pmmoW4GdsR8sTkik RA1DNdacQ+iU0BA+j9w0Dodurg6d3tj7TxdpI= MIME-Version: 1.0 Received: by 10.239.172.18 with SMTP id y18mr253998hbe.72.1240820320304; Mon, 27 Apr 2009 01:18:40 -0700 (PDT) In-Reply-To: <40bb871a0904241542o3f4d6c6ap62ff71876074bbea@mail.gmail.com> References: <40bb871a0904241542o3f4d6c6ap62ff71876074bbea@mail.gmail.com> Date: Mon, 27 Apr 2009 09:18:40 +0100 Message-ID: <584ec6bb0904270118v37795ee2k24c9262d4c1abd80@mail.gmail.com> From: Ray Kinsella To: Joseph Kuan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org, freebsd-performance@freebsd.org, freebsd-threads@freebsd.org Subject: Re: FreeBSD 7.1 taskq em performance X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2009 08:43:45 -0000 Joseph, I would recommend that you start with PMCStat and figure where the bottleneck is, Given that you have a two threads and your CPU is at 100%, my a apriori guess would be a contention for a spinlock, so I might also try to use LOCK_PROFILING to handle on this. Regards Ray Kinsella On Fri, Apr 24, 2009 at 11:42 PM, Joseph Kuan wrote: > Hi all, > I have been hitting some barrier with FreeBSD 7.1 network performance. I > have written an application which contains two kernel threads that takes > mbufs directly from a network interface and forwards to another network > interface. This idea is to simulate different network environment. > > I have been using FreeBSD 6.4 amd64 and tested with an Ixia box > (specialised hardware firing very high packet rate). The PC was a Core2 2.6 > GHz with dual ports Intel PCIE Gigabit network card. It can manage up to > 1.2 > million pps. > > I have a higher spec PC with FreeBSD 7.1 amd64 and Quadcore 2.3 GHz and > PCIE Gigabit network card. The performance can only achieve up to 600k pps. > I notice the 'taskq em0' and 'taskq em1' is solid 100% CPU but it is not in > FreeBSD 6.4. > > Any advice? > > Many thanks in advance > > Joe > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to " > freebsd-performance-unsubscribe@freebsd.org" >