Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8048387ybi; Thu, 6 Jun 2019 05:59:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx738FYE1zWgXUMVc8yhbk+12xK0izwwie+hsjlR2JIB7bSL3ABYcf916hSs6iZImJcOzKL X-Received: by 2002:a17:902:8648:: with SMTP id y8mr2235064plt.238.1559825965343; Thu, 06 Jun 2019 05:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559825965; cv=none; d=google.com; s=arc-20160816; b=VrxyAmUQVjsHNwfXphDuDFA3MYA79mPH4lH32SNOi/K54WDv1Mut9f1Gpuf4h2d5vI GPrf4/F/YCPv1OCnVa6a0uxITkzh0WMPzKJvp6+slYQLmNm0KNFoI59qxcMqd7DjCUA3 1OJdAoAKK1ceJR2t3zFtlwzJZcFgP5y03pylF7N8K/SW56wfWX654ADLwZDq50Y5ZcC0 A4k9i7cQA3OEBdsSkNxgvjIGctDM14lk+g/09IYR9+j2d36Nb9UD4rHq9+nYvysbtUDk QLUoke2F8pmxbSlm8hQHmeW565m57DOaS/Yz3jY+8Nj6TPJDbBjjF+uP2AjQ6fFa+6ne XGdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=vaVAGfvIWmlk7NtGq1TPLC8ZKE6xRNld3Q7CKBoUXaw=; b=S4zr2SLqq0MDjJ4BrDOmrzyp9MAOuRb7/VTUFF08JJVFfN47Y3PNHFQmoc6/J4Nbtd tykce7W/fNfnM57DvrkfFR3gC7nWF1bRvt8a1X//5kJlPC7oJlL8T0zrxUFua6M/G1MH NdwQ3UoDhtLLF7vSST3fMRFJcRLaniYuEQdssl/eiODmGTgFANqkFRPw26pSK83qa5C5 13sYxewxTblK5TiMSCx/QAjZEBTcCdKoD2pCC2DcTXazWt4sx1cd2i45vlP8Bd2uCEFO po8Ttl7pjoyOIsRLVTLML4DM3zh2a0VKEG8qH8yDyxxUY8ayoOSFbhk3uZqyyuqM19d8 o66Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dbiovk8o; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q20si1913228pjp.96.2019.06.06.05.59.05; Thu, 06 Jun 2019 05:59:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dbiovk8o; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 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 S1727494AbfFFMcu (ORCPT + 99 others); Thu, 6 Jun 2019 08:32:50 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:32968 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726717AbfFFMcu (ORCPT ); Thu, 6 Jun 2019 08:32:50 -0400 Received: by mail-lj1-f196.google.com with SMTP id v29so1854824ljv.0 for ; Thu, 06 Jun 2019 05:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vaVAGfvIWmlk7NtGq1TPLC8ZKE6xRNld3Q7CKBoUXaw=; b=Dbiovk8ouunaJQRHMVqIJGlVObWaS7VVzG3itjvdtaBAlisSGpHCrhTW1XLyJCJxpP FNUpZoLUKiDRWNKBgTVeP3xhB4UZMqoefcdWr3LbfcZFRz/IjqOzyaesMDl3iW9lwUNO 7SrwhBArqdooHDmUBtbcLr4E5XIbMJuNEQD2QSPPVc1v3Ku0MqRo3esEblFfW9X985mK 17L3TuBctpvtQamvQpQkYcaGjWg+K5tmsQ86urGgDghsglYJu/yppXA/OtnGxW30yTIg rVWHIywZb2yJpWXSS1fhuarNEmKCWd1t6fJUGw95Us7HocoThFfxJCk3Y1W4XNVtTrLh YOiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vaVAGfvIWmlk7NtGq1TPLC8ZKE6xRNld3Q7CKBoUXaw=; b=iHlluuMa0Qj/RVurKY0/wPKu6VwR3IvAsqfLMpA/kFCoC7OFs2fbYRRCU7IlzPE4H7 RBLGPcLBll1/sjbMA5Ix5kB8m2MQBdEqHbpinCK0vt6Eqc7xQQ1rxiJ6HcnxeOZ95Kti bnTT8UnYFrqfzyO+TeaQxMaYB+Dlezprz/fZnWMGCSYYvitdJD37UlBrzQfL7NcEI1vM z4Yaboyl5oJSbUVdUFl6nMtRS5YcMnvaL0ba/TblpoPp52boNT0b+z4DJuBv7zIVSTu6 C98fUAeUEh1Qua57d23kglgQ18Q3hBBrMh+Tp1p7aaGzT7NS5rs2E3zAoJ8i7enOZG45 gu4Q== X-Gm-Message-State: APjAAAWhimkCu9CXURXlLJSjn9GVoL8uxW2d8lSKLSsY5SjVXhRcEYwS ct2hK+NKrwzn3JM3VlzIlDF7kb/oa+c= X-Received: by 2002:a2e:8591:: with SMTP id b17mr13682386lji.71.1559824368608; Thu, 06 Jun 2019 05:32:48 -0700 (PDT) Received: from [192.168.1.192] ([195.208.173.203]) by smtp.gmail.com with ESMTPSA id b18sm276929lfi.30.2019.06.06.05.32.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 05:32:47 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [HELP] What are the allocated blocks on a newly created ext4 fs ? From: Artem Blagodarenko In-Reply-To: Date: Thu, 6 Jun 2019 15:32:44 +0300 Cc: linux-ext4@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca Content-Transfer-Encoding: quoted-printable Message-Id: <7FD3148B-1E27-4BFA-965C-9FDC7FC8FD96@gmail.com> References: To: Jianchao Wang X-Mailer: Apple Mail (2.3273) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hello Jianchao, Not enought input data to give an answer. It depends on mkfs options. = For example, if flex_bg option is enabled, then several block groups are = tied together as one logical block group; the bitmap spaces and the = inode table space in the first block group, so some groups are not = totally free just after FS creating. > On 6 Jun 2019, at 13:41, Jianchao Wang = wrote: >=20 > Dear all >=20 > After I newly created a ext4 fs and check the mb_group, >=20 > #group: free frags first [ 2^0 2^1 2^2 2^3 2^4 2^5 = 2^6 2^7 2^8 2^9 2^10 2^11 2^12 2^13 ] > #0 : 23513 1 9255 [ 1 0 0 1 1 0 = 1 1 1 1 0 1 1 2 ] > #1 : 31743 1 1025 [ 1 1 1 1 1 1 = 1 1 1 1 0 1 1 3 ] > ^^^^ > #2 : 32768 1 0 [ 0 0 0 0 0 0 = 0 0 0 0 0 0 0 4 ] > #3 : 31743 1 1025 [ 1 1 1 1 1 1 = 1 1 1 1 0 1 1 3 ] > #4 : 32768 1 0 [ 0 0 0 0 0 0 = 0 0 0 0 0 0 0 4 ] > #5 : 31743 1 1025 [ 1 1 1 1 1 1 = 1 1 1 1 0 1 1 3 ] > #6 : 32768 1 0 [ 0 0 0 0 0 0 = 0 0 0 0 0 0 0 4 ] > #7 : 31743 1 1025 [ 1 1 1 1 1 1 = 1 1 1 1 0 1 1 3 ] > #8 : 32768 1 0 [ 0 0 0 0 0 0 = 0 0 0 0 0 0 0 4 ] > #9 : 31743 1 1025 [ 1 1 1 1 1 1 = 1 1 1 1 0 1 1 3 ] > #10 : 32768 1 0 [ 0 0 0 0 0 0 = 0 0 0 0 0 0 0 4 ] > #11 : 32768 1 0 [ 0 0 0 0 0 0 = 0 0 0 0 0 0 0 4 ] >=20 > There are some bgs that have 1024 blocks allocated. What are they for = ? >=20 BTW, I don=E2=80=99t see from mb_group output why 1024 blocks allocated = in group #1 > Many thanks in advance > Jianchao Best regards, Artem Blagodarenko.