From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9ECB17BB21 for ; Fri, 20 Jun 2025 17:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750440048; cv=none; b=UylWqloHHrr6hrnu5OdwANgI5HIxCIErH5sMTQkDGcf9LoSVbLaaG/P3PcamYIqu+PZQJC5MrZBc5p+1H1eLKMSlYJ28CngIhxAG7a2AT56mdH4bsU4a8kzbPZ4iUYn1bg/bbggf85tfZivkuP5atp/JOkDnhya7a3mDDATwGNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750440048; c=relaxed/simple; bh=7H0fGYjbt2p71NCXLWJbMz2qxs1wwA9sa/Mf9Huru7A=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=dCF92ES3rZwugJ6HlW7VdIDADqgLJlqZcoqPT7d9qV7FNBnJQA4r8486jdYQ54DjtEwnNjzD5FsODWwmjB0fFGt3kXbSfJIP4zHReli2gCHwriapUcaM1p2x9L4IAtpYKZYi2EZ3g2Id9XLjxqpjib/PgL1J8rr3Fa1mItPA1rU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=G2TkRkrU; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="G2TkRkrU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1750440046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7H0fGYjbt2p71NCXLWJbMz2qxs1wwA9sa/Mf9Huru7A=; b=G2TkRkrUz1sjUQEy2Pe5R8J8OZ6pAh+qzwqGqW1xd+Ui7IKpUN2CkcDt9KcerZ3W7OjrWW Vu8i2LoUum2o+v4l+gNBsr7MhBCI2w1WQa+LtDk8DCzv70k/tYQuuSWfBm3a3uYg+/RUJ5 JMfQ97XCvMDFVefv3gvDtzXQWLW6MOs= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-222-tn5vpgw-OwOwD-l9gu-PpA-1; Fri, 20 Jun 2025 13:20:44 -0400 X-MC-Unique: tn5vpgw-OwOwD-l9gu-PpA-1 X-Mimecast-MFC-AGG-ID: tn5vpgw-OwOwD-l9gu-PpA_1750440043 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-ae020026569so188371166b.1 for ; Fri, 20 Jun 2025 10:20:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750440043; x=1751044843; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=7H0fGYjbt2p71NCXLWJbMz2qxs1wwA9sa/Mf9Huru7A=; b=v74xuh63Ebymmix/gwmU+hAPej5l94swr5WJxlh1A6k/c43vGslqOQNHuzL6Xe0gbv k090NNY3CC2pt1U0rVcTRatvy7UxTFBN9M3rzAgm0EeySkdNqCghPRYdfMa/jh1KaOeC XyXzimMUemZ1ktCXqhKy6NHuxtCrsEMokhzdqubJUl60LGd43Sy/OLa46k3Q+YRBtnR4 24CXEBTTwPQZ4Jh8xPD3YPYMe5Qdq9qYKX1HxkeU/wxDvVD1U7Hn8JLIdq9WOzrICi5b XXwfwBVnDpHkSusrlLsCJPjkpYHCYr/rc1jZ1nxR4B3Sg9cNjE7i7sR9QJWTK9TKyNXR dlTg== X-Gm-Message-State: AOJu0Yzx3aWB/JrU6I2rT/HLPHhzFkhS16a3wRO57GTwvfg0MEaCodXm KtM8mv+1pDPmgjG+0EdjYqDRL2AR6YQUDomnyGQgMRqFLmCX0b5F6l9NFC5qvUyF03zfWQPSnk3 IGl/cryy22dVv0pdJQ2u5QoLet9xKjMtPyGnQ1lDhHt9s7csJW+ewlqWEJ5Z92Lg6fw== X-Gm-Gg: ASbGncsLSVeVGksUkyK+t/GAytUCFaQ0xwVxYE6h3lCZGpLP6fdZfINXoVFZ2QBbvwd pngBniwNJJyAGCQa1TiF/axa1V+obYoVTDMBaCyRIMwiPnm/5K3PU9wo/YzGx4FDQPV1jCOvnMT JE6mUsGBr5G4mRRalNiMYktANp1UjVVu5uQKIq1EdzJSlTFUBu10zrDUEeEACP1q7bOCScSeBcE /D91xggphR0OqKcWlYGgpEDYpdmN7+bCfr1Sbwl8KLonvKH0GvrMvN4REqxF6XSc65fYe0PO/QJ 4RLBmgGqezuekpbvujJ7 X-Received: by 2002:a17:907:7f8c:b0:ae0:16e7:3d45 with SMTP id a640c23a62f3a-ae0579520b0mr365711366b.5.1750440043336; Fri, 20 Jun 2025 10:20:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDcRVxZng+oGBUNfoH5ARE40YRyymx8NWH6kz5sovCOec8moiDLjoMXSwpfLU/ALjiRAvAnw== X-Received: by 2002:a17:907:7f8c:b0:ae0:16e7:3d45 with SMTP id a640c23a62f3a-ae0579520b0mr365708266b.5.1750440042909; Fri, 20 Jun 2025 10:20:42 -0700 (PDT) Received: from [127.0.0.1] ([195.174.132.161]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae053e7f949sm191789566b.34.2025.06.20.10.20.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Jun 2025 10:20:42 -0700 (PDT) Date: Fri, 20 Jun 2025 17:20:38 +0000 (UTC) From: Gabriele Monaco To: Shuah Khan Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , Peter Zijlstra , "Paul E. McKenney" , Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Message-ID: <70fe4209-4a31-4957-a658-727081f8291a@redhat.com> In-Reply-To: <2606da6a-3a13-4db6-855e-8dcc61c45b45@linuxfoundation.org> References: <20250613091229.21500-1-gmonaco@redhat.com> <20250613091229.21500-4-gmonaco@redhat.com> <2606da6a-3a13-4db6-855e-8dcc61c45b45@linuxfoundation.org> Subject: Re: [RESEND PATCH v13 3/3] selftests/rseq: Add test for mm_cid compaction Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Correlation-ID: <70fe4209-4a31-4957-a658-727081f8291a@redhat.com> 2025-06-18T21:04:30Z Shuah Khan : > On 6/13/25 03:12, Gabriele Monaco wrote: >> A task in the kernel (task_mm_cid_work) runs somewhat periodically to >> compact the mm_cid for each process. Add a test to validate that it runs >> correctly and timely. >> The test spawns 1 thread pinned to each CPU, then each thread, including >> the main one, runs in short bursts for some time. During this period, the >> mm_cids should be spanning all numbers between 0 and nproc. >> At the end of this phase, a thread with high enough mm_cid (>= nproc/2) >> is selected to be the new leader, all other threads terminate. >> After some time, the only running thread should see 0 as mm_cid, if that >> doesn't happen, the compaction mechanism didn't work and the test fails. >> The test never fails if only 1 core is available, in which case, we >> cannot test anything as the only available mm_cid is 0. >> Reviewed-by: Mathieu Desnoyers >> Signed-off-by: Gabriele Monaco > > Mathieu, > > Let me know if you would like me to take this through my tree. > > Acked-by: Shuah Khan Thanks for the Ack, just to add some context: the test is flaky without the previous patches, would it still be alright to pull it before them? Thanks, Gabriele