Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Got postgres working but...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
snorkel
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 206
Location: Milwaukee, WI

PostPosted: Thu Jun 26, 2003 1:32 pm    Post subject: Got postgres working but... Reply with quote

I had to change the defaults in conf.d which where:
PGOPTS="-i -N 1024 -B 2048"
TO
PGOPTS="-i -N 512 -B 1024"

It's weird because on a PIII 500 with 128mb of ram the defaults work fine.

I also checked the shmmax shared mem size and it was set to the same as the PIII box.


This is the error i would get in the postgres log(with the default settings):
IpcMemoryCreate: shmget(key=5432001, size=34275328, 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 34275328 bytes), reduce
PostgreSQL's shared_buffers parameter (currently 2048) and/or
its max_connections parameter (currently 1024).

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.
Back to top
View user's profile Send private message
apothin
n00b
n00b


Joined: 06 Jan 2004
Posts: 4
Location: France

PostPosted: Wed Feb 04, 2004 6:58 am    Post subject: Postgres on PPC solved Reply with quote

on Powerbook G4 1.25 allu - kernel 2.6.1

Thank you for the tip.
after changing /etc/conf.d/postgresql
/etc/init.d/postgresql start -> successful
_________________
Alain Pothin - Ile de la reunion - France
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum