From owner-freebsd-current@freebsd.org Sun Jun 4 14:18:31 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F37B9B7C810 for ; Sun, 4 Jun 2017 14:18:31 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B34DE778CC; Sun, 4 Jun 2017 14:18:31 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1dHWMP-000H0y-Mm; Sun, 04 Jun 2017 17:18:29 +0300 Date: Sun, 4 Jun 2017 17:18:29 +0300 From: Slawa Olhovchenkov To: Warner Losh Cc: Allan Jude , FreeBSD Current Subject: Re: Time to increase MAXPHYS? Message-ID: <20170604141829.GD3182@zxy.spb.ru> References: <0100015c6fc1167c-6e139920-60d9-4ce3-9f59-15520276aebb-000000@email.amazonses.com> <972dbd34-b5b3-c363-721e-c6e48806e2cd@elischer.org> <3719c729-9434-3121-cf52-393a4453d0b2@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2017 14:18:32 -0000 On Sat, Jun 03, 2017 at 11:49:01PM -0600, Warner Losh wrote: > > Netflix runs MAXPHYS of 8MB. There's issues with something this big, to be > > sure, especially on memory limited systems. Lots of hardware can't do this > > big an I/O, and some drivers can't cope, even if the underlying hardware > > can. Since we don't use such drivers at work, I don't have a list handy > > (though I think the SG list for NVMe limits it to 1MB). 128k is totally > > reasonable bump by default, but I think going larger by default should be > > approached with some caution given the overhead that adds to struct buf. > > Having it be a run-time tunable would be great. > > > > Of course 128k is reasonable, it's the current default :). I'd mean to say > that doubling would have a limited impact. 1MB might be a good default, but > it might be too big for smaller systems (nothing says it has to be a MI > constant, though). It would be a perfectly fine default if it were a > tunable. Some cloud providers limit IOPs per VM, for this cases MAXPHYS must be large as posible.