Re: postgres/shm problem

Nils Philippsen (nils@fht-esslingen.de)
Mon, 8 Jan 2001 12:47:26 +0100 (CET)


On Mon, 8 Jan 2001, Narancs 1 wrote:

> On Mon, 8 Jan 2001, Nils Philippsen wrote:
>
>
> > /proc/sys/kernel/shmall to "0" (that is the maximum number of SHM
> > segments).
> yes, powertweak made it wrong. what is the good value for it?

according to /usr/src/linux/include/linux/shm.h:

#define SHMALL (SHMMAX/PAGE_SIZE*(SHMMNI/16)) /* max shm system wide (pages)
*/

On my machine here, it is 2097152. It should be the same on any Intel IA32
compatible machine. To be safe, remove the value from /etc/sysctl.conf and
reboot the machine ;-).

Nils

-- 
 Nils Philippsen / Berliner Straße 39 / D-71229 Leonberg // +49.7152.209647
nils@wombat.dialup.fht-esslingen.de / nils@fht-esslingen.de / nils@redhat.de
   The use of COBOL cripples the mind; its teaching should, therefore, be
   regarded as a criminal offence.                  -- Edsger W. Dijkstra

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/