From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:38206 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728522AbeJEVtL (ORCPT ); Fri, 5 Oct 2018 17:49:11 -0400 Date: Fri, 5 Oct 2018 10:50:02 -0400 From: Mike Snitzer Subject: Re: mkfs.xfs: don't go into multidisk mode if there is only one stripe Message-ID: <20181005145001.GA4883@redhat.com> References: <20181004175839.18736-1-idryomov@gmail.com> <24d229f3-1a75-a65d-5ad3-c8565cb32e76@sandeen.net> <20181004222952.GV31060@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Ilya Dryomov Cc: Dave Chinner , Eric Sandeen , xfs , Mark Nelson , Eric Sandeen On Fri, Oct 05 2018 at 7:27am -0400, Ilya Dryomov wrote: > On Fri, Oct 5, 2018 at 12:29 AM Dave Chinner wrote: > > > > On Thu, Oct 04, 2018 at 01:33:12PM -0500, Eric Sandeen wrote: > > > On 10/4/18 12:58 PM, Ilya Dryomov wrote: > > > > rbd devices report the following geometry: > > > > > > > > $ blockdev --getss --getpbsz --getiomin --getioopt /dev/rbd0 > > > > 512 > > > > 512 > > > > 4194304 > > > > 4194304 > > > > dm-thinp does this as well. THis is from the thinp device created > > by tests/generic/459: > > > > 512 > > 4096 > > 65536 > > 65536 > > (adding Mike) > > ... and that 300M filesystem ends up with 8 AGs, when normally you get > 4 AGs for anything less than 4T. Is that really intended? > > AFAIK dm-thinp reports these values for the same exact reason as rbd: > we are passing up the information about the efficient I/O size. In the > case of dm-thinp, this is the thinp block size. If you put dm-thinp on > top of a RAID array, I suspect it would pass up the array's preferred > sizes, as long as they are a proper factor of the thinp block size. Right, see pool_io_hints() for all the logic thinp uses to consume block core's blk_stack_limits() provided limits.. thinp can override if the underlying limits are _not_ a factor of the thinp's blocksize. > The high agcount on dm-thinp has come up before and you suggested that > dm-thinp should report iomin == ioopt (i.e. sunit == swidth). If that > was the right fix back in 2014, mkfs.xfs must have regressed: > > https://marc.info/?l=linux-xfs&m=137783388617206&w=2 > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fdfb4c8c1a9fc8dd8cf8eeb4e3ed83573b375285 Yeah, if we're getting larger AG count again, certainly seems like mkfs.xfs regressed. Mike