dbTalk Databases Forums  

Is shared memory a total mess or am I just being thick????

comp.databases.postgresql comp.databases.postgresql


Discuss Is shared memory a total mess or am I just being thick???? in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dhruv
 
Posts: n/a

Default Is shared memory a total mess or am I just being thick???? - 11-03-2006 , 05:10 AM






Hello all,
I was going through the ingres code, and found this comment:
/* Give up if unable to get memory in one minute */

Arrrrgggg!!!!
Time dependencies!!!!
Is this sort of stuff that you would expect to find in production
quality code?

Plus, I would like to know if there are any obvious advantages to using
process oriented databases like PostgreSQL and Ingres over ones that
use threads(IMHO much cleaner) apart from the fact that they are more
stable -- if a process crashes, it doesn't take down everything with
it.
Practically, software does have bugs, but assume for the time being
that databases are bug free.

Regards,
-Dhruv.


Reply With Quote
  #2  
Old   
Roy Hann
 
Posts: n/a

Default Re: Is shared memory a total mess or am I just being thick???? - 11-03-2006 , 05:36 AM






"dhruv" <dhruvbird (AT) gmail (DOT) com> wrote

Quote:
Hello all,
I was going through the ingres code, and found this comment:
/* Give up if unable to get memory in one minute */

Arrrrgggg!!!!
Time dependencies!!!!
Is this sort of stuff that you would expect to find in production
quality code?
Is there a constructive reason why you cross posted that "question" to
non-Ingres groups? Since you don't claim to work for an enterprise that
has actually been adversely affected by whatever this comment refers to, I
presume you are just a troll. But you might persuade me you are genuine if
you try.

Roy




Reply With Quote
  #3  
Old   
dhruv
 
Posts: n/a

Default Re: Is shared memory a total mess or am I just being thick???? - 11-03-2006 , 11:34 AM




Roy Hann wrote:
Quote:
"dhruv" <dhruvbird (AT) gmail (DOT) com> wrote in message
news:1162552256.393809.213010 (AT) b28g2000cwb (DOT) googlegroups.com...
Hello all,
I was going through the ingres code, and found this comment:
/* Give up if unable to get memory in one minute */

Arrrrgggg!!!!
Time dependencies!!!!
Is this sort of stuff that you would expect to find in production
quality code?

Is there a constructive reason why you cross posted that "question" to
non-Ingres groups?
Yes, to know what others have to say about it. If you notice,
PostgreSQL is also process based -- fork()ing on a new connection,
while MySql is thread based. It's generally good to know the opinion of
people who have worked with systems having varying designs.

Quote:
Since you don't claim to work for an enterprise that
has actually been adversely affected by whatever this comment refers to, I
presume you are just a troll. But you might persuade me you are genuine if
you try.
Regards,
-Dhruv.



Reply With Quote
  #4  
Old   
Kees Nuyt
 
Posts: n/a

Default Re: Is shared memory a total mess or am I just being thick???? - 11-04-2006 , 10:08 AM




On 3 Nov 2006 03:10:56 -0800, "dhruv" <dhruvbird (AT) gmail (DOT) com>
wrote:

Quote:
Hello all,
I was going through the ingres code, and found this comment:
/* Give up if unable to get memory in one minute */

Arrrrgggg!!!!
Time dependencies!!!!
Is this sort of stuff that you would expect
to find in production quality code?
Most definately yes. Your operating system and network stack are
full of time dependencies. It makes no sense to wait forever for
a resource you can't get.

You don't want any service to give up immediately when some
resource is temporarily unavailable. That would be a nuisance to
any application using it.

At the same time you do want your application to tell you when
and why it couldn't accomplish its task, instead of silently
being stuck, holding other resources, until you kill it....

To reach that goal the layer below your application has to give
up after a reasonable amount of time, and return with an
errorcode, or throw an exception. It also may have to give up to
avoid or resolve deadlocks.
One minute is a long wait for a local resource like memory

I left comp.databases.mysql out, it's OT there.
Fup-To set to comp.databases.ingres,comp.databases.postgresql

HTH
--
( Kees
)
c[_] If it wasn't for C, we'd all be using BASI, PASAL and OBOL (#105)


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.