Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8140553pxb; Fri, 19 Feb 2021 08:20:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxv2xKUml3f3tgGmWD+rsHgKnZaBzkG0q/iNX3VNQEWC0jUkkhb9UlzzSX4M5ySO9kSPX7f X-Received: by 2002:a50:9dcd:: with SMTP id l13mr9995220edk.220.1613751615957; Fri, 19 Feb 2021 08:20:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613751615; cv=none; d=google.com; s=arc-20160816; b=dQoZ1bro+JQrgK5Qj1XyPRznrOeSJ1N/K/qPX9eliXz4pOwAyBsGRU+q3VRzB117ka o3ZZZwpOpOFnSJEqZDs+wd79ZMfJYmQWyQzdae0SRZBs7IFzztIsnZd5K6qrtfIyFEi5 dqJm2FKW2EoCA9VG7xcIWlG+GXIxpFrQbHbPQWuimmhfoOwfatg9ZslpchCCZAdZxe97 7ngr1eDA5Sz98EFtQbgiXVNuK2aqOAyEjLrO2dxcPLZLotyuB54v3+cB9rCU4LmZdMov cVp2PK+88KzLRulaugzstwT78jff3eeRyD/zIfjtdncB+5Jya8Tl2AKvtLWdNZSuwNBh wk+A== 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; bh=z777w/LsxZ2rhOAjQfk7lUNBHCMYbc92oHHTnXknS4Y=; b=KD8tMXDeC2o3Ob8iuO07GDHrbF+opmBPDPRPY5vy6UYbI68emay+1VcgiKzUPWX6RU dTS4h/Z1jlr0Zu4bFjAIvBZy+/NzR/szjcGipEEK/zwj83u+UPmtyarCswT6QxHGPKja 21fBF/jzbElsreWGvQW3mUuhP0Iz84S+pTFxOSD7Tdewv87Z9vsIk5OPHjZWMViGevoH sawX1LTHMsDqSE8nh1ZoMfJAhSUaPJodOoiDuDou9iI1BudrNl9r24vTomLiwKUmYX62 Xt25nQ1R0IHj/9pbvRTarukdCFbI1l02ZUi+1ZEi86AeFu90wXBW5Z3bXq536mE1aZVk 6iww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si6351484ejd.156.2021.02.19.08.19.50; Fri, 19 Feb 2021 08:20:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbhBSQTq (ORCPT + 99 others); Fri, 19 Feb 2021 11:19:46 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:37500 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229765AbhBSQTp (ORCPT ); Fri, 19 Feb 2021 11:19:45 -0500 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 11JGIrWj012083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Feb 2021 11:18:54 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 9670415C39E2; Fri, 19 Feb 2021 11:18:53 -0500 (EST) Date: Fri, 19 Feb 2021 11:18:53 -0500 From: "Theodore Ts'o" To: Alexey Lyashkov Cc: Lukas Czerner , Andreas Dilger , Artem Blagodarenko , linux-ext4 , Eric Sandeen Subject: Re: [PATCH v2] mmp: do not use O_DIRECT when working with regular file Message-ID: References: <20210212093719.162065-1-lczerner@redhat.com> <20210218095146.265302-1-lczerner@redhat.com> <99A17D19-8764-4027-8B1E-E7ADBE5E2CEE@gmail.com> <20210219105713.uu2mywenytfd2e5j@work> <20210219133459.vezgrlkjpmaizvb4@work> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Alexey, It'd be helpful to me to understand _why_ this use case is important for your workloads. O_DIRECT support is rarely used as far as I know, and fs blocksize != page size is rare as well. The main use cases I know of fs blocksize != page size is on architectures (not terribly common) with 16k or 64k page sizes, that want to use 4k file system blocksizes for interoperability reasons. (And I suppose because mke2fs uses a 4k block size by default. Perhaps we should change this so that the default is that mke2fs will use a block size == page size, unless for some reason the page size is not one supported by ext4 (although I'm not aware of any architecture wanting page sizes > 64k), or the user explicitly specifies the block size using "mke2fs -b".) Are you trying to make O_DIRECT support in e2fsprogs a first class reason out of completeness concern? Or is this a use case which is important in production workloads that you are familiar with? Thanks, - Ted