Re: [HACKERS] Postmaster dies with many child processes (spinlock/semget failed) - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] Postmaster dies with many child processes (spinlock/semget failed)
Date
Msg-id 36B125AF.F286DE76@krs.ru
Whole thread Raw
In response to Postmaster dies with many child processes (spinlock/semget failed)  (Patrick Verdon <patrick@kan.co.uk>)
List pgsql-hackers
Patrick Verdon wrote:
> 
> Check Apache's error_log and you will see error
> messages and eventually the postmaster will die
> with something like:
> 
>    FATAL: s_lock(28001065) at spin.c:125, stuck spinlock. Aborting.

Try to increase S_MAX_BUSY in src/backend/storage/buffer/s_lock.c:

#define S_MAX_BUSY      500 * S_NSPINCYCLE                       ^^^
try with 10000.

Vadim


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Postmaster dies with many child processes (spinlock/semget failed)
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] TEMP table code