From patchwork Mon Sep 11 11:22:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shizhao Chen X-Patchwork-Id: 1832271 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=d9XbKz1F; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rkl1P2cJlz1yhZ for ; Mon, 11 Sep 2023 21:32:09 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id B2D953CE83A for ; Mon, 11 Sep 2023 13:32:06 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 757493CB3AE for ; Mon, 11 Sep 2023 13:22:49 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 9E3ED2001B1 for ; Mon, 11 Sep 2023 13:22:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694431367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=uyE1eip6C/Xy3OnNfClWFuPgCpowCl/hguga/One22Y=; b=d9XbKz1F9XbSIu+N9BZDbNqVFqUtc15ENbwLfspyRZeqCUb140Ix+ZycJQpNdLjufnzou6 5dwJTDHUmbnDWcjgjMlTWOOHQd/NDFjhY6LrEEMCAQnGwMe5K7tucsCp2KYrXY9lvuqyPT LillRqQFKr7ZbV7UfJMZlwNPdQYVr2o= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-344-JTUc4N7EMemwvkzy6PC7Mw-1; Mon, 11 Sep 2023 07:22:44 -0400 X-MC-Unique: JTUc4N7EMemwvkzy6PC7Mw-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-500b5dbf113so4357102e87.0 for ; Mon, 11 Sep 2023 04:22:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694431358; x=1695036158; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uyE1eip6C/Xy3OnNfClWFuPgCpowCl/hguga/One22Y=; b=t5yl/18Kv3y5rMtPawx7/IZ/LV7hg2ktfwvTsPYUw35YGiWloKvJEW/qZVNP45Lqeh NevWY/Js4cjXyMc4jxLydQ2oYNbqCuc6i7HFOkIB3vawKGxzmrYQBa5AU0xUIUor23Nm 9P8Z+/L8dUGg/i9p0EPlMN8ZGI8GRX1yk2pwb457kzlF2C5zpgfsVAmUk4LSSlvo1sf9 zpiLSHTjWsRyEp4BaliBGyxh33E8hHK+UBKmy45pfqt2Fq6wZlyg6vZPvVaDRGVVY/oa qte2RK7l0EhWv5vsuBM8CjHRXmNyzg6pmDAgK1gMsUwuiEKnec16PIGtb1d7SIi4QUW8 qPPA== X-Gm-Message-State: AOJu0YzGeTmO0xJRDKocGQiVuWNbuT0sWCGj4POW1NJdeHgvEs0zft9f waYEPByHmQONmFwSD6fMq8dBhx1gD+mxcFbTVMu1cB2k+bC0Q4hs+JoFpZoCbEBVtPUdU8v2ROX 4Yww4WZTQ2mymz3Qg0+1puoSaJU8coRxrMFy2g3Bg3fg= X-Received: by 2002:a05:6512:2809:b0:4fb:7675:1c16 with SMTP id cf9-20020a056512280900b004fb76751c16mr8414378lfb.49.1694431358297; Mon, 11 Sep 2023 04:22:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/6PNm6kgKFTXFbTLufh/UieCru5CEJ/v2fk6UaXiJBi+k792bHBj0vLhNleAyv2sf0CA4jxPdfmMCPqFopoE= X-Received: by 2002:a05:6512:2809:b0:4fb:7675:1c16 with SMTP id cf9-20020a056512280900b004fb76751c16mr8414366lfb.49.1694431358014; Mon, 11 Sep 2023 04:22:38 -0700 (PDT) MIME-Version: 1.0 From: Shizhao Chen Date: Mon, 11 Sep 2023 19:22:27 +0800 Message-ID: To: ltp@lists.linux.it, Ping Fang , Li Wang X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Virus-Scanned: clamav-milter 1.0.1 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it X-Mailman-Approved-At: Mon, 11 Sep 2023 13:32:05 +0200 Subject: [LTP] [PATCH] numa01.sh: unset default cpuset awareness before verify physcpubind X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" On systems with cpu isolation configured (a very common technique used in the real time kernel), $run_on_cpu may happen to be an isolated core and hence unaccessible to numactl. Unset default cpuset awareness with --all, so numactl can use all possible CPUs/nodes for following physcpubind settings. Signed-off-by: Shizhao Chen Reviewed-by: Li Wang --- testcases/kernel/numa/numa01.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) var=`awk '{ print $2 }' /proc/$pid/stat` while [ $var = '(numactl)' ]; do diff --git a/testcases/kernel/numa/numa01.sh b/testcases/kernel/numa/numa01.sh index 367813ce9..0181cd8f5 100755 --- a/testcases/kernel/numa/numa01.sh +++ b/testcases/kernel/numa/numa01.sh @@ -183,7 +183,7 @@ test4() no_of_cpus=$(tst_ncpus) # not sure whether cpu's can't be in odd number run_on_cpu=$(($((no_of_cpus+1))/2)) - numactl --physcpubind=$run_on_cpu support_numa pause & #just waits for sigint + numactl --all --physcpubind=$run_on_cpu support_numa pause & #just waits for sigint pid=$!