From owner-freebsd-net@FreeBSD.ORG Tue Jul 8 12:23:44 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 639351065686 for ; Tue, 8 Jul 2008 12:23:44 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id DB2328FC17 for ; Tue, 8 Jul 2008 12:23:43 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KGBUE-0002wk-NX for freebsd-net@freebsd.org; Tue, 08 Jul 2008 11:35:58 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jul 2008 11:35:58 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jul 2008 11:35:58 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Date: Tue, 08 Jul 2008 13:35:51 +0200 Lines: 46 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0B4523A9C71CF936962836C0" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.14 (X11/20080505) In-Reply-To: X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: Help: FreeBSD 6.3 - em driver & taskqueue & priority X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2008 12:23:44 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0B4523A9C71CF936962836C0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Joe Kuan wrote: > Hi all, >=20 > I have implemented an network application in kernel space and it is > working fine. The application involves 3 network interfaces that FreeBS= D > 6.3 can forward mbuf between em0 and em1 in a rate 1.3 - 1.4 millions > packets per second. Em2 is used for controlling the network application= =2E >=20 > The problem is that when em0 and em1 are transmitting in 1.3 - 1.4 > millions packets per second, the em2 interface becomes irresponsive. > However, my goal is to make the kernelised network application response= > as soon as a control packet arrives in em2, ie jumps the queue ahead of= > all the packets in em0 and em1. >=20 > I think the problem lies on the priority set on the task structure > are all the same for all the em devices. Am I heading in the right > direction? A wild theory: are the NICs separate / individual and on separate buses? If they are not (e.g. two of them are on the same card or bus) it might be a hardware issue. --------------enig0B4523A9C71CF936962836C0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIc1EXldnAQVacBcgRAunlAKCUzOp1kvOnLws/mcrekwubfdTwwwCePerx myAhcDJPNzytmw4BuEuEMbY= =lehA -----END PGP SIGNATURE----- --------------enig0B4523A9C71CF936962836C0--