Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 15:36:39 +0100
From:      Ben RUBSON <ben.rubson@gmail.com>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Cc:        Hans Petter Selasky <hanss@mellanox.com>, Yuval Bason <yuvalba@mellanox.com>, Meny Yossefi <menyy@mellanox.com>
Subject:   Re: iSCSI failing, MLX rx_ring errors ?
Message-ID:  <52A2608C-A57E-4E75-A952-F4776BA23CA4@gmail.com>
In-Reply-To: <F19B51C7-7DDD-4FAB-9091-0B7C8A7CE649@gmail.com>
References:  <486A6DA0-54C8-40DF-8437-F6E382DA01A8@gmail.com> <6a31ef00-5f7a-d36e-d5e6-0414e8b813c7@selasky.org> <DB3PR05MB089A5789A0A619FA8B7CA36C36C0@DB3PR05MB089.eurprd05.prod.outlook.com> <613AFD8E-72B2-4E3F-9C70-1D1E43109B8A@gmail.com> <2c9a9c2652a74d8eb4b34f5a32c7ad5c@AM5PR0502MB2916.eurprd05.prod.outlook.com> <DB3PR05MB089011A41EF87A40C7AC741C36E0@DB3PR05MB089.eurprd05.prod.outlook.com> <F19B51C7-7DDD-4FAB-9091-0B7C8A7CE649@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> On 04 Jan 2017, at 14:47, Ben RUBSON <ben.rubson@gmail.com> wrote:
>=20
>> On 03 Jan 2017, at 07:27, Meny Yossefi <menyy@mellanox.com> wrote:
>>=20
>>> From: owner-freebsd-net@freebsd.orgOn Behalf OfBen RUBSON
>>> Sent: Monday, January 2, 2017 11:09:15 AM (UTC+00:00) Monrovia, =
Reykjavik
>>> To: freebsd-net@freebsd.org
>>> Cc: Meny Yossefi; Yuval Bason; Hans Petter Selasky
>>> Subject: Re: iSCSI failing, MLX rx_ring errors ?
>>>=20
>>> Hi Meny,
>>>=20
>>> Thank you very much for your feedback.
>>>=20
>>> I think you are right, this could be a mbufs issue.
>>> Here are some more numbers :
>>>=20
>>> # vmstat -z | grep -v "0,   0$"
>>> ITEM                   SIZE   LIMIT     USED     FREE         REQ    =
  FAIL SLEEP
>>> 4 Bucket:                32,      0,    2673,   28327,   88449799,   =
 17317, 0
>>> 8 Bucket:                64,      0,     449,   15609,   13926386,   =
  4871, 0
>>> 12 Bucket:               96,      0,     335,    5323,   10293892,   =
142872, 0
>>> 16 Bucket:              128,      0,     533,    6070,    7618615,   =
472647, 0
>>> 32 Bucket:              256,      0,    8317,   22133,   36020376,   =
563479, 0
>>> 64 Bucket:              512,      0,    1238,    3298,   20138111, =
11430742, 0
>>> 128 Bucket:            1024,      0,    1865,    2963,   21162182,   =
158752, 0
>>> 256 Bucket:            2048,      0,    1626,     450,   80253784,  =
4890164, 0
>>> mbuf_jumbo_9k:         9216, 603712,   16400,    8744, 4128521064,   =
  2661, 0
>>=20
>> Have you tried increasing the mbufs limit?=20
>> (sysctl) kern.ipc.nmbufs (Maximum number of mbufs allowed)
>=20
> Thank you for your suggestion Meny.
> No I did not try this yet.
> However, from the numbers above (and below), I think I should increase =
kern.ipc.nmbjumbo9 instead ?

So, to give some news, increasing kern.ipc.nmbjumbo9 helped a lot.
Just a very little issue (compared to the others before) over the last 3 =
weeks.

> # vmstat -z | grep -E "ITEM|mbuf"
> ITEM              SIZE     LIMIT   USED   FREE          REQ  FAIL =
SLEEP
> mbuf_packet:       256, 26080395, 16400, 10418,   572292683,    0,   0
> mbuf:              256, 26080395, 16402, 40525, 20955366061,    0,   0
> mbuf_cluster:     2048,  4075060, 26818,   148,      907005,    0,   0
> mbuf_jumbo_page:  4096,  2037529,     0, 34262,  5194563127,    0,   0
> mbuf_jumbo_9k:    9216,   603712, 16400, 12867,  4362104082, 2676,   0
> mbuf_jumbo_16k:  16384,   339588,     0,     0,           0,    0,   0
>=20
> # sysctl kern.ipc | grep mb
> kern.ipc.nmbufs:      26080380
> kern.ipc.nmbclusters:  4075058
> kern.ipc.nmbjumbop:    2037529
> kern.ipc.nmbjumbo9:    1811136
> kern.ipc.nmbjumbo16:   1358352
> kern.ipc.maxmbufmem: 33382879232
>=20
> // note that I don't understand the difference between vmstat and =
sysctl nmbjumbo9 / nmbjumbo16 values.
> // the first one is /3 (1811136/3=3D603712) the second one is /4 =
(1358352/4=3D339588). Strange.

Any idea regarding this difference ?

In addition :
# sysctl kern.ipc.nmbjumbo9
kern.ipc.nmbjumbo9: 1811136
# sysctl kern.ipc.nmbjumbo9=3D2037529
kern.ipc.nmbjumbo9: 1811136 -> 6112587

Really strange.

Thank you,

Ben




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52A2608C-A57E-4E75-A952-F4776BA23CA4>