Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp362189rbe; Thu, 29 Feb 2024 01:32:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWapy1xMzKh4WLqXO5WX+zbNEFS4MPp6UXxs5c7KshHvmpFX1nSklpEwQUTkqcCSaTgic4KVmgZwVx1DZSLPEhW3EwPyQfjMRrvhTWs/A== X-Google-Smtp-Source: AGHT+IGhGc+fK5exT/CPYwmLk+nqjesyODzvg4HEHXiFQVoc3HyBCR60RyS3UsuNXnc3fC5RGCd5 X-Received: by 2002:a1f:dfc3:0:b0:4d3:4ac2:29f4 with SMTP id w186-20020a1fdfc3000000b004d34ac229f4mr1413599vkg.2.1709199140110; Thu, 29 Feb 2024 01:32:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709199140; cv=pass; d=google.com; s=arc-20160816; b=WYJG2mpH3t2LikHJ7wI0gKFfbcpnCWV+I7M/VXRP72VN6wOQw3RE6aEhSbYdrZfIy/ OWPMvbH7TfXDqPi2wGX05sTBy7lDsAq7kipQL9IRsXpVxNc5LZIeO48rV4vJcJXPBdi5 RUiNmxu9u6bCK+1i/W6n4ltLaCWiEXis+1EUKz/VqoTYZu9F2LqnRlyhBmoKTa37jRVh IopAK56cYe410CvJ1wlzWT/LyXr3jkdVu7vRDcLqLi9nnhEOIfspXKKVBz3fDdf1lS0+ tbZ4VJRgZV91xjwMe+Iu2+JKVy5Z7ymEjChcFUr9SvmGfJwIt+eUmDOr9TNa5b8goohu fLDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=o/MZbNUm82wJ0smN4ZI9fIXzGicdoFKBpqsdICiE+8w=; fh=B5+/spr+SISl9Bo2v6bolvTjoebR9b/rjHPt6xjHNCw=; b=K8mVBNW92nhCnQP5yvaSRGy++Wr+KniCt1AUSBjHJ27hIQzI1zKa+8WlbkQ/0EIK77 lOpG7B/7Hr8OAflKAciEzWN+mLs6Y+W78OhDAAvqGso7qv6/HnxZImFMZJAd21Ha9WRk 1k55Lm8NMcaTIKLNDZSm+E6h9OadH4ra58dX5AckoiBUQeCQYNsWRpO0615XVh44gCTG 9F2+kEPH8xTKLwktfraO1KjGG8T4Rm43yUssLBBr8aHzXyq6F27vgb/gdN1GwIqwYK+E 4MsTZpBj8J2tgYTbr6jcKFY/7/Ws/X7UTkzP41YKRrw0OBnY5gf4acQJrtEHt66D4A0n Na/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1Sk539cE; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-86433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r26-20020a05620a03da00b00787a87b5741si980829qkm.555.2024.02.29.01.32.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 01:32:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1Sk539cE; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-86433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D08251C21171 for ; Thu, 29 Feb 2024 09:32:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F4A75D8F6; Thu, 29 Feb 2024 09:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1Sk539cE" Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com [209.85.221.169]) (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 960815D8E7 for ; Thu, 29 Feb 2024 09:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709199125; cv=none; b=rBRyBzUye3tQN9Z+M2m8xBEXb+/H5duTkatoFYF+4SafMIDFdwDyC9xodUHirGN60TVGfWlZ8tuI+M2V70VD9j0+xCxaWM1AG1q0k3404fY/T1qGi1bI2eGNFNv5vQ2J06uSUrMJ85MInHyRVEbeyAiBlzgGQ16JwsqzlKrAXV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709199125; c=relaxed/simple; bh=o/MZbNUm82wJ0smN4ZI9fIXzGicdoFKBpqsdICiE+8w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GLMLCea0aEZ0ir3wX/Hs1oXt5CGnA1cvLbdzYhK+UQ6/RKs3rEUSkXTbjFXQEFvfzJilBjDvaNY/43+ePe43E6CIzDcvlIQmWgBjkzpwBOybzJDdfUddiF1deYWwLvQrblqgG3ZEGvkRCosWYq9ddTFUYgO/iNh2le8laX/X1fE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1Sk539cE; arc=none smtp.client-ip=209.85.221.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-vk1-f169.google.com with SMTP id 71dfb90a1353d-4d355374878so34912e0c.0 for ; Thu, 29 Feb 2024 01:32:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709199122; x=1709803922; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=o/MZbNUm82wJ0smN4ZI9fIXzGicdoFKBpqsdICiE+8w=; b=1Sk539cE8o5FzNKJBVCxNknb7cr4kQ1+gNS7O6HPIi4yKHgsXR9eWePgrHyQvGADzW E5YCtpImhX6r2r1JClF/kcWB1KNBdTbQQH0NHFWDsIR0ookkc4GxUX3+d4puRkTZTDrn 2HkpRDsYvOyhnjhekT8a0+sWG3qrCWiz9ml/ZSXREn4QrctOv/jGo8AyOwsgPa7GCheL sGJv/FgEMuYNdmD/af2bvxd6fPvYMeP7Sg1elK8FXbHE2HRIMbxIBgJ0DwUIUrFHvY5i Y9d74GvdrXAkOA9pV7tc5hRpeh4ZDIbDCYADAnPbSKrCwBMBblbOMjwvo9Qd+TW7+ooL TGqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709199122; x=1709803922; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=o/MZbNUm82wJ0smN4ZI9fIXzGicdoFKBpqsdICiE+8w=; b=mcc2W2d1BAxMDBn57EvhO2rXAfAIkyuyKiOSIgSJDaXonWtAkYyDQj5Oza46oRWJZC /4E9ZIGN0UuWEJAZo1LN9VN7PhyAfoezatMuVrXtCnBIinSBqnGlyY1cjGhVlUy5baAk riTznBBcoplHuXb1Omruv2kuaRc/t6mbUv28O+Hb82V7vrNHZ3dSgPE6dSuZYVFACK+L /hW2EHSvpKBbPC2xFDzAH194wx3+XNnUZny0NL8pF+4DnzL8P6qK5haHujGtliv/xDMP kK1pJ7e6WnfU6gCGBZNdAYJN1LMsdduAx6uFTruR61VAbUPt78ky9UTaPRmCf1Qzbv70 pVlQ== X-Forwarded-Encrypted: i=1; AJvYcCXfyJwEzMxrHD/6eob+mG4aPE57KURSdI731toDKj7NKlAgas26bt6RNQSI3mtMCjrMJV1lfZr+plKc1+MZ3VrFEOwrXDy2SxTljCZC X-Gm-Message-State: AOJu0YxGUaRSP/un+77Xhj2KQJHJmlIOGsruius0JSppWLW4f2gU0mfF gZWIwOIWVftNIjnvrBwXhO4Is+B/61ATGk+Z7Xffl8WOySsX6BWpiKzOnGShdXAgpJ13RYtm1m5 xC82Y5zTlYX9gXRN1HuxOeE1qPeMOq3da0NM5 X-Received: by 2002:a1f:da03:0:b0:4c0:25db:3618 with SMTP id r3-20020a1fda03000000b004c025db3618mr1508020vkg.0.1709199122221; Thu, 29 Feb 2024 01:32:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20221122203932.231377-1-mathieu.desnoyers@efficios.com> In-Reply-To: From: Marco Elver Date: Thu, 29 Feb 2024 10:31:24 +0100 Message-ID: Subject: Re: [PATCH 00/30] RSEQ node id and mm concurrency id extensions To: Mathieu Desnoyers Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Christian Brauner , Florian Weimer , David.Laight@aculab.com, carlos@redhat.com, Peter Oskolkov , Alexander Mikhalitsyn , Chris Kennelly , dvyukov@google.com Content-Type: text/plain; charset="UTF-8" On Wed, 28 Feb 2024 at 21:01, Mathieu Desnoyers wrote: [...] > AFAIK the only project using the mm_cid concept I know of today is > tcmalloc. It's very useful to scale data structures such as memory > allocator arenas to the number of concurrently running threads > within a process without having to rely on heuristics on the > user-space side. > > I have plans to migrate LTTng-UST to per-ipc-namespace NUMA-aware > mm_cid as well (after I get around to submit this extension into the > Linux kernel) for user-space ring buffers over shared memory, but my > current focus has been on pushing support for extensible RSEQ into > GNU libc for the past year or so. > > We are getting there though: > > https://sourceware.org/pipermail/libc-alpha/2024-February/154390.html Glad to see this! > Once we have this key piece in place within GNU libc, it will become > easier to extend rseq further because the libc will adapt to the extended > feature set. > > Note that the overhead of the mm_cid assignment within the scheduler > should be negligible after > commit 223baf9d17f2 ("sched: Fix performance regression introduced by mm_cid"). > > Another thing we've actively been working on is to get the "librseq" > project [1] in shape so a copy the librseq headers can be integrated > into the GNU libc project as internal header files. So basically > librseq will become a GNU libc upstream. This will facilitate > implementation of rseq critical section within GNU libc. One of > the possible use-cases will be to move the GNU libc malloc > implementation to per-mm_cid arenas. I suppose if GNU libc malloc starts using it then usage would become ubiquitous in no time. > > I'm aware that TCMalloc was the inspiration for vCPUs [1], then renamed to > > CIDs, but am wondering if other users are out there. > > I'd be curious to learn about those as well. > > I suspect that the lack of official release of librseq critical section > helper headers may contribute to the fact that few applications use advanced > rseq features at this point. I guess you've answered my question, and I conclude "no known open source usage yet". A simple search on Github or the likes also didn't yield anything. I will go and check again in a year or so. ;-) Thanks, -- Marco