Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 17:11:22 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   Re: What are conditions to spread traffic across different NIC queues?
Message-ID:  <370ccdb0-cb71-a4da-0a35-4e878eb6ba1c@FreeBSD.org>
In-Reply-To: <cbcadec2-bf74-a1a9-2c66-97d9d409907f@FreeBSD.org>
References:  <cbcadec2-bf74-a1a9-2c66-97d9d409907f@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--zsTDxegmtOkjDLOAyKz15qm2TtvkcDoZs
Content-Type: multipart/mixed; boundary="JnkhyfEJCborJK29zf4YjbG7OBNpdpkP0";
 protected-headers="v1"
From: Lev Serebryakov <lev@FreeBSD.org>
Reply-To: lev@FreeBSD.org
To: freebsd-net@freebsd.org
Message-ID: <370ccdb0-cb71-a4da-0a35-4e878eb6ba1c@FreeBSD.org>
Subject: Re: What are conditions to spread traffic across different NIC
 queues?
References: <cbcadec2-bf74-a1a9-2c66-97d9d409907f@FreeBSD.org>
In-Reply-To: <cbcadec2-bf74-a1a9-2c66-97d9d409907f@FreeBSD.org>

--JnkhyfEJCborJK29zf4YjbG7OBNpdpkP0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 26.10.2018 15:30, Lev Serebryakov wrote:

>  I have "router" with two em (82574L) NICs. It has dual-core CPU and
> each NIC creates two receive and two transmit queues:
>=20
> $ sysctl dev.em | grep queue | grep _irq
> dev.em.1.queue_rx_1.rx_irq: 0
> dev.em.1.queue_rx_0.rx_irq: 0
> dev.em.1.queue_tx_1.tx_irq: 0
> dev.em.1.queue_tx_0.tx_irq: 0
> dev.em.0.queue_rx_1.rx_irq: 0
> dev.em.0.queue_rx_0.rx_irq: 0
> dev.em.0.queue_tx_1.tx_irq: 0
> dev.em.0.queue_tx_0.tx_irq: 0
> $
>=20
>  When I pass, say, 64 UDP streams through this router, only one core is=

> 100% loaded and other is 100% idle. These streams are for same IP pair,=

> but port pairs are all different.
>=20
>  What are right conditions to spread such traffic per queues and cores?=

 Ok, 82574L is "low end" chip, it supports only IP and IP+TCP checksums.
82576EB supports IP+UDP too. Intel, what is wrong with you?!

--=20
// Lev Serebryakov


--JnkhyfEJCborJK29zf4YjbG7OBNpdpkP0--

--zsTDxegmtOkjDLOAyKz15qm2TtvkcDoZs
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAlvTIIpfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5
NkQxQ0EwQjVGNDMxOEI2NzRCMzMwQUVBQjAzQzU4QkZEQzQ3OEYACgkQ6rA8WL/c
R49FPw/+PPrDOPr3AU+/6mnP25teVQmXRDaO3WsiVLf83YEWX4n9JnIkz0e6nmrH
ObCIVfO/Cf6k2g05Tyq58kgRfDHJMTdhKm0RXDcZIEbRr9O/S6Un6CbzCVMwSWYt
AvMuLdp7Lr0xp9Q7eSL+hZ80RRSEIfayM1SCNtkuBve0jDs9kuelCcv54mEwtkbz
aNAHdfP/NmIeS+5MaKniCi1kcstSVWOpg9SuNLLrh1NtQlUSflhETsZNl2b7NGJj
gKVs6pJbwRxBlq3CBQwVxGzfcp1webwQXvPyTpzrrEvJ+BqPOsOHAf8BMdZgutiA
G+GjSYDXN3KYIyZcRuM3fKyP53pzw0tReLrwfHl1o3WHXGOLAkXlhw1h0T3YVcHH
RGPv9ODtcIO6Cwatyums0kmAjlWq2MJLFcQP/sThoQDIZhFi5cLf9fCO75/1XHuS
1Iaek1JLaBeiFjqd427LU5XFglx7wOerIsd+Gjf6LTagbPsilSDWkhTxLVxzwTyI
I/fmqkiRgI4w0gUJuglPhtkkBjizic8OKxHPG65t2VXFiLr5iVtB7AqWBNDXGNLK
tRtkMdpXQhTWeuOSwkJO5VCkYjff859t+f6UHVZIMW2n7B6804cWhfd9BVMOszUf
W1le5GJqDsF7ISZlN5a8bEzspgH75mjhxwmfXPeX9SX1m8W1xNI=
=S3Jj
-----END PGP SIGNATURE-----

--zsTDxegmtOkjDLOAyKz15qm2TtvkcDoZs--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?370ccdb0-cb71-a4da-0a35-4e878eb6ba1c>