Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3CAA01337B92 for ; Fri, 29 Apr 2011 04:48:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 66173-09 for ; Fri, 29 Apr 2011 07:48:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id C42681337BD1 for ; Fri, 29 Apr 2011 04:48:38 -0300 (ADT) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p3T7maPv088325 for ; Fri, 29 Apr 2011 10:48:36 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p3T7mZOE088324 for pgsql-performance@postgresql.org; Fri, 29 Apr 2011 10:48:35 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-performance@postgresql.org Subject: Re: Will shared_buffers crash a server Date: Fri, 29 Apr 2011 09:48:35 +0200 User-Agent: KMail/1.9.7 References: <343857.89994.qm@web63001.mail.re1.yahoo.com> In-Reply-To: <343857.89994.qm@web63001.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201104291048.35807.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.451 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449 X-Spam-Level: X-Archive-Number: 201104/402 X-Sequence-Number: 43464 Normally under heavy load, a machine could potential stall, even seem to ha= ng, but not crash. And judging from your description of the situation your only change was in = shared memory (IPC shm) usage, right? I would advise to immediately run all sorts of (offline/online) hardware te= sts (especially memtest86) on your machine, before blaming postgesql for anything. =CE=A3=CF=84=CE=B9=CF=82 Friday 29 April 2011 10:13:08 =CE=BF/=CE=B7 Qiang = Wang =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hei:=20 >=20 >=20 > We have PostgreSQL 8.3 running on Debian Linux server. We built an applic= antion using PHP programming language and Postgres database. There are appo= ximatly 150 users using the software constantly. We had some performance de= gration before and after some studies we figured out we will need to tune P= ostgreSQL configurations.=20 >=20 >=20 > We have 10GB memory and we tuned PostgreSQL as follow: > - max_connection =3D 100 > - effective_cache_size =3D 5GB > - shared_buffer =3D 2GB > - wal_buffer =3D 30MB > - work_mem =3D 50MB >=20 > However we suffered 2 times server crashes after tunning the configuratio= n. Does anyone have any idea how this can happen? >=20 > BR=20 >=20 > Kevin Wang >=20 =2D-=20 Achilleas Mantzios