From owner-freebsd-performance@FreeBSD.ORG Fri Apr 24 23:08:41 2009 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 26B5E10656BE; Fri, 24 Apr 2009 23:08:41 +0000 (UTC) (envelope-from kuan.joe@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 342338FC27; Fri, 24 Apr 2009 23:08:39 +0000 (UTC) (envelope-from kuan.joe@gmail.com) Received: by ewy19 with SMTP id 19so1204593ewy.43 for ; Fri, 24 Apr 2009 16:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=u1szUVa5rF/H/pUECQrWOt2PZkNVp/fOqITj2q/zV/I=; b=TVAnaft2rHl/N5FZgxOUHXOQDQXg/E4RpIc4cv8kdcC4BAuavOMK0y4aw8KE4W+RxZ YygPws3VZNpUiE2OsgSMrt4zPt0/wt20n+8Gv6r1epx+cmgKkk/57hrgs2o4PjjvXH+t RC66Z6GV37GJhf4Z4BrBJl6eH4OjOzp895lKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lRwk9cpn7EEDMNqld2EtgyJLjmLGDwFSuH6pwqXBL9SYRWwzWrOMjv/UJGwGs/8krU fu8aO0nT5P+c/wrEtvqwQvXlqCrMhiP8NoO+Msed4Xi9myuczAQ+ytYl3wa0WxAMeleG 1NsJ1Ze+14P1EhkwIg1XBkKLc2XSQeSihcJ+A= MIME-Version: 1.0 Received: by 10.216.54.198 with SMTP id i48mr220673wec.144.1240612925520; Fri, 24 Apr 2009 15:42:05 -0700 (PDT) Date: Fri, 24 Apr 2009 23:42:05 +0100 Message-ID: <40bb871a0904241542o3f4d6c6ap62ff71876074bbea@mail.gmail.com> From: Joseph Kuan To: freebsd-net@freebsd.org, freebsd-performance@freebsd.org, freebsd-threads@freebsd.org X-Mailman-Approved-At: Fri, 24 Apr 2009 23:36:10 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: FreeBSD 7.1 taskq em 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: Fri, 24 Apr 2009 23:08:41 -0000 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