Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2246322rbb; Tue, 27 Feb 2024 16:09:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU02efJrEnMPShMEi+1Q0Sv16h5A7pv5GHNyX0TxEtTzqDQyxqM+W7HaHq4QFSXxerg29w3jmCut3FIfpfeVzrDRxuA6RkS91HTmtM08g== X-Google-Smtp-Source: AGHT+IFrnPbypGz8qELXDRqBspUs4MpKDSu0bnfjBy3cTJhWNwIg8upLPHTQ/uOraAwSBYdKWN/R X-Received: by 2002:ac2:44b0:0:b0:513:177a:29f6 with SMTP id c16-20020ac244b0000000b00513177a29f6mr761281lfm.19.1709078946531; Tue, 27 Feb 2024 16:09:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709078946; cv=pass; d=google.com; s=arc-20160816; b=oenZaZKmjP8v1J6n/ouIY1RWStmcokJRYeVUnpgt7q+eNnBnmNolvrg6BizSrCWhbE LzkNwMDVHK/c+wKqnNiALayenYfcfAIg81ko2uBVLbXCTCx02CR5IqJLESuZP4lUGV32 AkuDcd/3aFwRpS7GlBFDZQnV8d8CTmfAk30/c8miTnZKKBG8Ty0LtkJAM09XcAOdhVUn lhgojA/JZhy+37iyu8l2kEXi8xBE/MVhfi2Ozr5jWvvLSI/EKeeYC/3vI9nuaZ3vegi6 oB5l3MWAty7ZhIhx9Bh0YuJGUM2D/ADnXlIRGzd240OkC4EvCxaMmF/Fo9RKlCQ8Ekcl Qjdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Cq739qr1rsr2NonXQJuyDZ18sirm7FbjHPegYfq2M0w=; fh=XpM3TCKu4gmHpdWTsjD1FHbWmp+ys+RWn8+nA8DV2Uw=; b=gHl+keNGnj8XCSPY+kOVory0sv50Jl2FtPlFqWwhHK2BOIREYi1UJe+NmjKpo4TxXL +9DXuMhc6ivKbe8a8nEAL7Dykfu0vcV+guKNkKUmvy3KHqKJUWOp2EFYkHOku9JB87Ks mSRTqgwKWgVC1Y1TcOrN0ZFmuYa7FsIOAqsPJuHw+Y/9GlyHM7zvrFyfGmeuMPBMPcJ1 cqbPULRM+k2KV+LGdmUksa+pPCduHK7OO3+iDIvzWa4A64RsQZIE85XXUNnPsVBJnUH/ DugxIe+XT847bpS5kvfl8sAoznAl8eZT95iYR4WTHvCHlF0yEvs2jz7ibq575t1Sg22u jn4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=iLeIWnjq; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-84259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bm17-20020a170906c05100b00a43e7d14f20si267699ejb.908.2024.02.27.16.09.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 16:09:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=iLeIWnjq; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-84259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 061401F24F28 for ; Wed, 28 Feb 2024 00:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E571394; Wed, 28 Feb 2024 00:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iLeIWnjq" Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B656F15AF for ; Wed, 28 Feb 2024 00:08:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709078938; cv=none; b=nqDD1XhFjz8LacistUC1U89NlqDlephz/dMb0lNMoF81WaG8oPcCcBlMioLTf2sDWBtgdFqE2iFgETNpHte1thAQ7SXM68XAq49vEXF1JwsuShfDaeUBqzEcXmmpqtj55vfixci7todFQQqiZl1ntSXoA7a9eXC97Jc7Knlydd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709078938; c=relaxed/simple; bh=nTsK9p1jokxVeO3Fo4MQIH5ecfakK/v2VWS6ZWRauNM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=E4RmXhDz0bUy8yN68Kv/ZMzjOo9gzmfEqJ8+jqenDFbcAT9eIsVmRjYF90lwXZQSrZ6PrChybHrMUlpzs86Q26GbgwTH38R0XFR7MtAHEWhKNHsGYJCFxFda87n2lZKJHKEmYMhGb6SAdNurQBgR7yMJhkOLI4BR3SMcbr8OF+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iLeIWnjq; arc=none smtp.client-ip=209.85.166.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-il1-f171.google.com with SMTP id e9e14a558f8ab-365b413549eso957345ab.1 for ; Tue, 27 Feb 2024 16:08:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1709078936; x=1709683736; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Cq739qr1rsr2NonXQJuyDZ18sirm7FbjHPegYfq2M0w=; b=iLeIWnjqSGm0LFXCaE04SK1RaEvsmz8Lcto/E1KGOxArhel2d5MtJS+LT/QApErkpY y0Rhe/lzfD102AudZok9CuUBfbb/59geJnUM3uQ8hTtBSwqSDWxjZcQaz5Sq8Z5qGmnf ir7pY94wwLzKBWYOrcf4jSIHsLmeCcRlFiiko= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709078936; x=1709683736; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Cq739qr1rsr2NonXQJuyDZ18sirm7FbjHPegYfq2M0w=; b=r9kjCLZ9Y4v+0ALGBYVLt+/dGx3Sp8Qovr1JplEw+Dd0liAtg1ChiGs3madXETPPcY sRZbmiaD+xLeehWLbkB8hzUHJ8lsv1R1jvZ8i5tsZnbyRQ9+B42MKqLax8lEqlhyNQCK LyY1nD5nT8JBfNX8I+Wb6Tc87Gu5WShllMpXhZ9zh/O9GD6Ft5wpaRrQnxRzmU8n8Ums 2NfGAApEPEq8M3EqsohOQmRh7/m2rEcQTZ0atWtCuHxT1LOOT2lGX2ALsuQ3TcwiEtCD gks1bm4Z1DHJA/IMlF0MeA62EYQfgl6jweu0HOyNW/Fit47zmDscW2jRDP4XDAm9oCtO zppg== X-Forwarded-Encrypted: i=1; AJvYcCWpFsjSKKbSV7lMpaKlQ0gwQ98WzgjzflkxnGIlwO8w7/1JRBjkPWD9nEJUYK1KxY3rrP1zzrFfn31C6OC4BjmXo5u6Vlf5hwtwSmc8 X-Gm-Message-State: AOJu0YygKr15Us7ZZvljfv3KLEy2TAaGWKXeZIgE5Ftjd+0irMZTnQxJ nloMKX0kwORZMrBDnWgGnYxYYKDWQDpOSKdranKchV+j462UeC39fw2vHJSVJLY= X-Received: by 2002:a05:6e02:1d98:b0:365:2f19:e58e with SMTP id h24-20020a056e021d9800b003652f19e58emr11475957ila.3.1709078935853; Tue, 27 Feb 2024 16:08:55 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id x14-20020a056e020f0e00b00364b66eb5e3sm2427560ilj.24.2024.02.27.16.08.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Feb 2024 16:08:55 -0800 (PST) Message-ID: <987a671f-bacf-4c44-a48d-97ab74397628@linuxfoundation.org> Date: Tue, 27 Feb 2024 17:08:54 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 0/5] selftests/resctrl: Add non-contiguous CBMs in Intel CAT selftest Content-Language: en-US To: Maciej Wieczor-Retman Cc: Reinette Chatre , shuah@kernel.org, fenghua.yu@intel.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, ilpo.jarvinen@linux.intel.com, Shuah Khan References: <685828ed-06d2-4a2c-9911-05145e55ea1a@linuxfoundation.org> <48dab897-162d-4075-baa9-f5391a23d31d@intel.com> From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/26/24 02:28, Maciej Wieczor-Retman wrote: > Hi Shuah, > > On 2024-02-23 at 15:37:11 -0700, Shuah Khan wrote: >> >> Hi Reinette, >> >> Okay ran a quick test. Why does this test leave "/sys/fs/resctrl" >> mounted when it exits. Can we fix this to unmount before the test >> exits? > > I also wasn't able to reproduce this unmounting issue: > - with unmounted resctrl before test: > > [/root]# ls /sys/fs/resctrl/ > [/root]# > [/root]# ./resctrl_tests -t L3_NONCONT_CAT > TAP version 13 > # Pass: Check kernel supports resctrl filesystem > # Pass: Check resctrl mountpoint "/sys/fs/resctrl" exists > # resctrl filesystem not mounted > # dmesg: [ 12.502941] resctrl: L3 allocation detected > # dmesg: [ 12.507134] resctrl: MB allocation detected > # dmesg: [ 12.511315] resctrl: L3 monitoring detected > 1..1 > # Starting L3_NONCONT_CAT test ... > # Mounting resctrl to "/sys/fs/resctrl" > # Write schema "L3:1=3f" to resctrl FS > # Write schema "L3:1=f0f" to resctrl FS # write() failed : Invalid argument > # Non-contiguous CBMs not supported and write of non-contiguous CBM failed as expected > ok 1 L3_NONCONT_CAT: test > # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 > [/root]# ls /sys/fs/resctrl/ > [/root]# > > And with mounted before test: > > [/root]# ls /sys/fs/resctrl/ > [/root]# > [/root]# mount -t resctrl resctrl /sys/fs/resctrl > [/root]# ls /sys/fs/resctrl/ > cpus cpus_list info mode mon_data mon_groups schemata size tasks > [/root]# ./resctrl_tests -t L3_NONCONT_CAT > TAP version 13 > # Pass: Check kernel supports resctrl filesystem > # Pass: Check resctrl mountpoint "/sys/fs/resctrl" exists > # resctrl filesystem is mounted > # dmesg: [ 12.502941] resctrl: L3 allocation detected > # dmesg: [ 12.507134] resctrl: MB allocation detected > # dmesg: [ 12.511315] resctrl: L3 monitoring detected > 1..1 > # Starting L3_NONCONT_CAT test ... > # Mounting resctrl to "/sys/fs/resctrl" > # Write schema "L3:1=3f" to resctrl FS > # Write schema "L3:1=f0f" to resctrl FS # write() failed : Invalid argument > # Non-contiguous CBMs not supported and write of non-contiguous CBM failed as expected > ok 1 L3_NONCONT_CAT: test > # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 > [/root]# ls /sys/fs/resctrl/ > [/root]# > > Looking at the code there is an unmounting function called after each test (at > the end of run_single_test() inside of test_cleanup()). The non-contiguous test > also doesn't write any data into a temp file so no additional cleanup is > necessary. > Looks fine. Thanks for the clarification. thanks, -- Shuah