Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5869403pxb; Thu, 27 Jan 2022 01:00:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY0YOfqaJYffG6x/GGlq35e6Xn+2oAtCPxwsUMDgAfYfco/vjQZQPbWz769t6IufPy1u4M X-Received: by 2002:a17:906:5d0a:: with SMTP id g10mr2085241ejt.37.1643274047251; Thu, 27 Jan 2022 01:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643274047; cv=none; d=google.com; s=arc-20160816; b=dzoUmXyhsaKu8VtDqivcHMIC6NIMaVN/h5f50nLOdRif7yK+3VPWAQU/mEYU7063FP FGJJzFHWKUPcIEZNtEpR2gsg61uNz4rU+/JsBFUc6gZUAPXqOL2J5BAFytGMNBqrWMaQ DMnQ25wtieB1aN5tJpA2YtEs5pMf6CfjkKM3VQyl3qFcZNMCt0TGmm4Ld6MJe31ojrt8 6wMRcNuBscXwn7BlWXZueWSUwxiErWCQ13L8yCbXZA7+jZh/zXvjelMSBD8d4MZ1+kBl iOPkzYHAYPGYeV2DVUmnkFP56rhlgBK1ls2rTY1qE587salHbwxFHUckuUjvC5lsd1xR d/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-topic:thread-index :content-transfer-encoding:mime-version:subject:message-id:cc:to :from:date:dkim-signature:dkim-filter; bh=WhNg8N27gF3iN7GhFfsYWyunl7sLSzaowOAX4hMmAOk=; b=TmPswu19HAsaqAQueiDoSjgpSrBPADiUwqzFSbfg1mFoKk8pYfG6nw+Nvk6/E6aI13 X9tMkGBHSlfpKVymYb/FEv1BKxuPBi5GCDbGHV0b6bvqEfy4piVBXBfI0aAyAEnQc/88 ifz/+7Es9vBworP6qgF3gmq8Bq6URAwqFxlHcCsezWehIYCHIdbwU0lZvv33lbJYAygZ 9+FkD6P/9Ha+3s+T2lL5FsEbb3QAKM7nw1MphLzVsrss/o+flhgveHXg2O+235SwA/2r hFUvFXdyEb+iJPUobjL08QoPkNKYWDOw9jYBRABthEC3yWDXRTztrRJk98lPDYSYSKdx Hj6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=ksTPZa3S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si973367edl.102.2022.01.27.01.00.22; Thu, 27 Jan 2022 01:00:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=ksTPZa3S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234454AbiA0BWy (ORCPT + 99 others); Wed, 26 Jan 2022 20:22:54 -0500 Received: from mail.efficios.com ([167.114.26.124]:52402 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234416AbiA0BWx (ORCPT ); Wed, 26 Jan 2022 20:22:53 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id D94AC363E3A; Wed, 26 Jan 2022 20:22:52 -0500 (EST) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id gmMN3NZlGKwc; Wed, 26 Jan 2022 20:22:52 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 8CEEA36364A; Wed, 26 Jan 2022 20:22:52 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 8CEEA36364A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1643246572; bh=WhNg8N27gF3iN7GhFfsYWyunl7sLSzaowOAX4hMmAOk=; h=Date:From:To:Message-ID:MIME-Version; b=ksTPZa3S+qK6YhDekMwQ0stz2dWonSKhqPS0WNseabD2jtYgYHEj4WIPOc1/wJq7f M3hzH0N9kk9tc5dkSqfn38+YlbE0BBn9sIPJ3LwLGR5GC2lqYeuIn8lWAq2/4MYzl5 6QoF4wpooCkqr4A7+7UgwwaxI3QGWK+q1ZrO24VBxJQa6Uxuxyz2kOxc5wmRlrY6qQ r5lsjkeL7PEFprPRnI5DGQYWCuzzWdE8844/JkbPykO/8vy/ghsTljIems7szS/ucs X5QwfcQz6TWHm9MCvbbh6gHEcxs13wtJ8GvRHN/jU6RHFXVPDzgCIGeEDCxa1jLaJe 829Sh+3KRSRlA== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Ewz4yBBKn4A1; Wed, 26 Jan 2022 20:22:52 -0500 (EST) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 7ECD5363649; Wed, 26 Jan 2022 20:22:52 -0500 (EST) Date: Wed, 26 Jan 2022 20:22:52 -0500 (EST) From: Mathieu Desnoyers To: Paul Turner Cc: Peter Zijlstra , Michael Jeanson , paulmck , Boqun Feng , linux-kernel Message-ID: <1211272108.4257.1643246572499.JavaMail.zimbra@efficios.com> Subject: rseq vcpu_id ideas MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_4203 (ZimbraWebClient - FF96 (Linux)/8.8.15_GA_4203) Thread-Index: ix/xoRPtt8dW/JcuQ/MP/FnBqGa3UA== Thread-Topic: rseq vcpu_id ideas Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, I remember our LPC discussions about your virtual cpu ids ideas, and noticed some tcmalloc code with "prototype" fields for vcpu_id and numa node id (https://github.com/google/tcmalloc/blob/master/tcmalloc/internal/linux_syscall_support.h#L34). I'm currently toying with ideas very close to vcpu_ids to solve issues with overzealous memory allocation for LTTng-UST (user-space tracer) in use-cases where containers use few cores. My current thinking is that we could use your vcpu_id idea, but apply it on a per-pid-namespace basis rather than per-process. We may have to be clever with NUMA as well to ensure good NUMA locality. Do you have any thought about this, and perhaps some prototype rseq extension code you could share as a starting point ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com