Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: David Butenhof <David.Butenhof@compaq.com>
Subject: Re: POSIX threads and Tru64 5.1a woes
Date: Thu, 25 Apr 2002 12:05:27 GMT	[thread overview]
Message-ID: <biSx8.7$ON5.156814@cacnews.cac.cpqcorp.net> (raw)
In-Reply-To: CYzx8.16$mQ1.25640@news.uswest.net

Thomas Losness wrote:

> Thank you for your reply.  I realize that it might have been inappropriate
> to
> jump off of Steve's post with my own, but I still believe my original
> point
> is valid.  Bugs of the level Steve and I describe can certainly be part of
> the Operating System and it may be a while before they are noticed and
> fixed.

But that "bugs of the level" phrase is exactly my point. Your bug and 
Steve's may NOT be "of the same level". You, for exmaple, provided a much 
more detailed description, making it possible to make some straightforward 
judgement of the nature and scope; a performance degradation when flushing 
POSIX shared memory buffers to disk. Important, certainly; but fairly 
subtle.

No such judgement is possible with Steve's description, which basically 
comes down to "condition variables don't work". Well, condition variables 
DO work. Just as shared memory does work, and even synchronizing them with 
the disk does work. So how are we to judge the scope and nature of Steve's 
problem? It's clearly NOT what the simplistic statement implies, and 
there's no additional information. This would be like if you had made the 
claim that "shared memory doesn't work".

My response was simply that there's too much unknown to do any more than 
rebut the generalization that "condition variables don't work", and to ask 
for more information.

> On the helpful questions you had: Yes, I am using SCS and yes I have
> submitted this bug to Compaq along with my example source. They
> acknowledge that it is a problem. Unfortunately, they will not be fixing
> it any time soon. I realize that my application may be narrow in the
> larger scheme of things, but I still believe that serious problems can and
> do occur.

Of course they can, but I was talking about the nature, not the severity. 
You've got a performance degradation when POSIX shared memory backed by 
disk collides with realtime scheduling. While it's too bad that the 
substantial pre-release testing didn't catch that, it's easy to imagine how 
that could happen. I'm not trying to make excuses for anyone, but nobody 
can afford to test everything and every possible interaction; some things 
are inevitably going to be missed. But hypothesizing that a condition wait 
wouldn't wake up under normal and correct usage? That's a very different 
matter. It'd have to go out with NO testing to miss that. Again, what I 
SAID was simply that, if there IS a bug, the circumstances are vastly more 
complicated and subtle than suggested by what Steve wrote. We have a large 
test suite, in addition to the Java, Ada, and UNIX98 test suites; we also 
test with major applications that have been known to be "stressful". Even 
so, we can't test every possible interaction into which threads may be 
forced... there are too many possibilities. But "a condition variable wait 
doesn't wake up"? C'mon now: give us some credit, please. ;-)

And, finally, I was trying to do this without being offensive to Steve, who 
I'm sure didn't deliberately set out to omit all useful information from 
his post. I'm afraid this response is treading a bit closer to the line 
than I'd really like, but I really don't want to ignore this digression, 
and I also don't want to take the time that might be required to phrase 
everything as carefully as I'd really like. So, if I've stepped on toes, 
please forgive me.

/------------------[ David.Butenhof@compaq.com ]------------------\
| Compaq Computer Corporation              POSIX Thread Architect |
|     My book: http://www.awl.com/cseng/titles/0-201-63392-2/     |
\-----[ http://home.earthlink.net/~anneart/family/dave.html ]-----/


      reply	other threads:[~2002-04-25 12:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-21 18:50 POSIX threads and Tru64 5.1a woes Steve Young
2002-04-23 12:29 ` David Butenhof
2002-04-23 18:18   ` Thomas Losness
2002-04-24 13:00     ` David Butenhof
2002-04-24 15:13       ` Thomas Losness
2002-04-25 12:05         ` David Butenhof [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox