Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fgYNe-00089a-W9 for pgsql-admin@arkaria.postgresql.org; Fri, 20 Jul 2018 16:35:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fgYNb-0003PM-7J for pgsql-admin@arkaria.postgresql.org; Fri, 20 Jul 2018 16:35:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fgYNb-0003PF-01 for pgsql-admin@lists.postgresql.org; Fri, 20 Jul 2018 16:35:43 +0000 Received: from mtaout002-public.msg.strl.va.charter.net ([68.114.190.27]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fgYNX-0001qz-PK for pgsql-admin@lists.postgresql.org; Fri, 20 Jul 2018 16:35:42 +0000 Received: from impout002 ([68.114.189.17]) by mtaout002.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20180720163537.WJVV7360.mtaout002.msg.strl.va.charter.net@impout002>; Fri, 20 Jul 2018 11:35:37 -0500 Received: from cerberus.crazybean.net ([24.151.10.150]) by impout002 with charter.net id D4bd1y0023EE3TL014bdfZ; Fri, 20 Jul 2018 11:35:37 -0500 X-Authority-Analysis: v=2.2 cv=C6eZ8UH+ c=1 sm=1 tr=0 a=D2HTw/M6/8MmcHighGO7rg==:117 a=D2HTw/M6/8MmcHighGO7rg==:17 a=IkcTkHD0fZMA:10 a=R9QF1RCXAYgA:10 a=oIfrFNJ-AAAA:8 a=epTmVMiNAAAA:8 a=O6bb6uwMQEX77VxcHFoA:9 a=QEXdDO2ut3YA:10 a=Cg2NcamS17xU0rR7el6q:22 a=ndEWmUVY6Yapc0oHF_P4:22 Received: from [10.25.227.111] (144.121.139.193.lightower.net [144.121.139.193]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id f305ea0e (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 20 Jul 2018 12:35:36 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.17\)) Subject: Re: repeated out of shared memory error - not related to max_locks_per_transaction From: Rui DeSousa In-Reply-To: <019a01d4203f$bc4983f0$34dc8bd0$@merqurio.it> Date: Fri, 20 Jul 2018 12:35:35 -0400 Cc: Tom Lane , pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <00a601d4201a$e2291a10$a67b4e30$@merqurio.it> <17662.1532096551@sss.pgh.pa.us> <016801d42037$4f5d4630$ee17d290$@merqurio.it> <018201d42038$7146a6a0$53d3f3e0$@merqurio.it> <019a01d4203f$bc4983f0$34dc8bd0$@merqurio.it> To: Alfonso Moscato X-Mailer: Apple Mail (2.3445.100.17) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Just using the common tools like htop or (ps aux); specifically VIRT = column in htop or VSZ column in ps. Basically, how much virtual memory = is allocated to the process (the total address space of the process). > On Jul 20, 2018, at 11:38 AM, Alfonso Moscato = wrote: >=20 > Hi Rui, > we have 100 forked postgres processes, I don't know how to determine = if we are hitting the 47Gb limit. > Any suggestion? >=20 >=20 > -----Messaggio originale----- > Da: Rui DeSousa =20 > Inviato: venerd=C3=AC 20 luglio 2018 17:03 > A: Alfonso Moscato > Cc: Tom Lane ; pgsql-admin@lists.postgresql.org > Oggetto: Re: repeated out of shared memory error - not related to = max_locks_per_transaction >=20 >=20 > Alfonso, >=20 > Do you happened to know how large the process is when it starts giving = error messages, anywhere near 47GB?=20 >=20 > =E2=80=94 but we tried with work_mem to 130mb, shared_buffer to a = maximum fo 40gb, >=20 > Having shared_buffer to 40GB would be two high for the current = configuration and I would expect to see out of memory errors given that = your system commit limit is 47GB; However, with shared_buffers at 23GB I = don=E2=80=99t think you should be hitting the 47GB limit =E2=80=94 are = you? >=20 > To increase the commit limit you can add more swap and/or adjust the = overcommit ratio. >=20 >=20 >=20 >=20 >=20 >=20