From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 21 23:27:05 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8716F2E1 for ; Mon, 21 Apr 2014 23:27:05 +0000 (UTC) Received: from elf.torek.net (50-73-42-1-utah.hfc.comcastbusiness.net [50.73.42.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5799F15CA for ; Mon, 21 Apr 2014 23:27:04 +0000 (UTC) Received: from elf.torek.net (localhost [127.0.0.1]) by elf.torek.net (8.14.5/8.14.5) with ESMTP id s3LNR3LS046107; Mon, 21 Apr 2014 17:27:03 -0600 (MDT) (envelope-from torek@torek.net) Message-Id: <201404212327.s3LNR3LS046107@elf.torek.net> From: Chris Torek To: John-Mark Gurney Subject: Re: MAXPHYS in md(4) In-reply-to: Your message of "Mon, 21 Apr 2014 16:15:34 -0700." <20140421231534.GY43976@funkthat.com> Date: Mon, 21 Apr 2014 17:27:03 -0600 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (elf.torek.net [127.0.0.1]); Mon, 21 Apr 2014 17:27:03 -0600 (MDT) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2014 23:27:05 -0000 >Why? GEOM modules are written on the assumption that no IO larger >than MAXPHYS will ever be seen... They allocate arrays of structures >or other items based upon MAXPHYS, and will smash the stack/crash//do >bad things if it receives an IO larger than MAXPHYS... > >The change would not break anything that isn't already broken (or >working by luck)... > >Now if you're talking about wanting to increase MAXPHYS, there are many >threads talking about what needs to be done about it, but that is >completely different than this issue... Yes, I was thinking of the latter. It's not *completely* different as it would be nice to let devices crank down the I/O size if they have various address and/or byte-count limits. (Not that I know of any *modern* devices with such limits. I see this is mentioned in old freebsd-arch discussions...) Chris