Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1125894lko; Tue, 13 Jul 2021 17:38:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwViUOqN+DovgZUkSwiVCUZs0iX87e0SS7BA8VBhdZRAYzTKmPWC4PR9PMJWc2zrM9R/qDA X-Received: by 2002:a5d:8747:: with SMTP id k7mr5445932iol.83.1626223089235; Tue, 13 Jul 2021 17:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626223089; cv=none; d=google.com; s=arc-20160816; b=eyLsMwjF3LwVmDM2bBT6MfbyrbuS2pRQ3Hh7OVlEt5GtTnvfmoKtiMTD8dpsbeJ32E ALkPqVyUXcxYB4gisNe4VRavSUiyA7iGHjW9C4w8kxlTM/ffu6QXWQ0+U8EkUh7kCssg 0OQtRRIpuCaJMyeYcxJ0ar1bUYGphn3tn/6eyf1peswfNqhhgFKG7ldeouyfzafcTEij iadjNEH/NqDw6blDj5ve61UQZDuJryr5R11nRg1a/ryQW5A+jm3UAy03HjlDq/NrLtm0 fIzppY5nhk96kOVFIl5GbF4iv4lLLnwuQxnLxy/g5hM9vh/EGEVIw4bNRwrh/uL3+8bl vp2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Xs16PK6dJE5JT2uZIx4UUd9LON9Tnv4D7l4CW1ryNYc=; b=K2ysztLaepfSMYVT97OtMFGvHPld3N3dfRlgL8NhzDGsSHP56Mt/vY/5wuQVmlAuPi nPP4g7cdfDXOx3J49hia4iJGbnDGHIkq0Qr96LWZUL12DGeVnMM0cmMHsEnFZvhVppaq 91dPdVAR4wC9vphj0dUqMjyR2X1cK3Z8iMnpNBK0OvRHSgKCvc43POEXD+hpG+a9uCOq 5CAAa5LCFH6L4u0JKzPLp9gz1WqA6mYcAfYn00fMzRtdZlajEYcAiYzL3rFmx1x4t5sb au9yTPtUdYRhhZzYmit+PyDq+SeLdYmMjB7tjyays5+vvzYrXp9CD1ED4z6kKbadKmiJ RMqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rA+lC9kA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si443261ilq.3.2021.07.13.17.37.50; Tue, 13 Jul 2021 17:38:09 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rA+lC9kA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237127AbhGNAkj (ORCPT + 99 others); Tue, 13 Jul 2021 20:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237113AbhGNAkj (ORCPT ); Tue, 13 Jul 2021 20:40:39 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C37C0613DD for ; Tue, 13 Jul 2021 17:37:47 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id k184so280924ybf.12 for ; Tue, 13 Jul 2021 17:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xs16PK6dJE5JT2uZIx4UUd9LON9Tnv4D7l4CW1ryNYc=; b=rA+lC9kAKlZzNNibE5Nx5cBmKmRWQKJAWQ+IeWDQcZaXw244Vh/3k9q9CxO0Oa8E75 qpIamkVfHv7l7o8r2TV2VnDVoEHSzXf+HXYyF1Lm3artp2TwCgYpaGqjNuqj98QRKPm2 ZYRTi2oCN7TaMiAFFJJxmiLZWff2Wxqx21A5G6pX234yJKhiXRkx6hD0tMUQwQdwrG5c COv7ALZGJd6P0P6bG0uDkPea0vEoTxtYjYor1+26feQEsBO803cbxczLWNULDKi7qw2R GltqmoS/WjqovBKpNJmSUyAI7bj43HHGvdbsZpL9MKJmlA2mWdSB6cDlp5SR4iC9ehsT DhBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xs16PK6dJE5JT2uZIx4UUd9LON9Tnv4D7l4CW1ryNYc=; b=rDOWOBfBcHcJlJ2gDyqCVGDtLhC2rdTe8fwiMDj3yrVJt+KiEFFHh6iZekGtDvU8ad q2L9lqtnYrvhx+qWvxOxqGulVRNbeaT00CNklJ+ZaTxpAaCkEWhd9VI4Axcdjf9HEVeQ RRIXuHnIgpp1U9JYny3qo0VrEJjTa35rsw43qnrahs5If9vpmYV7OJgOHKKbZw0SgD9B rIsYQdmtTHMdtslG9sOsUAp+u+fFV/gPD1ZuQsgcoQ0WBqA6aarj7KyxE2RruUIofrMA t8uC1g6YSApP+fnRN++J4Ma//+1BvzxkwAVS0mcSCWCZRZEuOnd7vaGqf83zPm5mqzkJ iMyw== X-Gm-Message-State: AOAM53239wUGaAfzsKZpZhV19epP4huhD1U2aUm54QOD54l9OyWnwtMN L1sJLsU7INRZxRZbazbYQRXxk94g8TWLopjWb/Q= X-Received: by 2002:a25:ce92:: with SMTP id x140mr9994118ybe.131.1626223067120; Tue, 13 Jul 2021 17:37:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shyam Prasad N Date: Wed, 14 Jul 2021 06:07:36 +0530 Message-ID: Subject: Re: Regarding ext4 extent allocation strategy To: "Theodore Y. Ts'o" Cc: David Howells , Steve French , linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jul 14, 2021 at 1:48 AM Theodore Y. Ts'o wrote: > > On Tue, Jul 13, 2021 at 06:27:37PM +0530, Shyam Prasad N wrote: > > > > Also, is this parameter also respected when a hole is punched in the > > middle of an allocated data extent? i.e. is there still a possibility > > that a punched hole does not translate to splitting the data extent, > > even when extent_max_zeroout_kb is set to 0? > > Ext4 doesn't ever try to zero blocks as part of a punch operation. > It's true a file system is allowed to do it, but I would guess most > wouldn't, since the presumption is that userspace is actually trying > to free up disk space, and so you would want to release the disk > blocks in the punch hole case. > > The more interesting one is the FALLOC_FL_ZERO_RANGE_FL operation, > which *should* work by transitioning the extent to be uninitialized, > but there might be cases where writing a few zero blocks might be > faster in some cases. That should use the same code path which > resepects the max_zeroout configuration parameter for ext4. > > Cheers, > > - Ted Thanks a lot for your replies, Ted. This was useful. -- Regards, Shyam