Unix Technical Forum

8.0.0 gmake check fails if on disk, passes on ram disk....

This is a discussion on 8.0.0 gmake check fails if on disk, passes on ram disk.... within the pgsql Bugs forums, part of the PostgreSQL category; --> Hi, If I put the source for 8.0.0 on disk (RAID 1) , configure, compile and run gmake check, ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:29 AM
Jeff Ross
 
Posts: n/a
Default 8.0.0 gmake check fails if on disk, passes on ram disk....

Hi,

If I put the source for 8.0.0 on disk (RAID 1) , configure, compile and
run gmake check, it fails with 33 errors, 30 of which are

! psql: could not send startup packet: Broken pipe

If I put the same source code up on a ram disk, configure and compile it
the same way, all 96 tests pass.

OS is OpenBSD 3.6.

I'm currently running 7.3.5, which I'd love to upgrade but I'm a little
leary until I can determine what is causing this error.

Any thoughts greatly appreciated!

Jeff Ross

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 09:29 AM
Michael Fuhr
 
Posts: n/a
Default Re: 8.0.0 gmake check fails if on disk, passes on ram disk....

On Fri, Jan 21, 2005 at 05:03:08PM -0700, Jeff Ross wrote:

> If I put the source for 8.0.0 on disk (RAID 1) , configure, compile and
> run gmake check, it fails with 33 errors, 30 of which are
>
> ! psql: could not send startup packet: Broken pipe


Somebody else using OpenBSD reported a similar problem recently.
Here's part of that thread:

http://archives.postgresql.org/pgsql...1/msg00099.php

> If I put the same source code up on a ram disk, configure and compile it
> the same way, all 96 tests pass.


Interesting. Is this behavior consistent? What's different 'twixt
the RAID disk and the RAM disk?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 09:29 AM
Tom Lane
 
Posts: n/a
Default Re: 8.0.0 gmake check fails if on disk, passes on ram disk....

Michael Fuhr <mike@fuhr.org> writes:
> On Fri, Jan 21, 2005 at 05:03:08PM -0700, Jeff Ross wrote:
>> If I put the same source code up on a ram disk, configure and compile it
>> the same way, all 96 tests pass.


> Interesting. Is this behavior consistent? What's different 'twixt
> the RAID disk and the RAM disk?


If the problem is at bottom a too low processes-per-user limit, as it
was for Jean-Gerard, then maybe the RAM-disk case passes because of
different timing details. This theory is a bit of a stretch though.

In any case, we're being shown the wrong output. What I want to know is
what appears in the postmaster log when these failures happen?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 09:29 AM
Tom Lane
 
Posts: n/a
Default Re: 8.0.0 gmake check fails if on disk, passes on ram disk....

Jeff Ross <jross@openvistas.net> writes:
> Rather than post it in the e-mail, I've put the postmaster.log at
> http://www.openvistas.net/postmaster.log


I see multiple occurrences of

LOG: could not fork new process for connection: Resource temporarily unavailable

so indeed your process limit is too low. It's curious that OpenBSD
seems more prone than other platforms to produce a "broken pipe" error
instead of reporting the error message sent back by the postmaster ...
but there is something of a race condition there, so we can't complain
too much.

I have no idea why running the tests off ramdisk would make a difference
in the probability of this failure, but it's academic. Raise your
process limit.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2008, 09:29 AM
Jeff Ross
 
Posts: n/a
Default Re: 8.0.0 gmake check fails if on disk, passes on ram disk....

Tom Lane wrote:
> Jeff Ross <jross@openvistas.net> writes:
>
>>Rather than post it in the e-mail, I've put the postmaster.log at
>> http://www.openvistas.net/postmaster.log

>
>
> I see multiple occurrences of
>
> LOG: could not fork new process for connection: Resource temporarily unavailable
>
> so indeed your process limit is too low. It's curious that OpenBSD
> seems more prone than other platforms to produce a "broken pipe" error
> instead of reporting the error message sent back by the postmaster ...
> but there is something of a race condition there, so we can't complain
> too much.
>
> I have no idea why running the tests off ramdisk would make a difference
> in the probability of this failure, but it's academic. Raise your
> process limit.
>
> regards, tom lane
>
>


Thank you, Tom! That was indeed the problem.

Jeff Ross

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2008, 09:30 AM
Jeff Ross
 
Posts: n/a
Default Re: 8.0.0 gmake check fails if on disk, passes on ram disk....

Tom Lane wrote:
> Michael Fuhr <mike@fuhr.org> writes:
>
>>On Fri, Jan 21, 2005 at 05:03:08PM -0700, Jeff Ross wrote:
>>
>>>If I put the same source code up on a ram disk, configure and compile it
>>>the same way, all 96 tests pass.

>
>
>>Interesting. Is this behavior consistent? What's different 'twixt
>>the RAID disk and the RAM disk?

>
>
> If the problem is at bottom a too low processes-per-user limit, as it
> was for Jean-Gerard, then maybe the RAM-disk case passes because of
> different timing details. This theory is a bit of a stretch though.
>
> In any case, we're being shown the wrong output. What I want to know is
> what appears in the postmaster log when these failures happen?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
>

I did a make clean, make, and gmake check this morning. Fewer tests
failed (16 of the 96) on the raid1, and again no tests failed on the ram
disk.

Rather than post it in the e-mail, I've put the postmaster.log at

http://www.openvistas.net/postmaster.log

Thanks!


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com