Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rFyZz-00D18U-47 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Dec 2023 15:33:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rFyZx-00Dxv9-Qc for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Dec 2023 15:33:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rFyZx-00Dxv0-Em for pgsql-hackers@lists.postgresql.org; Wed, 20 Dec 2023 15:33:49 +0000 Received: from mail-il1-x136.google.com ([2607:f8b0:4864:20::136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rFyZu-00BLok-TV for pgsql-hackers@postgresql.org; Wed, 20 Dec 2023 15:33:48 +0000 Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-35f71436397so42658305ab.3 for ; Wed, 20 Dec 2023 07:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703086425; x=1703691225; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=x6M9FxPste4zHnnaC3+2ppTNDDTafO0zlxDDDok1ZdE=; b=ZSonGPe7zNo3zyrnbnIsbeuk6ck5xF79lWSsP2PHR0e5XqWYJP5uQ/0SRlvSYfPlE8 XnaAqb8Mui3QQ/ooLgP5qZVKntSRSu7YmIOKNi8oOHYScADvbdYDduOwq0kMZf2bQL9S 3+4Gh/+fAQiSbKMuvmjgpb7AVzcOnwbqC1XtiLFzvO6FMI6nUrpDKLKxgGeNgweF1VIa z7boRNX2zJkIzXE0YsNRh/KYn/LwkrAl5kY5v8N+wluvcCyemP1mmxpjTlN6OYKuXCWR D6wLWziKRlNQl0+gUAr31+fWMKz4OvhKQaDw/p0R5eO8DydWshoMtwKBCe90ndLZRBoo JTqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703086425; x=1703691225; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=x6M9FxPste4zHnnaC3+2ppTNDDTafO0zlxDDDok1ZdE=; b=iE3CJf0tBZWod76ud1eQR8XMwHmcdkczkzPq1y3bTfTWSa7UnhOIXT9Ejrj9C5jUQ/ 4MU88fuXS7uzsYIb58tJ6YT/CIJs4nTgoX6IB6jqWxIkknVUoSxN5ud4gtPv9/1ODsZR jHEZCFtRnOWpFUSLAqEbMulnDgIbXxKgSuncbsgEbPWCDv+qmoUDFDAaC4zA5WFfCH2L MmnDc1vtykkf0onT9Rqla9s9ocnHmmNrjX6haIg1CaF5sXb6B348KYEXVXGMcf0WNn31 ALpVLsPFin5jNBwwyoHUjYT/Y07e5z3fB6LDNtSBhvW7ePGxu9vYEjnRtg2yGGW9lEmh 5Olw== X-Gm-Message-State: AOJu0Yy/YNpB+2Nj3MN3Aux/uSYnlZxMLlXZ2eEWFUNlKxBUur1HmKpt YEyIXAm/LekeCfpFOovXj/c= X-Google-Smtp-Source: AGHT+IGccwzeQjU9nGhO8v24ISn+0FPqq4fSR7kOzM9g2rJIdkLP7OI7Mn1cqmWmrajwbhUIxR0mMQ== X-Received: by 2002:a05:6e02:170a:b0:35f:b232:f72f with SMTP id u10-20020a056e02170a00b0035fb232f72fmr7191746ill.22.1703086425499; Wed, 20 Dec 2023 07:33:45 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id m10-20020a92caca000000b0035fd0649a12sm55440ilq.20.2023.12.20.07.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 07:33:45 -0800 (PST) Date: Wed, 20 Dec 2023 09:33:42 -0600 From: Nathan Bossart To: Andrei Lepikhov Cc: Michael Paquier , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: introduce dynamic shared memory registry Message-ID: <20231220153342.GA833819@nathanxps13> References: <20231205034647.GA2705267@nathanxps13> <3dcea2e9-c46d-4e4f-8371-9526d1aebc83@postgrespro.ru> <20231219161444.GD831499@nathanxps13> <80cbdd55-8a9d-4472-b360-893309e1f6ef@postgrespro.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80cbdd55-8a9d-4472-b360-893309e1f6ef@postgrespro.ru> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Dec 20, 2023 at 11:02:58AM +0200, Andrei Lepikhov wrote: > In that case, maybe change the test case to make it closer to real-life > usage - with locks and concurrent access (See attachment)? I'm not following why we should make this test case more complicated. It is only intended to test the DSM registry machinery, and setting/retrieving an atomic variable seems like a realistic use-case to me. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com