Re: [PERFORM] 7.3.2 pg_restore very slow

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Saranya Sivakumar <sarlavk(at)yahoo(dot)com>, pgsqlperform <pgsql-performance(at)postgresql(dot)org>, pgsqlnovice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: [PERFORM] 7.3.2 pg_restore very slow
Date: 2006-08-07 16:17:15
Message-ID: 20060807161715.77647.qmail@web31804.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice pgsql-performance

> IpcMemoryCreate: shmget(key=5432001, size=85450752, 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 85450752 bytes), reduce
> PostgreSQL's shared_buffers parameter (currently 10000) and/or
> its max_connections parameter (currently 128).
> 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.

if you cat /proc/sys/kernel/shmmax
it will tell you what it is set to. It needs to be at least "85450752". The size that Postgresql
is trying to grab.

also shmall may need to be adjusted also.

> The total RAM available on this machine is 512MB.
>
> I am not sure how to set these parameters SHMMAX and SHMMIN.
> Any help/advice would be greatly appreciated.

http://www.postgresql.org/docs/8.1/interactive/kernel-resources.html
This will help you to set the kernel parameters.

Regards,

Richard Broersma Jr.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Sean Davis 2006-08-07 16:38:56 Re: Did I wipe off my database -- please help - urgent
Previous Message operationsengineer1 2006-08-07 16:11:00 Re: Did I wipe off my database -- please help - urgent

Browse pgsql-performance by date

  From Date Subject
Next Message Alvaro Herrera 2006-08-07 16:55:16 Re: XFS filessystem for Datawarehousing
Previous Message Saranya Sivakumar 2006-08-07 16:08:30 Re: [PERFORM] 7.3.2 pg_restore very slow