From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: server auto-restarts and ipcs |
Date: | 2004-11-09 20:30:39 |
Message-ID: | 87actqix3k.fsf@stark.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> "Ed L." <pgsql(at)bluepolka(dot)net> writes:
> > A power failure led to failed postmaster restart using 7.4.6 (see
> > output below). The short-term fix is usually to delete the pid file
> > and restart.
>
> Thinking some more about this ... does anyone know the algorithm used
> in Linux to assign shared memory segment IDs?
At least in 2.6 it seems to avoid reuse of ids by keeping a global counter
that is incremented every time a segment is created which ranges from 0..128k
that it multiplies by 32k and adds to the array index (which is reused
quickly).
So it doesn't seem plausible that there was an id collision unless this was
different in 2.4.20. However looking at his list of ids they're all separated
by multiples of 32769 which is what you would expect from this algorithm at
least until they start being reused.
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Woodchuck Bill | 2004-11-09 20:36:47 | Re: Important Info on comp.databases.postgresql.general |
Previous Message | ru.igarashi | 2004-11-09 20:27:27 | Re: Important Info on comp.databases.postgresql.general |
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2004-11-09 20:52:39 | Re: server auto-restarts and ipcs |
Previous Message | Tom Lane | 2004-11-09 19:04:49 | Re: Call for objections: simplify stable functions during estimation |