From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f9d707f18092c081 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-25 05:00:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!cacnews.cac.cpqcorp.net!53ab2750!not-for-mail From: David Butenhof Subject: Re: POSIX threads and Tru64 5.1a woes Newsgroups: comp.unix.tru64 Mail-Copies-To: David.Butenhof@compaq.com References: User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: Date: Thu, 25 Apr 2002 12:05:27 GMT NNTP-Posting-Host: 16.31.48.112 X-Complaints-To: abuse@Compaq.com X-Trace: cacnews.cac.cpqcorp.net 1019736327 16.31.48.112 (Thu, 25 Apr 2002 05:05:27 PDT) NNTP-Posting-Date: Thu, 25 Apr 2002 05:05:27 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:7382 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 ]-----/