Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2009 09:18:40 +0100
From:      Ray Kinsella <raykinsella78@gmail.com>
To:        Joseph Kuan <kuan.joe@gmail.com>
Cc:        freebsd-net@freebsd.org, freebsd-performance@freebsd.org, freebsd-threads@freebsd.org
Subject:   Re: FreeBSD 7.1 taskq em performance
Message-ID:  <584ec6bb0904270118v37795ee2k24c9262d4c1abd80@mail.gmail.com>
In-Reply-To: <40bb871a0904241542o3f4d6c6ap62ff71876074bbea@mail.gmail.com>
References:  <40bb871a0904241542o3f4d6c6ap62ff71876074bbea@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <kuan.joe@gmail.com> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?584ec6bb0904270118v37795ee2k24c9262d4c1abd80>