Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3867112pxb; Mon, 30 Aug 2021 12:31:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3u94dHTlO31pEzM4FdttrM8bqKSWtxJIKLdmbWFIOiviR99msjITool4MUYglq+n82lDy X-Received: by 2002:a05:6602:3c5:: with SMTP id g5mr19247880iov.42.1630351860061; Mon, 30 Aug 2021 12:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630351860; cv=none; d=google.com; s=arc-20160816; b=AdBBdNKM9QqofH2SSHC9+hzbJzJFlBABTXGE2ythugAeJPuBgEXRccKjc/6tS2/4h3 fNRTIGFr+Vn5GEDZ0JpvPqZMReIbb9BkOT5tDkdZNhJeJMw0cYNhjc03vZaEM8Qp5pYo hV3fRDkOKH5x/IXhgAZhNldFrrPj3XLq5aLV/CPdW1N3qvVuLsRzVnMqu/KjonGt3NFO qhm4U+eivVBP3K9voS0cEYGA19XILCqLShOk6nCAQLVVqP8Myb7ZDmTWE+2xrk8Sa/u0 ITolB4nwcmUFOs3UkWX7N8P+30K7pWaWd0Baj5XFO/u9s5AYjDENdJp7J7s0mQfhK/uD QIOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iLnQTfM59tWlB1sqLdr0nOyq4+vxUHwNbRxLwZFIdMU=; b=v9RdFDvDEjFPveGBnytqtYhNw9alUcNvBjVvySpoWlvSxpiGX2f7S3asQtDHJbCjIs O9ESbEFJMIf6mlEoVQeAW0EB1CO6JHrSZPUuhh0WBCPyLsCsH4zXTeIc7DAH3qD3xFtD PZcKQ+XGg3ml0QlHVAJm/Y86pr8IE4hYRqQavAJw48rSbiV1zwMObw8s53/KoBzPm80w fnNNQUF4wYkLL24bXcv5xwauJ/8+XoviTZXbGEfLdV/Gc0ZDgCAtWc6ZHR1cZUh4RmC8 cNs/JeQRmIWG5TllY63FXv+BhNcIMy2eNEaAl8UguR0sHHFtQtm1nYklua094V/pk3ZX x8qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WanAlxD7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y28si14843869iot.48.2021.08.30.12.30.48; Mon, 30 Aug 2021 12:31:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WanAlxD7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238874AbhH3S3V (ORCPT + 99 others); Mon, 30 Aug 2021 14:29:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:48400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238720AbhH3S3N (ORCPT ); Mon, 30 Aug 2021 14:29:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A7A560E98; Mon, 30 Aug 2021 18:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630348099; bh=q7Sa9oLo1QMLGdTm8gSfsqOzZ6zO/A6Cj0Uzj1ZzG6U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WanAlxD7OG2mK5TiNVVN8rRFUR/8IocLCJmB9m6K3n5ns6ZumxwOG7A6H+1KcXwrA uIwsL2zIP0tEroxxX+/F3VK+CO7dH5vEmpSC06kOBrROHF7U0cXZ5TEW6Ss1/lobTI npe4LTbziMxbXhUNyCxaz0mrnUtjQyv3Hf1snKRZMWS2G1RZraLuzFtOFMNWCBReJw n0Gxd60W+DY7P/HdsIbInFN63221O+zbRwFwsOwBaWOsYKJZLm69dw1AKXdoO9o/1/ t6TAubAA+EU4WgzyirdD7R+BTsydKulNNQ36Qi3IZJDKQ4MgRwI8qOjcsKJevS+rFI 4wdKzJCaQxo/Q== Date: Mon, 30 Aug 2021 11:28:18 -0700 From: "Darrick J. Wong" To: Andreas Dilger Cc: Matthew Wilcox , Johannes Weiner , "Darrick J. Wong" , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: Discontiguous folios/pagesets Message-ID: <20210830182818.GA9892@magnolia> References: <1FC3646C-259F-4AA4-B7E0-B13E19EDC595@dilger.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1FC3646C-259F-4AA4-B7E0-B13E19EDC595@dilger.ca> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 28, 2021 at 01:27:29PM -0600, Andreas Dilger wrote: > On Aug 28, 2021, at 1:04 PM, Matthew Wilcox wrote: > > > > The current folio work is focused on permitting the VM to use > > physically contiguous chunks of memory. Both Darrick and Johannes > > have pointed out the advantages of supporting logically-contiguous, > > physically-discontiguous chunks of memory. Johannes wants to be able to > > use order-0 allocations to allocate larger folios, getting the benefit > > of managing the memory in larger chunks without requiring the memory > > allocator to be able to find contiguous chunks. Darrick wants to support > > non-power-of-two block sizes. > > What is the use case for non-power-of-two block sizes? The main question > is whether that use case is important enough to add the complexity and > overhead in order to support it? For copy-on-write to a XFS realtime volume where the allocation extent size (we support bigalloc too! :P) is not a power of two (e.g. you set up a 4 disk raid5 with 64k stripes, now the extent size is 192k). Granted, I don't think folios handling 192k chunks is absolutely *required* for folios; the only hard requirement is that if any page in a 192k extent becomes dirty, the rest have to get written out all the same time, and the cow remap can only happen after the last page finishes writeback. --D > Cheers, Andreas > > > > >