X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DC518D1B4E2 for ; Wed, 8 Oct 2003 10:03:52 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 21474-08 for ; Wed, 8 Oct 2003 07:03:06 -0300 (ADT) Received: from mqsporttec.com (evilgods.net [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id 03484D1B528 for ; Wed, 8 Oct 2003 07:03:03 -0300 (ADT) Received: from ganesh ([219.93.76.2]) by mqsporttec.com (8.12.9p1/8.11.6) with ESMTP id h98A2g5E012710; Wed, 8 Oct 2003 18:02:44 +0800 (MYT) From: "Ganesan Kanavathy" To: "'scott.marlowe'" Cc: Subject: Re: Pgsql crashes frequently Date: Wed, 8 Oct 2003 18:03:12 +0800 Message-ID: <001601c38d83$66e63160$2300a8c0@ganesh> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0017_01C38DC6.75097160" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/86 X-Sequence-Number: 10647 This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C38DC6.75097160 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit When I check the logfile it is stated there: "pcMemoryCreate: shmget(key=5432001, size=1466368, 03600) failed: Invalid argument This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 1466368 bytes), reduce PostgreSQL's shared_buffers parameter (currently 64) and/or its max_connections parameter (currently 32). If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for. The PostgreSQL Administrator's Guide contains more information about shared memory configuration." I really got no idea what this means. How do I solve this? What SHMMAX and SHMMIN and how I calculate this value? I have a 1GB of memory. Regards, ganesh -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of scott.marlowe Sent: Tuesday, October 07, 2003 10:36 PM To: Ganesan Kanavathy Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Pgsql crashes frequently On Tue, 7 Oct 2003, Ganesan Kanavathy wrote: > We are running Postgresql db and it crashes almost every hour Unable > to load up pgsql after a crash. > > We need to restart the server to start back pg. > > What would be the cause of this problem. Please help. Bad hardware. Check for bad memory, CPU, or hard drive. Or, your machine is running low on memory and the kernel is killing processes randomly to free up memory. That's not as likely, but it does happen in some setups. www.memtest86.com for a decent free memory tester for X86 architecture. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html ------=_NextPart_000_0017_01C38DC6.75097160 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message

When I check the logfile it is stated= =20 there:

"pcMemoryCreate: shmget(key=3D5432001, size=3D1466368, 03= 600)=20 failed: Invalid argument

This error usually means that PostgreSQL's= =20 request for a shared memory segment exceeded your kernel's SHMMAX=20 parameter.  You can either reduce the request size or reconfigure the= =20 kernel with larger SHMMAX.

To reduce the request size (currently 146= 6368=20 bytes), reduce PostgreSQL's shared_buffers parameter (currently 64) and/or = its=20 max_connections parameter (currently 32).

If the request size is alr= eady=20 small, it's possible that it is less than your kernel's SHMMIN parameter, i= n=20 which case raising the request size or reconfiguring SHMMIN is called=20 for.

The PostgreSQL Administrator's Guide contains more information = about=20 shared memory configuration."


I really got no idea what= this=20 means. How do I solve this?

What SHMMAX and SHMMIN and how I calcula= te=20 this value? I have a 1GB of=20 memory.


Regards,
ganesh






--= ---Original=20 Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@p= ostgresql.org]=20 On Behalf Of scott.marlowe
Sent: Tuesday, October 07, 2003 10:36 PM
T= o:=20 Ganesan Kanavathy
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN]= =20 Pgsql crashes frequently


On Tue, 7 Oct 2003, Ganesan Kanavathy= =20 wrote:

> We are running Postgresql db and it crashes almost every= hour=20 Unable
> to load up pgsql after a crash.
> 
> We nee= d to=20 restart the server to start back pg.
> 
> What would be th= e=20 cause of this problem. Please help.

Bad hardware.  Check for ba= d=20 memory, CPU, or hard drive.

Or, your machine is running low on memor= y and=20 the kernel is killing
processes randomly to free up memory.  That's= not=20 as likely, but it does
happen in some setups.

www.memtest86.com f= or a=20 decent free memory tester for X86=20 architecture.


---------------------------(end of=20 broadcast)---------------------------
TIP 5: Have you checked our extens= ive=20 FAQ?

          &nb= sp;   =20 http://www.postgresql= .org/docs/faqs/FAQ.html

------=_NextPart_000_0017_01C38DC6.75097160--