Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp170959pxv; Wed, 7 Jul 2021 23:27:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjE52K/D+0SxAUJ6Ks/li75GAqjEx9uI5EBU6CSMfQUjW6bPDGj5Nj3kWZSfrUx35Szh2C X-Received: by 2002:a17:907:7b9e:: with SMTP id ne30mr21764836ejc.391.1625725622771; Wed, 07 Jul 2021 23:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625725622; cv=none; d=google.com; s=arc-20160816; b=corn07qZ4iXlluOvUHewE7IlbiV43EpdD1Vu8MiRR+C6BlYt/atQMvT86NvpYxpCdP jEqoSXy/6sJcEGuw/R1tievhtvrdBEOB/t/grMjuHXVeXpmgYnAGSoAzOaTpQugXMEkZ XmtZywjztUg26wlBTf0wD10zkiJnzBtl16pPCjWMfpsfJd+I6/M+uYjkY6YrO7w7jhaQ h+sPCpHdkHNGocRXCk9jlZcUfTYFR6HTHuISSykYDmRD6lk5NlR0WGy5uHfnuSwFvxiX pOf500s2ZlNWghBEuoOucPS3ixdN5cPuZTDm/Hj/HYPzR1iX/qDvxo+gbsCx3VZcjHDu 0qvg== 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:dkim-signature; bh=e+dWm4Wk2XbuKXB792X95kY0g+zLKwKACIvnGTaAgaM=; b=rSfzLrD/7NopQEXFY/6bNixtJMznbWJEQKFQMCuXy6tFoKt+C3TVViZsCo8OLztlq5 HVcOtYoIoRTntt7extjY3CLZSa/n3A/wDXwD1AK5Ok8cormbvanSpc3CoW6uS8QtLW88 JRtwdThgQEdmfWgAujERt9oMtMzFyco6WEW14FU7CpEcXQPkFhU7csBo4OHjnWW735CD pjkIm3jmfilNQqpz/q7ALjPjEt9PZCQu7Gupsg68yn5OmEK7iAwEM8pl/SnqSim+oB5n cCXgMcSE0tKDnjGSB3BLM9d8nnmTxLHJAx4GTtTjjuQ6uAEsuEXLhF2emdXpTMfmYXvn 6zfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Y4HnFV3V; 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=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si2237464edc.33.2021.07.07.23.26.39; Wed, 07 Jul 2021 23:27:02 -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=@ibm.com header.s=pp1 header.b=Y4HnFV3V; 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=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbhGHG1d (ORCPT + 99 others); Thu, 8 Jul 2021 02:27:33 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:11356 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbhGHG1d (ORCPT ); Thu, 8 Jul 2021 02:27:33 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1686Ivrq108660; Thu, 8 Jul 2021 02:24:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=e+dWm4Wk2XbuKXB792X95kY0g+zLKwKACIvnGTaAgaM=; b=Y4HnFV3V4ZuNHQW4rn3nm8FTIzJii0+TujF/VLs1FsFkeN3pB8432KkyCqxYy6cEdmT7 Cq17WfLavKnf8+XsohYMN+B9O4TT+GhrXX9AyCsRCy6gms625WYT5zhfn+oc96y9MThM 5rI7YAsfwwQk+vXftZ1QhL4UCcw+D+SwKRlKWtYbcKeXnq7muk3bpxxKqAvW2OmF76jV 5Rar2YTvlIsBfx/XyqTaFeILApP+mhCr2mqEeGoGyyBYNI0y+ypj1XySgMsBKqURl89p hJf+AtxInzlduVdgB2aXeWSKXkkjCeWG0JU6RqDb+qYPRAJDVEb0i+OEF3Kd4V3HI/o8 HQ== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 39mc16r11y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jul 2021 02:24:50 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1686Eq3V025058; Thu, 8 Jul 2021 06:24:48 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04ams.nl.ibm.com with ESMTP id 39jfh8t1wh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jul 2021 06:24:48 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1686OklE31719918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 8 Jul 2021 06:24:46 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5764911C069; Thu, 8 Jul 2021 06:24:46 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 03FF611C052; Thu, 8 Jul 2021 06:24:46 +0000 (GMT) Received: from localhost (unknown [9.77.197.191]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 8 Jul 2021 06:24:45 +0000 (GMT) Date: Thu, 8 Jul 2021 11:54:45 +0530 From: Ritesh Harjani To: "Theodore Ts'o" Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH 1/9] ext4/003: Fix this test on 64K platform for dax config Message-ID: <20210708062445.xnoij6ya7huedqcv@riteshh-domain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: TseHRBqcgk5u01S-BrbKlYCdLF9vxhgK X-Proofpoint-GUID: TseHRBqcgk5u01S-BrbKlYCdLF9vxhgK X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-08_03:2021-07-06,2021-07-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 impostorscore=0 mlxscore=0 spamscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107080033 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 21/06/30 12:27PM, Theodore Ts'o wrote: > On Mon, Jun 14, 2021 at 11:58:05AM +0530, Ritesh Harjani wrote: > > mkfs.ext4 by default uses 4K blocksize which doesn't mount when testing > > with dax config and the test fails. This patch fixes it. > > > > Signed-off-by: Ritesh Harjani > > --- > > tests/ext4/003 | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/tests/ext4/003 b/tests/ext4/003 > > index 00ea9150..1ddb3063 100755 > > --- a/tests/ext4/003 > > +++ b/tests/ext4/003 > > @@ -31,7 +31,8 @@ _require_scratch_ext4_feature "bigalloc" > > > > rm -f $seqres.full > > > > -$MKFS_EXT4_PROG -F -O bigalloc -C 65536 -g 256 $SCRATCH_DEV 512m \ > > +BLOCK_SIZE=$(get_page_size) > > +$MKFS_EXT4_PROG -F -b $BLOCK_SIZE -O bigalloc -C 65536 -g 256 $SCRATCH_DEV 512m \ > > >> $seqres.full 2>&1 > > _scratch_mount > > Thanks for the patch! Thanks for the review, sorry about the delay (- Last week was short a week for me). > > If the block size is 64k, then the cluster_size == block_size at which > point ext4/003 won't be able to test for the regression its designed > to test. So we probably need to scale the cluster size and file > system size relative to the block size. Yes, thanks for catching it. I think if make below change, i.e. scale cluster size, we should be good. Since this will make blocks_per_group = 4096 and clusters_per_group = 256. This is the condition, which I guess the original kernel patch fixed it for. So, we need not increase the filesystem size. $MKFS_EXT4_PROG -F -b $BLOCK_SIZE -O bigalloc -C $((BLOCK_SIZE * 16)) -g 256 $SCRATCH_DEV 512m \ -ritesh > > - Ted