Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp469115rwr; Wed, 3 May 2023 01:05:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RDx5bUX6lMu4cOw9cZXb/06fFL6RM06nb68H63svwbU6KrWDrRIUeUWsDBCFaxT2O0mSE X-Received: by 2002:a17:902:d507:b0:1aa:fe40:6f96 with SMTP id b7-20020a170902d50700b001aafe406f96mr1533395plg.23.1683101120555; Wed, 03 May 2023 01:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683101120; cv=none; d=google.com; s=arc-20160816; b=iv3oOsAa9EZTxWYhqVStKgR9ZIPMeQpg6REMznGp9YfhwZOvyKKCq8j/wVzx8w0uKS KsVmLUUyX/sHLNtyENXAF++4WPmk2Tzir+764TxM2UjFGEsae+CgNGEGzDv7iWxPn5o+ De1VIc5P9Q4Dq8xm+348PV/XnRupwVImkiB2Qdn3hqQvJZjxnfE/u56+EtZk4vv3ZKlV vubTT99/ciTTmglaV2sxpgyMhCN7/8psnyVFXjZpfGJ9o6Gw70cqAn9T0hRNjsmZY/wU zBrK6zBsPTsvj2YzTVByFeVlF2x6aXrEF4TE7CYl3Yz4JJO62YSwE312uC+aCDMWbpho IpnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=e2pq1wjnhWpzpAUzywg7yjYCKpUJJXlcUeZCAZuKjeQ=; b=BRcHLpLYcJQHreF9eJQShiPmuf37UQ8VpwPZfthWq1iQ+kG3UrAF80WAIXFxKTFp+6 r2ve8pesvx4iIMYhjIc3U8tFgM2W1qpBkYIG0e1kpvGHK+tRqEev/9vYh5h9taZdTAxU hM/6XrGeUGcWGNgPtk+GFdUk975QaF2CzQnFzVhaR9FOBnOAWN+CF/JpaOpRQZ254bGw vcDxrzNz8Q2jWx4PPJ5UZsiQIubQhwIL4s8WQ8ek7DcBDmbeEvGTLRnbAm/GxBq5r+sY LjXvoh09W0/YQHsFmuFnR53BUOkhhuT7y42ssPmHDjoyGK0Z2CPX5fK4EXKXRlBt2Hp+ szYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ajMzP1vc; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170902e80900b001a92a507187si6837304plg.80.2023.05.03.01.05.02; Wed, 03 May 2023 01:05:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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.de header.s=susede2_rsa header.b=ajMzP1vc; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjECIED (ORCPT + 99 others); Wed, 3 May 2023 04:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbjECIDT (ORCPT ); Wed, 3 May 2023 04:03:19 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A733646AE; Wed, 3 May 2023 01:03:16 -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-out1.suse.de (Postfix) with ESMTPS id 3D6B4223FE; Wed, 3 May 2023 08:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683100995; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e2pq1wjnhWpzpAUzywg7yjYCKpUJJXlcUeZCAZuKjeQ=; b=ajMzP1vczLO7G7jIFOc9NiidYl3WFlbFEYBsoWk5mT4U81vaYTbjZr9pcOOAfYA5/Wnv8n gF9mfH3QzZ7eqmT/3/XLXcCx9W5GVaars2uGz/GGATDQq6hjZmjYuzdhQ3Je48S7Eq3jCT uDZ5XBFtdofwoW/HsWrSRNr3T6fr1CE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683100995; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e2pq1wjnhWpzpAUzywg7yjYCKpUJJXlcUeZCAZuKjeQ=; b=Fdy1nUpx1DqPaJ5pDiwa7wy5yJ4yRGpqmlpU+rtEVOjvLbIo3wBU/xMLMqZWOjUkcxeUOP 6NKxwyuyAGhxFrBQ== 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 2F66A1331F; Wed, 3 May 2023 08:03:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id bwWbC0MVUmRDYgAAMHmgww (envelope-from ); Wed, 03 May 2023 08:03:15 +0000 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Hannes Reinecke , Daniel Wagner Subject: [PATCH blktests v3 09/12] common/fio: Limit number of random jobs Date: Wed, 3 May 2023 10:02:55 +0200 Message-Id: <20230503080258.14525-10-dwagner@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230503080258.14525-1-dwagner@suse.de> References: <20230503080258.14525-1-dwagner@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-kernel@vger.kernel.org Limit the number of random threads to 32 for big machines. This still gives enough randomness but limits the resource usage. Signed-off-by: Daniel Wagner --- common/fio | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/fio b/common/fio index 1db6128be632..06659d7d1d84 100644 --- a/common/fio +++ b/common/fio @@ -189,7 +189,8 @@ _run_fio() { # Wrapper around _run_fio used if you need some I/O but don't really care much # about the details _run_fio_rand_io() { - _run_fio --bs=4k --rw=randread --norandommap --numjobs="$(nproc)" \ + _run_fio --bs=4k --rw=randread --norandommap \ + --numjobs="$(OMP_THREAD_LIMIT=32 nproc)" \ --name=reads --direct=1 "$@" } -- 2.40.0