Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4758929pxv; Tue, 27 Jul 2021 16:01:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc4rq115EW2M89LaAwqaVQexw3wQbns+F4s0GrFmHIBov4LF+WZpBFNVv/wnr2J6X94hLp X-Received: by 2002:a02:a913:: with SMTP id n19mr23884150jam.7.1627426913874; Tue, 27 Jul 2021 16:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627426913; cv=none; d=google.com; s=arc-20160816; b=hGsPjhZwejiNzRHa7KwVKg/imVhlXKu/KZsDOgXoV+rT6ksD9bh+iN0szxF7aEi0Q0 f7uAds61B1OdRdkZDwBWFA8ZstOgsYYKF8VxiMdzQ5vcwmiPk47IOyYxhTLw7d3INy3w 9d+dx+rsjDnWfIB9bwCJQeaEHgGQ0Wmu1dtFGaYmRow9IVv4LPZVSuKXapaeFhXa+RSo CVWlhf9uY9t9GxmSWt7F9n1ZirigdLAE0psXsYvLhbA/HJTWaE3YDPkuwRffUOrXnFPB xcQQXnxYfU2upnHPrGe6yhafrWVwf51fpH5UB2C5c8kSiOXij90Neqzr0OCXXsL7y+Xs R+4Q== 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=t2R0wBr3ypCidATp2ZWmt0kqHOiKf72d1fAdsIj0iTQ=; b=hsxScJoqrh5er120VmgZ0EEyL029CyzFORjnuoW3ZqHEsvd5l+s/NJZkVbyBUMXNXg bu/Tkqt47bjI1eG5Fy3AuFTXWD/ogBz3Jlg5+02al9M/ACkx/jDC5+lYviHK3TwVV8fP k99ZUWI4Z50DpZDgULCNc92oc2DhkuncZ1LJcopqpi1N2Xb0ra5LTyj5o1LEexjrxL9H b17kanwIAO6NpzZ5mRjyYyqghVEVl/IpQan5/e0/n+CnVl3LshNpflweySZ8kBHCtUsE J4/LTbY8IpgTvzhnLM42mvkwTri5JbCs41ppLEuJCPCFKPzocTDREJCper4JQTqwTZip vl1g== 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 v15si4922970jat.43.2021.07.27.16.01.29; Tue, 27 Jul 2021 16:01:53 -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; 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 S232576AbhG0XBR (ORCPT + 99 others); Tue, 27 Jul 2021 19:01:17 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:55837 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232198AbhG0XBQ (ORCPT ); Tue, 27 Jul 2021 19:01:16 -0400 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 16RN1CAI007369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jul 2021 19:01:13 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 8DB3E15C3DBC; Tue, 27 Jul 2021 19:01:12 -0400 (EDT) Date: Tue, 27 Jul 2021 19:01:12 -0400 From: "Theodore Ts'o" To: Mikhail Morfikov Cc: linux-ext4@vger.kernel.org Subject: Re: Is it safe to use the bigalloc feature in the case of ext4 filesystem? Message-ID: References: <0dc45cbd-b3b0-97ab-66a9-f68331cb483e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0dc45cbd-b3b0-97ab-66a9-f68331cb483e@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Jul 23, 2021 at 05:30:13PM +0200, Mikhail Morfikov wrote: > In the man ext4(5) we can read the following: > > Warning: The bigalloc feature is still under development, > and may not be fully supported with your kernel or may > have various bugs. Please see the web page > http://ext4.wiki.kernel.org/index.php/Bigalloc for details. > May clash with delayed allocation (see nodelalloc mount > option). > > According to the link above, the info is dated back to 2013, > which is a little bit ancient. > > What's the current status of the feature? Is it safe to use > bigalloc on several TiB hard disks where only big files will be > stored? Yes; the places where bigalloc is perhaps not as well tested is support FALLOC_FL_COLLAPSE_RANGE, FALLOC_FL_INSERT_RANGE, and FALLOC_FL_PUNCH_HOLE. Bigalloc is also not very efficient for large directories (where we allocate a full cluster for each directory block). Older kernels did not handle ENOSPC errors when delayed allocation was enabled, but that has since been fixed, and bigalloc is passing file system regression tests, so it should safe to use as you've described. Cheers, - Ted