From owner-freebsd-net@freebsd.org Fri May 3 19:37:13 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4129B1598FD6 for ; Fri, 3 May 2019 19:37:13 +0000 (UTC) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (khavrinen.csail.mit.edu [IPv6:2603:400a:0:7ec::801e:1c14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "khavrinen.csail.mit.edu", Issuer "Client CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D701485BF6 for ; Fri, 3 May 2019 19:37:12 +0000 (UTC) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (localhost [127.0.0.1]) by khavrinen.csail.mit.edu (8.15.2/8.15.2) with ESMTPS id x43JbBU7053534 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL CN=khavrinen.csail.mit.edu issuer=Client+20CA); Fri, 3 May 2019 15:37:11 -0400 (EDT) (envelope-from wollman@khavrinen.csail.mit.edu) Received: (from wollman@localhost) by khavrinen.csail.mit.edu (8.15.2/8.15.2/Submit) id x43JbBAg053533; Fri, 3 May 2019 15:37:11 -0400 (EDT) (envelope-from wollman) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <23756.39015.553779.526064@khavrinen.csail.mit.edu> Date: Fri, 3 May 2019 15:37:11 -0400 From: Garrett Wollman To: Konstantin Belousov Cc: freebsd-net@freebsd.org Subject: Re: Disabling 9k jumbo clusters on mce(4) In-Reply-To: <20190503174715.GB2716@kib.kiev.ua> References: <23756.29338.729453.227593@khavrinen.csail.mit.edu> <20190503174715.GB2716@kib.kiev.ua> X-Mailer: VM 8.2.0b under 26.1 (amd64-portbld-freebsd11.2) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (khavrinen.csail.mit.edu [127.0.0.1]); Fri, 03 May 2019 15:37:11 -0400 (EDT) X-Rspamd-Queue-Id: D701485BF6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] 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: Fri, 03 May 2019 19:37:13 -0000 < said: > On Fri, May 03, 2019 at 12:55:54PM -0400, Garrett Wollman wrote: >> Does anyone have an easy patch to keep mce(4) from trying to use 9k >> jumbo mbuf clusters? I think I went down this road once before but >> the fix wasn't as obvious as it is for the Intel drivers. (I assume >> the hardware is not so broken that it requires packets to be stored in >> contiguous physical memory.) > mce(4) only uses 9k clusters when you configured jumbo size larger than 4k. > See r336407. Yes, and the point is to make it not use them *ever*, no matter what the MTU is. 9k clusters are Bad News; given the choice I would just as soon rip out all the code for greater-than-page-size clusters, but that would be way more divergence-from-upstream in my source tree than I can reasonably manage. -GAWollman