From: Rob Kirkbride <rob@rk-comp.demon.co.uk>
Subject: Re: Threads under Digital OSF 4.0d
Date: 1998/03/12 [thread overview]
Message-ID: <KYjw7MA5BFC1EwNz@rk-comp.demon.co.uk> (raw)
In-Reply-To: 3507FA3C.6A92645D@zko.dec.com
In article <3507FA3C.6A92645D@zko.dec.com>, Dave Butenhof
<butenhof@zko.dec.com> writes
>Rob Kirkbride wrote:
>
>> We have recently upgraded the operating system from 3.2g to 4.0d and are
>> experiencing what I can only describe as 'funnies'. This was done as
>> 3.2g was not fully Y2K complient.
>>
>> The software written in Ada creates nearly 500 threads and it ran pretty
>> reliably on 3.2g. On 4.0d things don't seem to be happening quite as
>> expected (and as they did). Structures seem to be getting corrupted
>> every now and again. I haven't proven it isn't our software yet but I'm
>> getting close.
>
>The corruption is most likely an application or ada bug, rather than a bug
>in the thread library. It's impossible to even offer an informed guess on
>the basis of your information, but, historically, this is true of nearly
>all data corruptors.
I've virtually proved its due to the 'new' context switching within the
threads library rather than the kernel.
>
>> ps does not now show all the threads (about 50 when we create nearly
>> 500). I also don't think it's using our priorities any more. We've
>> registered this with DEC but they haven't got back to us yet.
>
>Yes, ps does show "all the threads", by its definition. It's just that ps
>only knows about kernel threads, and that's different from application
>threads. And ps won't know about your application thread priorities because
>they (by default) have nothing to do with the kernel. I suggest you read
>the release notes, and especially appendix A (especially A.3) of the 4.0D
>Guide to DECthreads, for more information.
Yeah we've just worked that out today. The problem is you don't seem to
be able to use realtime priorities any more from Ada as it assumes
process scope when creating the threads which is a little annoying to
have this changed on us. I realise in C you can change this option.
>
>ps is not an application debugging tool -- it's a system display tool. When
>you want to get into your application and see what's happening, use
>ladebug, or another thread-aware debugger such as TotalView.
decladebug seems to have got more buggy with 4.0d
>
>> Has anyone else had any experience with it, good or otherwise running C
>> or Ada with pthreads?
>
>Yes. Lots of them. Most are good. That, of course, does not mean there
>aren't any problems; but to have any hope of identifying (much less
>correcting) any problems there might be, we need quite a bit more
>information than this!
We have submitted more information on a proper call but I am interested
to see if other people are suffering from the same problem, which
judging by my email response - they are!
--
Rob Kirkbride
next prev parent reply other threads:[~1998-03-12 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-10 5:00 Threads under Digital OSF 4.0d Rob Kirkbride
1998-03-12 5:00 ` Dave Butenhof
1998-03-12 5:00 ` Rob Kirkbride [this message]
1998-03-17 5:00 ` Stephen Leake
1998-03-17 5:00 ` Jeff Denham
1998-03-19 5:00 ` Dave Butenhof
1998-03-12 5:00 ` Dale Stanbrough
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