Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEoof-000287-U9 for pgsql-admin@arkaria.postgresql.org; Tue, 14 Jul 2015 01:15:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZEoof-0000tx-5s for pgsql-admin@arkaria.postgresql.org; Tue, 14 Jul 2015 01:15:25 +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.84) (envelope-from ) id 1ZEooe-0000tc-IA for pgsql-admin@postgresql.org; Tue, 14 Jul 2015 01:15:24 +0000 Received: from mailout.easymail.ca ([64.68.201.169]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZEooa-0005YG-OM for pgsql-admin@postgresql.org; Tue, 14 Jul 2015 01:15:23 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id CD9BEE1EB; Mon, 13 Jul 2015 21:15:17 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mailout.easymail.ca X-Spam-Flag: NO X-Spam-Score: -3.852 X-Spam-Level: X-Spam-Status: No, score=-3.852 required=5 tests=[ALL_TRUSTED=-1.8, AWL=-0.145, BAYES_00=-2.599, DNS_FROM_AHBL_RHSBL=0.692] Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (easymail-mailout.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tR2FiWV674wW; Mon, 13 Jul 2015 21:15:15 -0400 (EDT) Received: from [192.168.2.16] (unknown [8.39.228.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id BDA81E1DD; Mon, 13 Jul 2015 21:15:14 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: could not create shared memory segment: Invalid argument From: Scott Ribe In-Reply-To: Date: Mon, 13 Jul 2015 19:15:12 -0600 Cc: Scott Whitney , "pgsql-admin@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <35EBDB73-CF15-40D6-8AEB-F31AF39FDD5D@elevated-dev.com> References: <68lu4k8tv291mdsfmpf9wvf5.1436832911969@email.android.com> <9CBF373D-FFB2-4094-8316-176B1D4F936D@elevated-dev.com> To: Ryan King - NOAA Affiliate X-Mailer: Apple Mail (2.2098) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Jul 13, 2015, at 6:49 PM, Ryan King - NOAA Affiliate wrote: >=20 > Yeah thanks I see I was going the wrong way...thanks.=20 > So shared_buffers is 15gb and max_conn =3D 1000.=20 OK, you haven't shared your OS or hardware setup, but a few general points: - 15GB is large for PG shared buffers; it usually doesn't help to go that h= igh; remember, shared buffers is a kind of working cache, not the whole cac= he, PG depends on the OS caching of recently-used files; - Your shmall is only 16GB. PG may not be the only user of shared memory. I= t doesn't make sense to have shmall * page size < shmmax. - Also, does your platform have some absolute upper limit on shmmax? 250GB = seems awfully high... - With 1,000 clients, you'd likely benefit from connection pooling; after y= ou get things up, you should consider pgbouncer. --=20 Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin