X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BDCFFD1B4A8 for ; Fri, 21 May 2004 12:13:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 03258-04 for ; Fri, 21 May 2004 12:13:32 -0300 (ADT) Received: from netcetrallc.com (unknown [209.196.42.213]) by svr1.postgresql.org (Postfix) with ESMTP id 8F484D1B196 for ; Fri, 21 May 2004 12:13:31 -0300 (ADT) Received: from WORKSTATION (c-24-1-91-108.client.comcast.net [24.1.91.108]) by netcetrallc.com (8.12.9/8.12.9) with SMTP id i4LEAjWG032222 for ; Fri, 21 May 2004 10:10:45 -0400 Message-ID: <3f9e01c43f46$76da11c0$0200a8c0@WORKSTATION> From: "Kevin Schroeder" To: Subject: Shared memory error using initdb on Solaris 8 Date: Fri, 21 May 2004 10:15:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=RCVD_IN_RFCI, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200405/228 X-Sequence-Number: 13544 Hello, I'm trying to install PostgreSQL 7.4.2 on a brand new SunFire 120 with 2GB of RAM but when I run initdb -D /usr/local/pgsql/data I get the following error: creating directory /usr/local/pgsql/data... ok creating directory /usr/local/pgsql/data/base... ok creating directory /usr/local/pgsql/data/global... ok creating directory /usr/local/pgsql/data/pg_xlog... ok creating directory /usr/local/pgsql/data/pg_clog... ok selecting default max_connections... 10 selecting default shared_buffers... 50 creating configuration files... ok creating template1 database in /usr/local/pgsql/data/base/1... FATAL: could not create shared memory segment: Invalid argument DETAIL: Failed system call was shmget(key=1, size=1081344, 03600). HINT: 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 1081344 bytes), reduce PostgreSQL's shared_buffers parameter (currently 50) and/or its max_connections parameter (currently 10). 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 documentation contains more information about shared memory configuration. initdb: failed initdb: removing data directory "/usr/local/pgsql/data" When I run ulimit -a I get time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) 0 nofiles(descriptors) 256 vmemory(kbytes) unlimited There does not seem to be an option in initdb to reduce the shared buffers size. Plus, with 2GB of RAM I don't know that I'd want to go below the "lowest common denominator" that Postgres defaults to. Kevin