From owner-freebsd-net@freebsd.org Tue Aug 27 19:22:50 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 17DC9DD06F for ; Tue, 27 Aug 2019 19:22:50 +0000 (UTC) (envelope-from vit@otcnet.ru) Received: from mail.otcnet.ru (mail.otcnet.ru [194.190.78.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46HzKh64Gfz4Dwv for ; Tue, 27 Aug 2019 19:22:48 +0000 (UTC) (envelope-from vit@otcnet.ru) Received: from Victors-MacBook-Air-2.local (unknown [195.91.148.145]) by mail.otcnet.ru (Postfix) with ESMTPSA id E2A9689DCC; Tue, 27 Aug 2019 22:22:47 +0300 (MSK) Subject: Re: finding optimal ipfw strategy To: Eugene Grosbein , "Andrey V. Elsukov" , freebsd-net@freebsd.org References: <4ff39c8f-341c-5d72-1b26-6558c57bff8d@grosbein.net> <50b0748d-bf8a-4de9-58bf-800ddd4f9c27@grosbein.net> From: Victor Gamov Organization: OTCnet Message-ID: <60d075ee-0d39-6606-ea5a-35e27818162a@otcnet.ru> Date: Tue, 27 Aug 2019 22:22:47 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <50b0748d-bf8a-4de9-58bf-800ddd4f9c27@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46HzKh64Gfz4Dwv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of vit@otcnet.ru designates 194.190.78.3 as permitted sender) smtp.mailfrom=vit@otcnet.ru X-Spamd-Result: default: False [-2.55 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.989,0]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.otcnet.ru:c]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[otcnet.ru]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.36)[-0.361,0]; IP_SCORE(0.00)[country: RU(0.01)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:50822, ipnet:194.190.78.0/24, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 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, 27 Aug 2019 19:22:50 -0000 On 27/08/2019 21:50, Eugene Grosbein wrote: > 28.08.2019 1:46, Eugene Grosbein wrote: > >> 28.08.2019 1:03, Andrey V. Elsukov wrote: >> >>> As you can see, when ipfw produces high load, interrupt column is more >>> than system. >> >> Interrupt numbers higher than others generally mean that traffic is processed without netisr queueing mostly. >> That is expected for plain routing. I'm not sure if this would be same in case of bridging. >> >> Victor, do you have some non-default tuning in your /boot/loader.conf or /etc/sysctl.conf? >> If yes, could you show them? If not, you should try something like this. For loader.conf: >> >> hw.igb.rxd=4096 >> hw.igb.txd=4096 >> net.isr.bindthreads=1 >> net.isr.defaultqlimit=4096 >> #substitute total number of CPU cores in the system here >> net.isr.maxthreads=4 >> # EOF > > 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 -- CU, Victor Gamov