strange semaphore increase

From: Peter Schindler <pschindler(at)synchronicity(dot)com>
To: pg-general <pgsql-general(at)postgresql(dot)org>
Subject: strange semaphore increase
Date: 2001-02-17 22:11:53
Message-ID: B0020906052@tellurian.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi folks,

I've just recognized a strange behavior with the semaphores.
I don't really know how to interpret those numbers, so they might
absolutely ok, though.

I'm using 7.1b4 on a Solaris 2.7 Ultra5.

Each time I stop and start again via pg_ctl the numbers for
the semaphores do increase by 64K?

Is this OK?
Are there actually only 7 semaphores and they are just numbered
that way, or is this the number of semaphores ?
Is that behavior depended on a config setting?

Below is the sequence after a reboot. Before I was already at
about 150000.

sh-2.03$ ipcs
IPC status from <running system> as of Sat Feb 17 22:54:06 MET 2001
...
Semaphores:
s 0 0x52e2c1 --ra------- peter_s cad
s 1 0x52e2c2 --ra------- peter_s cad
s 2 0x52e2c3 --ra------- peter_s cad
s 3 0x52e2c4 --ra------- peter_s cad
s 4 0x52e2c5 --ra------- peter_s cad
s 5 0x52e2c6 --ra------- peter_s cad
s 6 0x52e2c7 --ra------- peter_s cad
...
Semaphores:
s 65536 0x52e2c1 --ra------- peter_s cad
s 65537 0x52e2c2 --ra------- peter_s cad
s 65538 0x52e2c3 --ra------- peter_s cad
s 65539 0x52e2c4 --ra------- peter_s cad
s 65540 0x52e2c5 --ra------- peter_s cad
s 65541 0x52e2c6 --ra------- peter_s cad
s 65542 0x52e2c7 --ra------- peter_s cad
...
Semaphores:
s 131072 0x52e2c1 --ra------- peter_s cad
s 131073 0x52e2c2 --ra------- peter_s cad
s 131074 0x52e2c3 --ra------- peter_s cad
s 131075 0x52e2c4 --ra------- peter_s cad
s 131076 0x52e2c5 --ra------- peter_s cad
s 131077 0x52e2c6 --ra------- peter_s cad
s 131078 0x52e2c7 --ra------- peter_s cad

Thanks.
peter

--
Peter Schindler
Synchronicity Inc. | pschindler(at)synchronicity(dot)com
http://www.synchronicity.com | +49 89 89 66 99 42 (Germany)

Browse pgsql-general by date

  From Date Subject
Next Message Sam & Lisa Snow 2001-02-17 22:34:49 PHP style Annotated Manual
Previous Message Peter Eisentraut 2001-02-17 21:24:09 Re: Function reference