Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp579597rwr; Wed, 3 May 2023 03:12:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BpvvKD6HRsunKoA8w8CQjiX5MrlTUbQ478nAGlSKR2D4tcJOlp7q3BuKB36akYZC3ulzn X-Received: by 2002:a05:6a21:7881:b0:f0:5a5b:7bea with SMTP id bf1-20020a056a21788100b000f05a5b7beamr26452291pzc.61.1683108724759; Wed, 03 May 2023 03:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683108724; cv=none; d=google.com; s=arc-20160816; b=L8H0SgYZJ+bVK6wuIlGCpgW2yejRT9DvualRMTBbfBx0oQFlIkpCtmtBrjEgBszZQr qc7zb2rdl5tA3ElrUeJq2/jzT3gHS7gC+FDFZsTaKk4JDCam7gAvxUUKKOVCFvNKRSEZ fAJHrnQtI93nbhQws1LhJuuyqSLw6l/kgLnJELCObYQb+RbLlt8rCJiyp3cQpmRyrtmc 7k+HdvI1gtOi4f++vYo6wrECx7+cPw9GrZSIoWz6QvWNB3rpm82dgXbQTMGg4gA627Oh 74mRHVSHbCzBg7MDoieKJ8u6GzjbObPy7Ph2YS+oOMU9rtiZVfgkaMQGPdLp9d1SW2h4 5XBw== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=MhPsvIP/Fl+OgQ3SSydGb9NzwtjpVSqpig6DpUyvgs4=; b=LFKyE99Bv/5JdLLZkwDVbpl0G7kKsko/IKW5z+W5sMYZgdjaqudohyFDgLX+koqBUz xfMxuCriqKO/ESHr2Axto+FzfKp0BagxDQFykTWJZr564FU3lSUgNZBsyQtFSPRxmXo1 q/V7ZO7l568L/Ocy+LMhW9lAPziAE19omzR7RGtNAgJRdw+lb9MbownskXM5Dmce1JRO wUHe2Fv4oeYUus3s7IMerwsotVa5mJ6twLvPD1VxhiVByFXJFq8jnhIst0qALFE2a+Me B5/tNUk+FK4Iod81MSG+UhHhCWy42h5gm5wCyZ7VE78TdIOAixc69IAfqlhhj3qEYrdp ulhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=U4HMnoGz; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a632b02000000b0051ace49decbsi32036748pgr.769.2023.05.03.03.11.43; Wed, 03 May 2023 03:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=U4HMnoGz; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbjECKIG (ORCPT + 99 others); Wed, 3 May 2023 06:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjECKIF (ORCPT ); Wed, 3 May 2023 06:08:05 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30E00E43 for ; Wed, 3 May 2023 03:08:04 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 86ED9201FB; Wed, 3 May 2023 10:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1683108482; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MhPsvIP/Fl+OgQ3SSydGb9NzwtjpVSqpig6DpUyvgs4=; b=U4HMnoGzjneJMvxLGbJL7hFumNEzo7qN8humBtlp6gD4DAQSqnsf/tyyZIYgtNUhC7sHmR 2kgHUUZxrFkhaHNQHBLwekWVYQ6zrvU85Qvw1M/zDd0eafOriQk4xVSMHmM3MBSouw+tJf hLkFKFssXlZPOI5lT5jPVDZH/krdhEs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1683108482; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MhPsvIP/Fl+OgQ3SSydGb9NzwtjpVSqpig6DpUyvgs4=; b=MR+GCoYfaGGj4hPX4H8TdSQ2w0ik6zkjL9cKlRAAFnC87OMovi4eZCPeROSLKNnTV4xaFA 3MC+wJz+yyvM1pDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 33C4D1331F; Wed, 3 May 2023 10:08:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ewrXB4IyUmRWKwAAMHmgww (envelope-from ); Wed, 03 May 2023 10:08:02 +0000 Date: Wed, 3 May 2023 12:08:15 +0200 From: Petr Vorel To: ltp@lists.linux.it, NeilBrown , linux-nfs@vger.kernel.org Cc: Cyril Hrubis Subject: Re: [LTP] [PATCH v4 3/4] nfs05.sh: Lower down the default values Message-ID: <20230503100815.GA3716045@pevik> Reply-To: Petr Vorel References: <20230428160038.3534905-1-pvorel@suse.cz> <20230428160038.3534905-4-pvorel@suse.cz> <20230428170330.GA3536627@pevik> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230428170330.GA3536627@pevik> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi all, > Hi all, > > nfs05_make_tree.c runs make which needs on Btrfs quite a lot of > > temporary space. This is a preparation for the next commit which > > start using all filesystems via TST_ALL_FILESYSTEMS=1. Currently we use > > 300 MB, which was not enough for Btrfs: > Also, based on this detection we could add support for tst_device acquire SIZE > into tst_test.sh to support more than the default 300 MB (as we see the actual > use is obviously less for some filesystems). This would need to check size with > tst_fs_has_free. > Even we don't add this feature, it'd be more friendly to check for space > before creating the loop device: > if ! tst_fs_has_free $TST_TMPDIR 300MB; then > tst_brkm TCONF "Insufficient disk space to create a backing file for loop device" > fi > To be honest, I'd like to merge this patchset first, the rest can wait after the > release. > Kind regards, > Petr > > Filesystem Type Size Used Avail Use% Mounted on > > /dev/loop0 btrfs 300M 62M 20K 100% /tmp/LTP_nfs05.Vau10kcszO/mntpoint > > After lowering the default values 96% (58M) is being used. > > Proper solution would be to detect available size in nfs05_make_tree.c > > and lower down values based on free space. > > Signed-off-by: Petr Vorel > > --- > > New in v4. > > testcases/network/nfs/nfs_stress/nfs05.sh | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/testcases/network/nfs/nfs_stress/nfs05.sh b/testcases/network/nfs/nfs_stress/nfs05.sh > > index c18ef1ab4..34151b67a 100755 > > --- a/testcases/network/nfs/nfs_stress/nfs05.sh > > +++ b/testcases/network/nfs/nfs_stress/nfs05.sh > > @@ -8,8 +8,8 @@ > > # Created by: Robbie Williamson (robbiew@us.ibm.com) > > -DIR_NUM=${DIR_NUM:-"10"} > > -FILE_NUM=${FILE_NUM:-"30"} > > +DIR_NUM=${DIR_NUM:-"8"} > > +FILE_NUM=${FILE_NUM:-"28"} In the end these values are needed, when testing on systems with 64KB page size: DIR_NUM=${DIR_NUM:-"5"} FILE_NUM=${FILE_NUM:-"20"} THREAD_NUM=${THREAD_NUM:-"5"} Looking at PAGE_SIZE_LESS_THAN_256KB, CONFIG_PAGE_SIZE_LESS_THAN_256KB (option for all archs) and checking arch dependent configs I see that there can be 4KB, 8KB, 16KB, 32KB, 64KB, 256KB (each arch allows only some of them). Also filesystems evolve, thus finding safe value for *all* filesystems on different page sizes on different kernel versions might be a bit complicated. Kind regards, Petr > > THREAD_NUM=${THREAD_NUM:-"8"} > > TST_NEEDS_CMDS="make gcc" > > TST_TESTFUNC="do_test"