Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2019 23:20:16 +0300
From:      Victor Gamov <vit@otcnet.ru>
To:        Eugene Grosbein <eugen@grosbein.net>, "Andrey V. Elsukov" <bu7cher@yandex.ru>, freebsd-net@freebsd.org
Subject:   Re: finding optimal ipfw strategy
Message-ID:  <328ff261-f247-976f-ccba-e4b4e9098d8c@otcnet.ru>
In-Reply-To: <032b67e1-5359-4f00-a449-26c43b70a467@grosbein.net>
References:  <f38b21a5-8f9f-4f60-4b27-c810f78cdc88@otcnet.ru> <4ff39c8f-341c-5d72-1b26-6558c57bff8d@grosbein.net> <a559d2bd-5218-f344-2e88-c00893272222@otcnet.ru> <ddaa55bc-1fa5-151b-258e-e3e9844802ef@yandex.ru> <c275f853-62a7-6bb7-d309-bf8a27d3dbae@grosbein.net> <50b0748d-bf8a-4de9-58bf-800ddd4f9c27@grosbein.net> <60d075ee-0d39-6606-ea5a-35e27818162a@otcnet.ru> <032b67e1-5359-4f00-a449-26c43b70a467@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27/08/2019 22:59, Eugene Grosbein wrote:
> 28.08.2019 2:22, Victor Gamov wrote:
> 
>>> Also, you should monitor interrupt numbers shown by "systat -vm 3" for igb* devices
>>> at hours of most load. If they approach 8000 limit but not exceed it,
>>> you may be suffering from this and should raise the limit with /boot/loader.conf:
>>>
>>> hw.igb.max_interrupt_rate=32000
>>
>> It's about 5000-7000 per rxq
> 
> 7000 is quite close considering it is average for quite long period (a second or seconds).
> It can hit 8000 for some ticks easily in your case.

Eugene,  can you explain me what max_interrupt_rate means?  Calomel 
explain it as  "# maximum number of interrupts per second generated by 
single igb".  So if I increase it then more irq per sec will be 
generated and more context switch produced.  Why I need to increase it?


> You should raise the limit as soon as possible. I'd advise to double it upto 16000 first
> but if you cannot afford extra reboot better use 32000 as it's just fine for 1Gbps link.

# sysctl hw.igb.max_interrupt_rate
sysctl: unknown oid 'hw.igb.max_interrupt_rate'
#

Is it possible to set it at boot time only?

--
CU,
Victor Gamov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?328ff261-f247-976f-ccba-e4b4e9098d8c>