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 1ruele-006m51-Bv for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2024 20:42:02 +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 1rueld-008HFA-EB for pgsql-general@arkaria.postgresql.org; Wed, 10 Apr 2024 20:42:01 +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 1rueld-008HF2-3I for pgsql-general@lists.postgresql.org; Wed, 10 Apr 2024 20:42:01 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ruela-002Eqr-P1 for pgsql-general@lists.postgresql.org; Wed, 10 Apr 2024 20:41:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 43AKfwr64180221; Wed, 10 Apr 2024 16:41:58 -0400 From: Tom Lane To: Andreas Wagner cc: pgsql-general@lists.postgresql.org Subject: Re: Two server instances on one server In-reply-to: <644908bed5bd78e5d0d514a57f894a1451daec2e.camel@web.de> References: <644908bed5bd78e5d0d514a57f894a1451daec2e.camel@web.de> Comments: In-reply-to Andreas Wagner message dated "Wed, 10 Apr 2024 22:38:50 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4180219.1712781718.1@sss.pgh.pa.us> Date: Wed, 10 Apr 2024 16:41:58 -0400 Message-ID: <4180220.1712781718@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andreas Wagner writes: > I consider using two instances of the PG server on one node. The node > has two processors and each processor has 64GB memory assigned to it. > I'd like to > * restrict instance one to processor 0 and its memory and > * instance two to processor 1 and its memory > using numactl (or similar commands regarding cpuset) and partitioning. Seems straightforward enough to me, as long as you put the instances onto distinct port numbers. Are you encountering problems? regards, tom lane