dbTalk Databases Forums  

[BUGS] RC2 will not make check on OSX 10.3

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] RC2 will not make check on OSX 10.3 in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Theodore Petrosky
 
Posts: n/a

Default [BUGS] RC2 will not make check on OSX 10.3 - 11-14-2003 , 05:50 PM






This is the initdb.log for my OS X 10.3.1 system.

the install was made with.

../configure
make
make check.

Ted

Running in noclean mode. Mistakes will not be cleaned
up.
The files belonging to this database system will be
owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale
C.

creating directory
/Users/postgres/software/postgresql-7.4RC2/src/test/regress/./tmp_check/data...
ok
creating directory
/Users/postgres/software/postgresql-7.4RC2/src/test/regress/./tmp_check/data/base...
ok
creating directory
/Users/postgres/software/postgresql-7.4RC2/src/test/regress/./tmp_check/data/global...
ok
creating directory
/Users/postgres/software/postgresql-7.4RC2/src/test/regress/./tmp_check/data/pg_xlog...
ok
creating directory
/Users/postgres/software/postgresql-7.4RC2/src/test/regress/./tmp_check/data/pg_clog...
ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in
/Users/postgres/software/postgresql-7.4RC2/src/test/regress/./tmp_check/data/base/1...
FATAL: could not create shared memory segment: Cannot
allocate memory
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 available
memory or swap space. To reduce the request size
(currently 1081344 bytes), reduce PostgreSQL's
shared_buffers parameter (currently 50) and/or its
max_connections parameter (currently 10).
The PostgreSQL documentation contains more
information about shared memory configuration.

initdb: failed
initdb: data directory
"/Users/postgres/software/postgresql-7.4RC2/src/test/regress/./tmp_check/data"
not removed at user's request


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] RC2 will not make check on OSX 10.3 - 11-14-2003 , 06:00 PM






Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> writes:
Quote:
FATAL: could not create shared memory segment: Cannot
allocate memory
DETAIL: Failed system call was shmget(key=1,
size=1081344, 03600).
You need to increase SHMMAX.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #3  
Old   
Theodore Petrosky
 
Posts: n/a

Default Re: [BUGS] RC2 will not make check on OSX 10.3 - 11-15-2003 , 07:27 PM



After about two hours of hunting pecking and anything
else I found where you control this in OSX 10.3

you must edit the /etc/rc file.

/System/Library/StartupItems/SystemTuning/SystemTuning
does nothing....

now.. 7.4 RC2 make check only fails on the geometry
test....

type_sanity ... ok
opr_sanity ... ok
test geometry ... FAILED
test horology ... ok
test insert ... ok
test create_function_1 ... ok
test create_type ... ok


I hope if someone searches on OSX (OS X) SystemTuning
they find this....

edit rc... on about the second page you will find the
settings.

This is what I have and it is working... I don't
know if it is optimal..

Ted


# System tuning
sysctl -w kern.maxvnodes=$(echo $(sysctl -n
hw.physmem) '33554432 / 512 * 1024 +p'|dc)
sysctl -w kern.sysv.shmmax=167772160
sysctl -w kern.sysv.shmmin=1
sysctl -w kern.sysv.shmmni=32
sysctl -w kern.sysv.shmseg=8
sysctl -w kern.sysv.shmall=65536



--- Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> wrote:
Quote:
Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> writes:
FATAL: could not create shared memory segment:
Cannot
allocate memory
DETAIL: Failed system call was shmget(key=1,
size=1081344, 03600).

You need to increase SHMMAX.

regards, tom lane

---------------------------(end of
broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please
send an appropriate
subscribe-nomail command to
majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #4  
Old   
Neil Conway
 
Posts: n/a

Default Re: [BUGS] RC2 will not make check on OSX 10.3 - 11-15-2003 , 07:35 PM



Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> writes:
Quote:
After about two hours of hunting pecking and anything
else I found where you control this in OSX 10.3

you must edit the /etc/rc file.

/System/Library/StartupItems/SystemTuning/SystemTuning
does nothing....
Should we update the documentation's advice? At present, it suggests:

MacOS X

Edit the file /System/Library/StartupItems/SystemTuning/SystemTuning and change the following values:

sysctl -w kern.sysv.shmmax
sysctl -w kern.sysv.shmmin
sysctl -w kern.sysv.shmmni
sysctl -w kern.sysv.shmseg
sysctl -w kern.sysv.shmall

(Without a Mac OSX box, I have no idea which is correct.)

-Neil


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
  #5  
Old   
Theodore Petrosky
 
Posts: n/a

Default Re: [BUGS] RC2 will not make check on OSX 10.3 - 11-15-2003 , 07:42 PM



Neil,

I posted to the apple site asking if anyone could
recommend the 'correct' place to edit these settings.
I don't think a change like this would survive a
system update.....

But it was the only way I got the settings to 'take'.

It deserves to be mentioned in the docs that this is
necessary at least as far as 10.3.1 (osx).


Ted

--- Neil Conway <neilc (AT) samurai (DOT) com> wrote:
Quote:
Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> writes:
After about two hours of hunting pecking and
anything
else I found where you control this in OSX 10.3

you must edit the /etc/rc file.



/System/Library/StartupItems/SystemTuning/SystemTuning
does nothing....

Should we update the documentation's advice? At
present, it suggests:

MacOS X

Edit the file

/System/Library/StartupItems/SystemTuning/SystemTuning
and change the following values:

sysctl -w kern.sysv.shmmax
sysctl -w kern.sysv.shmmin
sysctl -w kern.sysv.shmmni
sysctl -w kern.sysv.shmseg
sysctl -w kern.sysv.shmall

(Without a Mac OSX box, I have no idea which is
correct.)

-Neil

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
  #6  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] RC2 will not make check on OSX 10.3 - 11-15-2003 , 09:49 PM



Neil Conway <neilc (AT) samurai (DOT) com> writes:
Quote:
Should we update the documentation's advice?
Looks that way. On my 10.3 beta installation, the "SystemTuning" file
is present but it's just a stub ("exit 0"). The shmem sysctl calls have
been moved into /etc/rc. I presume this is deliberate, so we should
adjust our docs to match. I'll do so ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #7  
Old   
Theodore Petrosky
 
Posts: n/a

Default Re: [BUGS] RC2 will not make check on OSX 10.3 - 11-15-2003 , 10:27 PM



BTW,

I find it difficult to understand exactally what
reasonable values are.

Is it possible in the docs to explain a little what
these values should be. Or how to calculate them. I
felt totally in the dark. If I hadn't fallen across an
email on one of the sites that suggested values, I
think I wouldn't have succeeded. Luckily they worked.

There should be some way to recommend values.....

Ted


--- Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> wrote:
Quote:
Neil Conway <neilc (AT) samurai (DOT) com> writes:
Should we update the documentation's advice?

Looks that way. On my 10.3 beta installation, the
"SystemTuning" file
is present but it's just a stub ("exit 0"). The
shmem sysctl calls have
been moved into /etc/rc. I presume this is
deliberate, so we should
adjust our docs to match. I'll do so ...

regards, tom lane

---------------------------(end of
broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
  #8  
Old   
Neil Conway
 
Posts: n/a

Default Re: [BUGS] RC2 will not make check on OSX 10.3 - 11-16-2003 , 12:06 AM



Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> writes:
Quote:
I find it difficult to understand exactally what
reasonable values are.
This page in the documentation includes a table that specifies
"reasonable values" for all of the SysV IPC settings:

http://candle.pha.pa.us/main/writing...resources.html

ISTM this is already documented.

-Neil


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.