Ubuntu

[Lucid] Postgresql cannot start because of SHMMAX configuration

Reported by Dmitry "Divius" Tantsur on 2010-10-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Undecided
Unassigned
postgresql-8.4 (Ubuntu)
Undecided
Unassigned

Bug Description

$ sudo service postgresql-8.4 start
 * Starting PostgreSQL 8.4 database server * The PostgreSQL server failed to start. Please check the log output:
2010-10-02 14:24:41 MSD FATAL: could not create shared memory segment: ???????????? ????????
2010-10-02 14:24:41 MSD DETAIL: Failed system call was shmget(key=5432001, size=36880384, 03600).
2010-10-02 14:24:41 MSD 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 SHMMAX. To reduce the request size (currently 36880384 bytes), reduce PostgreSQL's shared_buffers parameter (currently 4096) and/or its max_connections parameter (currently 103).
 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.

Used to work with previous kernel.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-25-generic 2.6.32-25.44
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: divius 1579 F.... pulseaudio
CRDA: Error: [Errno 2] Нет такого файла или каталога
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0x94400000 irq 22'
   Mixer name : 'Realtek ALC268'
   Components : 'HDA:10ec0268,1179ff1c,00100003 HDA:11c11040,11790001,00100200'
   Controls : 18
   Simple ctrls : 10
Date: Sat Oct 2 14:25:51 2010
HibernationDevice: RESUME=UUID=60995af6-0c9e-4c57-88d2-69669ac83125
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.

 vboxnet0 no wireless extensions.
MachineType: TOSHIBA Satellite A300
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-25-generic root=UUID=0e329898-9f33-446a-9558-1292517ef85a ro quiet splash
ProcEnviron:
 LANG=ru_RU.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.1
RfKill:

SourcePackage: linux
WifiSyslog:

dmi.bios.date: 06/27/2008
dmi.bios.vendor: INSYDE
dmi.bios.version: 1.50
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Base Board Product Name
dmi.board.vendor: Intel Corp.
dmi.board.version: Base Board Version
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: Chassis Manufacturer
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnINSYDE:bvr1.50:bd06/27/2008:svnTOSHIBA:pnSatelliteA300:pvrPSAG0E-02J02HRU:rvnIntelCorp.:rnBaseBoardProductName:rvrBaseBoardVersion:cvnChassisManufacturer:ct1:cvrChassisVersion:
dmi.product.name: Satellite A300
dmi.product.version: PSAG0E-02J02HRU
dmi.sys.vendor: TOSHIBA

Btw, Postgresql wrongly reports it's parameters, real are:

shared_buffers = 32MB
max_connections = 100

after changing:
shared_buffers = 4MB

PostgreSql finally started.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers