linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PROBLEM: Postgres fails to start due to kernel issue?
@ 2012-01-20  0:45 Dave Haywood
  2012-01-20  1:40 ` Josh Boyer
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Haywood @ 2012-01-20  0:45 UTC (permalink / raw)
  To: Linux Kernel

Hi,

   I noticed after upgrading to 3.2.0-08812-gc2bc3a3 that Postgres-9.1 server fails to start with error:

FATAL:  could not create shared memory segment: Function not implemented
DETAIL:  Failed system call was shmget(key=5432001, size=30523392, 03600).

   After some googling, I thought it was a SYSV shared memory sizing issue but manually changing kernel.shmmax and kernel.shmall had no effect.

   The problem has been introduced between 3.2.0-08694-g53999bf and 3.2.0-08812-gc2bc3a3.

   Let me know if you need any more information.  Bisecting is *very* slow on this machine!

Broken version (latest):

$ sudo sh scripts/ver_linux

Linux s1 3.2.0-09429-g90a4c0f #133 SMP Thu Jan 19 15:17:03 GMT 2012 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

Gnu C                  4.6.2
Gnu make               3.82
binutils               2.21.1
util-linux             2.19.1
mount                  support
module-init-tools      3.16
e2fsprogs              1.41.14
Linux C Library        2.14.1
Dynamic linker (ldd)   2.14.1
Procps                 3.2.8
Net-tools              1.60_p20110409135728
Kbd                    1.15.3wip
Sh-utils               8.7

$ sudo sysctl -a | grep shm
kernel.shmmax = 33554432
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.shm_rmid_forced = 0
vm.hugetlb_shm_group = 0

Working version (last good backup):

$ sudo sh scripts/ver_linux

Linux s1 3.2.0 #124 SMP Thu Jan 5 08:06:00 GMT 2012 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

Gnu C                  4.6.2
Gnu make               3.82
binutils               2.21.1
util-linux             2.19.1
mount                  support
module-init-tools      3.16
e2fsprogs              1.41.14
Linux C Library        2.14.1
Dynamic linker (ldd)   2.14.1
Procps                 3.2.8
Net-tools              1.60_p20110409135728
Kbd                    1.15.3wip
Sh-utils               8.7

$ sudo sysctl -a | grep shm
kernel.shmmax = 33554432
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.shm_rmid_forced = 0
vm.hugetlb_shm_group = 0

Dave.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: Postgres fails to start due to kernel issue?
  2012-01-20  0:45 PROBLEM: Postgres fails to start due to kernel issue? Dave Haywood
@ 2012-01-20  1:40 ` Josh Boyer
  2012-01-20  3:13   ` hpanvin@gmail.com
  0 siblings, 1 reply; 4+ messages in thread
From: Josh Boyer @ 2012-01-20  1:40 UTC (permalink / raw)
  To: Dave Haywood; +Cc: Linux Kernel, H. Peter Anvin

On Thu, Jan 19, 2012 at 7:45 PM, Dave Haywood <tla@oak.selfip.net> wrote:
> Hi,
>
>  I noticed after upgrading to 3.2.0-08812-gc2bc3a3 that Postgres-9.1 server
> fails to start with error:
>
> FATAL:  could not create shared memory segment: Function not implemented
> DETAIL:  Failed system call was shmget(key=5432001, size=30523392, 03600).
>
>  After some googling, I thought it was a SYSV shared memory sizing issue but
> manually changing kernel.shmmax and kernel.shmall had no effect.
>
>  The problem has been introduced between 3.2.0-08694-g53999bf and
> 3.2.0-08812-gc2bc3a3.
>
>  Let me know if you need any more information.  Bisecting is *very* slow on
> this machine!

If you run strace on it, does it fail with ENOSYS?  This might be
related to an issue Peter just fixed.

josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: Postgres fails to start due to kernel issue?
  2012-01-20  1:40 ` Josh Boyer
@ 2012-01-20  3:13   ` hpanvin@gmail.com
  2012-01-20 10:06     ` Dave Haywood
  0 siblings, 1 reply; 4+ messages in thread
From: hpanvin@gmail.com @ 2012-01-20  3:13 UTC (permalink / raw)
  To: Josh Boyer, Dave Haywood; +Cc: Linux Kernel

Yes, it almost certainly is.  Fixed in rc1.

Josh Boyer <jwboyer@gmail.com> wrote:

>On Thu, Jan 19, 2012 at 7:45 PM, Dave Haywood <tla@oak.selfip.net>
>wrote:
>> Hi,
>>
>>  I noticed after upgrading to 3.2.0-08812-gc2bc3a3 that Postgres-9.1
>server
>> fails to start with error:
>>
>> FATAL:  could not create shared memory segment: Function not
>implemented
>> DETAIL:  Failed system call was shmget(key=5432001, size=30523392,
>03600).
>>
>>  After some googling, I thought it was a SYSV shared memory sizing
>issue but
>> manually changing kernel.shmmax and kernel.shmall had no effect.
>>
>>  The problem has been introduced between 3.2.0-08694-g53999bf and
>> 3.2.0-08812-gc2bc3a3.
>>
>>  Let me know if you need any more information.  Bisecting is *very*
>slow on
>> this machine!
>
>If you run strace on it, does it fail with ENOSYS?  This might be
>related to an issue Peter just fixed.
>
>josh

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PROBLEM: Postgres fails to start due to kernel issue?
  2012-01-20  3:13   ` hpanvin@gmail.com
@ 2012-01-20 10:06     ` Dave Haywood
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Haywood @ 2012-01-20 10:06 UTC (permalink / raw)
  To: hpanvin@gmail.com; +Cc: Josh Boyer, Linux Kernel

On 20/01/2012 03:13, hpanvin@gmail.com wrote:
> Yes, it almost certainly is.  Fixed in rc1.

Correct, working again under 3.3.0-rc1.  Thanks!

Linux s1 3.3.0-rc1 #135 SMP Fri Jan 20 09:59:56 GMT 2012 i686 
Pentium III (Coppermine) GenuineIntel GNU/Linux

>
> Josh Boyer<jwboyer@gmail.com>  wrote:
>
>> On Thu, Jan 19, 2012 at 7:45 PM, Dave Haywood<tla@oak.selfip.net>
>> wrote:
>>> Hi,
>>>
>>>   I noticed after upgrading to 3.2.0-08812-gc2bc3a3 that Postgres-9.1
>> server
>>> fails to start with error:
>>>
>>> FATAL:  could not create shared memory segment: Function not
>> implemented
>>> DETAIL:  Failed system call was shmget(key=5432001, size=30523392,
>> 03600).
>>>   After some googling, I thought it was a SYSV shared memory sizing
>> issue but
>>> manually changing kernel.shmmax and kernel.shmall had no effect.
>>>
>>>   The problem has been introduced between 3.2.0-08694-g53999bf and
>>> 3.2.0-08812-gc2bc3a3.
>>>
>>>   Let me know if you need any more information.  Bisecting is *very*
>> slow on
>>> this machine!
>> If you run strace on it, does it fail with ENOSYS?  This might be
>> related to an issue Peter just fixed.
>>
>> josh


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-20 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-20  0:45 PROBLEM: Postgres fails to start due to kernel issue? Dave Haywood
2012-01-20  1:40 ` Josh Boyer
2012-01-20  3:13   ` hpanvin@gmail.com
2012-01-20 10:06     ` Dave Haywood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).