Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp888626pxa; Wed, 12 Aug 2020 16:14:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXOgeGyjb2ckfLEVdr8PHCkILK4QAMaWoZK/I6I+CQuZvQX7FYRIPEqkGNcGtKXkJtciq3 X-Received: by 2002:a50:d80f:: with SMTP id o15mr2242949edj.156.1597274088160; Wed, 12 Aug 2020 16:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597274088; cv=none; d=google.com; s=arc-20160816; b=W+WJpo6KbsICDjnxmkF1SJlLlagLq/OaNPNRThdw4UVXJY8YqH3rB9WWMK2gw+SS0J Z7yZjwAfNSaZRul5id3Wpv/ZIuh81JaldAAFHVDdfJEu9JwduKg2eJqmuDZxFD/1+rHD KIBCIxrZ3qJGsPuhDapIx+8ga8eqKATBVX/k7rPqHC4ZeE3sNBfyM3WO8UNv5GXz1Kha 6rv1wVXAsniMkoa/nzEkIYCRGEz9ez4wbkOVTMnwSoIaFvtPc8ccNxqAwMGw6lzUa/jx zhsDi1tAo8AnmaZxQWG9cacMDSjvCn2+pAUYVpLH5bKJxoUWSLP5hJIWduSzhnhrxcAU Ebow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=8i9xvY9X3kz6tmBUKZZbofP3sKIeH8xghFVGnlzkYN0=; b=v3HAUQT+CsBcUyBcvvaGrMjp/jeDMkoN1Of1QAbsF0DWXzOltDszAe7lDBxg6qI6lK xk8JnOq43uDSttPPSyqci52fmFJO4ZuQ6+tetrxIh53aa2ho8yu7Thtm2nBEv3QycxVY ixxJIfVBs5cW03+kf2nU0026NVnZlbp52+fTBa1UDkN9SWmcy1Z0mUYdBTxN6dZFJ3Zr m27QOLwCSIWe0o9IbaYrCHCorFfiFQWQbbwQWiBhyrH2SfH++vpkoeE02guuOsI02aIn /U6tPP5yvhjPcavpSFh5wxjYUX8IAGB9uyO078NQDbyJ7WKaZNFG+2d6Ezcud+wdqKI/ SSZQ== 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 l26si647655eje.138.2020.08.12.16.14.13; Wed, 12 Aug 2020 16:14:48 -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 S1726557AbgHLXOF (ORCPT + 99 others); Wed, 12 Aug 2020 19:14:05 -0400 Received: from mail.thelounge.net ([91.118.73.15]:46179 "EHLO mail.thelounge.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbgHLXOE (ORCPT ); Wed, 12 Aug 2020 19:14:04 -0400 Received: from srv-rhsoft.rhsoft.net (rh.vpn.thelounge.net [10.10.10.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256)) (No client certificate requested) (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 4BRlrV1MSWzXSR; Thu, 13 Aug 2020 01:14:02 +0200 (CEST) Subject: Re: libext2fs: mkfs.ext3 really slow on centos 8.2 To: Andreas Dilger , Maciej Jablonski Cc: linux-ext4@vger.kernel.org References: <4D72360F-7836-4C4F-920D-4D1BC1DE704E@dilger.ca> From: Reindl Harald Organization: the lounge interactive design Message-ID: <3cc33ea5-ab63-344e-7251-daa808b855bb@thelounge.net> Date: Thu, 13 Aug 2020 01:14:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <4D72360F-7836-4C4F-920D-4D1BC1DE704E@dilger.ca> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Am 13.08.20 um 00:45 schrieb Andreas Dilger: > On Aug 10, 2020, at 6:37 AM, Maciej Jablonski wrote: >> On upgrading from centos 7.6 to centos 8.2 mkfs slowed down by orders >> of magnitude. >> >> e.g. 35GB partition from under 8s to 4m+ on the same host. >> >> Most time is spent on writing the journal to the disk. >> >> strace shows the following: >> >> We have got strace which shows that each each block is zeroed with >> fallocate and each >> invocation of fallocate takes 10ms, this accumulates of course. > > Do you really need to use mkfs.ext3, or can you use mkfs.ext4 and > mount the filesystem as type ext4? Then you can use the "flexbg" > feature and it will not only speed up mkfs but also many other > normal operations (e.g. mount, e2fsck, allocation, etc) typo: it's "flex_bg" and enabled by default (Filesystem created: Sun Aug 9 13:24:15 2020) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum ext3 is something of the past for a full decade now