[Gfoss] Brutto risveglio..

Ciao a tutti,
stamani nel file serverlog di postgresql ho trovato questo:

LOG: received smart shutdown request
LOG: shutting down
LOG: database system is shut down
FATAL: could not create shared memory segment: Invalid argument
DETAIL: Failed system call was shmget(key=5432001, size=39149568, 03600).
HINT: 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 S$
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 documentation contains more information about shared memory configuration.
FATAL: could not create shared memory segment: Invalid argument
DETAIL: Failed system call was shmget(key=5432001, size=39149568, 03600).
HINT: 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 S$
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 documentation contains more information about shared memory configuration.

Che è successo? Come posso risolvere?

Grazie!
Eugenio


Scopri le novità di Spaces! Blog, foto, amici… e molto altro!

On Thu, Jan 15, 2009 at 09:30:17AM +0000, Eugenio Trumpy wrote:

DETAIL: Failed system call was shmget(key=5432001, size=39149568, 03600).

HINT: 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 S$

Che è successo?

La chiamata di sistema shmget(...) e' fallita.

Come posso risolvere?

Riducendo la quantita' di shared memory richiesta dal postgresql o ricompilando il kernel.

--strk;

Free GIS & Flash consultant/developer () ASCII Ribbon Campaign
http://foo.keybit.net/~strk/services.html /\ Keep it simple!

On Thu, Jan 15, 2009 at 11:14:26AM +0100, strk wrote:

On Thu, Jan 15, 2009 at 09:30:17AM +0000, Eugenio Trumpy wrote:

> DETAIL: Failed system call was shmget(key=5432001, size=39149568, 03600).
>
> HINT: 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 S$

> Che è successo?

La chiamata di sistema shmget(...) e' fallita.

> Come posso risolvere?

Riducendo la quantita' di shared memory richiesta dal postgresql o ricompilando il kernel.

--strk;

Non esageriamo, basta impostarla in /proc/sys/kernel/shmmax con echo, sysctl oppure
impostandola in /etc/sysctl.conf per mantenere il valore al reboot. Tieni conto
che shmmax e' la dimensione del massimo blocco di shared mem allocabile non
il massimo della shared memory totale, che e' invece ricavabile da shmall dove
e' espresso il numero massimo di pagine allocabili in tutto per la shared memory.

--
Francesco P. Lovergine