[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::dnu_osi

Title:DECnet/OSI for {ULTRIX,OSF/1}
Notice:Indicate version and platform when writing...see #2 for kits
Moderator:BULEAN::CARR
Created:Wed Sep 25 1991
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2187
Total number of notes:10469

2141.0. "RFC1006 differences between Digital Unix 3.2G" by BER::BALAMIR () Tue Mar 11 1997 10:25

    Hi
    
    I have a OSI Application (multi thereaded -OSI TP ), it has problems
    
    if i run it on Digital Unix 3.2X with DECNET 3.2B .It uses RFC1006
    
    I can run it on Digital Unix 4.0B  with the Decnet OSI 4.0A 
    
    perfectly. The test-programm fires 10 Applications which receives
    
    more then 32K data from the net.
    
    On the Digital Unix 3.2C the multi-threaded Osi-Tp server hangs ,
    
    on the Digital Unix 4.0B does his perfect job.
    
    I know that RFC1006-support is kernel-bound in Digital Unix 3.2X
    
    under DECNET 3.2B like in the Digital Unix 4.0B and DECNET 4.0A.
    
    Why is the difference. Is there any radical changes in DECNET 4.0A
    
    and Digital Unix 4.0B .
    
    Can anybody explain me ???
    
    the code i run under tests is linked under Digital Unix 3.2B
    
    Are there known bugs in RCF1006 , or any related Streams under
    
    Digital Unix 3.2x (i tested it under 3.2c and 3.2D , 3.2G) if
    
    we transfer large data (32Kbyte Application ) from the ethernet.
    
    I looked with debugger in the server , found out that the thread
    
    responsible for the Data-transfer hangs in osak_select.
    
    What is the reason
    
    Thanks
    Ahmnet
    
    
T.RTitleUserPersonal
Name
DateLines
2141.1netrix.lkg.dec.com::thomasThe Code WarriorTue Mar 11 1997 11:135
RFC1006 is identical (literally) between DECnet/OSI V4.0A and V3.2B.

The real difference is that XTI is not thread-safe in V3.x but is 
thread-safe in V4.x.  Also, the kernel parts of XTI were rewritten
in V4.0 to support XPG4.
2141.2Can You explain why the application run under 4.XBER::BALAMIRTue Mar 11 1997 12:2118
Hi Matt

You thing that it can be related to the rewrite of the xti. By the way , 

which kernel parts are modified.

the osi-application is statically linked with -losak -lxtiosi -lxti under

Digital Unix 3.2B .It run as i said perfectly under Digital Unix 4.0B

Not under Digital Unix 3.2X. 

Do you know any answer . Is it a kernel-related problem . How can find it out

by using a debugger.

Ahmet

2141.3netrix.lkg.dec.com::thomasThe Code WarriorTue Mar 11 1997 13:021
Is the application linked with pthreads?
2141.4DRAGNS::RMULAC::S_WATTUMScott Wattum - FTAM/VT/OSAK EngineeringTue Mar 11 1997 14:062
He's using the CMA version of OSAK that was done for the OSI Transaction
Processing project.  Does that tell you enough?
2141.5yes it uses pthreadsBER::BALAMIRWed Mar 12 1997 09:0327
Hi Matt ,

I was at the customer side today , i found out that the problem is also existent

under Digital UNIX 4.0B . So i have to reformulate my question .

The application ois-tp is multithreaded , used to use the cma-safe version of
the OSAK specially designed for the OSI-TP.Now we are using the standard OSAK
which comes with DECNET OSI (also non-thread safe ) . we link with the 
 cc -l osak -lxtiosi -lxti o .The OSI-TP server which i build with the same 
 cc -losak -lxtiosi -lxti under Unix 4.0B works perfectly. 

I suspect that the xti-library under 3.2X causes problems .

I tried to use the sharable libraries like libosak.so , libxtiosi.so , 

and libxti.so to link my SERVER image against , i was completely succesfull.

I think , it is not a kernel-related problem , rather a xti-problem .

Dou you know any serious known bugs under Digital Unix 3.2c

Thanks 


Ahmet

2141.6DRAGNS::RMULAC::S_WATTUMScott Wattum - FTAM/VT/OSAK EngineeringWed Mar 12 1997 09:2310
If the difference in XTI between 3.x and 4.x is that in 4.x XTI is thread safe
and in 3.x XTI is not, then why aren't you using the thread safe OSAK on 3.x?

As I recall, the special CMA OSAK simply jacketed the XTI calls with a global
lock, since apparently from what Matt was saying XTI didn't do this itself on
3.x, so it makes sense that OSAK would have to.  So, if you insist on using a
non-thread safe OSAK on 3.x XTI which also isn't thread safe, why are you so
surprised that you're having problems?

--Scott
2141.7i do not use the standard osak on the Unix 3.2xBER::BALAMIRThu Mar 13 1997 10:4326
Hi Scott 

I do still use the cma version of the osak library under UNIX 3.2X

 
 If i build the osi-tp with the static libraries under UNIX 3.2X 

 , it hangs under heavy load both on the Digital UNIX 4.0B and Digital Unix

 3.2X .

 If i build the osi-tp with the shared libraries like libosak.so , libxti.so

 , libxtiosi.so under Digital UNIX 3.2X  , the application run under Digital

 UNIX 4.0B perfectly.

 How can you explain this.

 I suspect XTI-library under 3.X for the problem.

 Thanks

  Ahmet

 
2141.8DRAGNS::RMULAC::S_WATTUMScott Wattum - FTAM/VT/OSAK EngineeringThu Mar 13 1997 10:494
It sounds to me like you need to use the OSAK CMA library on 3.2x, because it
provides the thread safety that XTI doesn't.  On 4.0 you can use the standard
OSAK library because XTI is thread safe.

2141.9YesBER::BALAMIRThu Mar 13 1997 11:5111
Hi

we use the osak_libray (the standard) , because Siemens corrected the problem

with a-acsocciate-response (no reason given ).

Ahmet

Do you have any suggestions

 Thanks
2141.10DRAGNS::RMULAC::S_WATTUMScott Wattum - FTAM/VT/OSAK EngineeringThu Mar 13 1997 11:5911
>Do you have any suggestions

Yes.  It's still not clear from your responses what your problem is.  It would
appear to me that you have a way to make this work on both platforms.  So what's
the problem?

Let me ask this - if you use the OSAK CMA library on 3.x, does it work on 3.x?
If you use the standard shared libraries on 4.0 (linking under either 3.x or
4.0), does it work on 4.0?

--Scott
2141.11The problem is the large data tranferBER::BALAMIRFri Mar 14 1997 05:1289
HI

The SERVER built on the 3.2 runs both on the 4.0B and 3.2 .

The problem is that the customer has a benchmark program , which fires 10

Initiators at the same time on our machines which communicate with the BS2000

Siemens-Mainframe) . The data-flow for every application is the following


Digital UNIX                               Bs2000 -RESPONDER


Begin-dialogue (unconfirmed)---------->     

SEnD 4Kbyte DATA    ------------------------> 

 GRANT-CONTROL      ------------------------------->

                    <--------------------------  32KByte  DATA


                    <---------------------------- 32 Kbyte Data

                    <------------------------------- 20 KByte DATA

                    <------------------------------  end_dialogue

  close-dialogue


The initiator-applications are running in the loop until they fineshed

 with the time-limit (alarm-signal-call ).


THE PROBLEM WE HAVE IS : THIS TEST IS RUNNING DIFFERENTLY ON THE UNIX

MACHINES.

THE OSITPCM-SERVER IS HANGING UNDER DIGITAL UNIX 3.2X , CONSUMES A LOT OF THE

CPU_TIME .


 BOTH IF I BUILT A OSITPCM SERVER UNDER UNIX 4.0B BY USING THE LIBOSAK , 

 LIBXTI and LIBXTIOSI ( SHARED OR NON-SHARED ) , IT RUNS WITHOUT HANGING

 DURING THE TEST .


 THE QUESTION IS WHY THIS DIFFERENNCE.

 
 WHO IS RESPONSIBLE FOR THAT HANGER UNDER 3.2X.

 
 I LOOKED WITH DEBUGGER (LADEBUG ) ON THE 3.2X SYTEMS TO FIND WHICH THREAD

 IS RUNNING , FOUND OUT THAT "PI_THREAD" IS HANGING IN THE CALL osak_select.

 
 I LOOKED IN THE OSITPCM_DEBUG NOTES CONFERENCES , FOUND OUT THAT SIMILAR
PROBLEMS WAS ALSO EXISTENT WITH LARGE DATA TRANSFER UNDER OSF1 .


NOW , THE QUESTION IS WHAT IS RESPONSIBLE FOR THE PERFECT BEHAVIEOR 

UNDER 4.0 . 

1- IS IT THE NEWLY REWRITTEN XTI LIBRARY

2- ARE THEY THE NEW XTI-RELATED KERNEL MODULES

3 - IS THE NEW OSAK


THESE ARE THE MATTERS WE HAVE TO GIVE A ANSWER TO THE CUSTOMER.

THEY HAVE 85 ALPHAS FROM RUNNING 3.2X . 

THEY ARE RELUCTANT TO MIGRATE TO 4.0X BECAUSE OF THE NUNMBER SERVERS



THANKS
2141.12DRAGNS::RMULAC::S_WATTUMScott Wattum - FTAM/VT/OSAK EngineeringFri Mar 14 1997 12:5213
What is this with all the capital letters?  Reminds me of the what I was told
the British approach to someone that doesn't understand something.  Repeat it,
but SPEAK LOUDER.

You are contridicting yourself.  First you say:

"The SERVER built on the 3.2 runs both on the 4.0B and 3.2 ."

and then you say:

"THE OSITPCM-SERVER IS HANGING UNDER DIGITAL UNIX 3.2X "

So which is it?
2141.13sorryBER::BALAMIRTue Mar 18 1997 06:3820
Hi

Sorry for the capital letters , the caps lock was not functioning properly on
that worktstation.

When i mean that the server are running on both systems , i mean they run 
on those systems with the example programm which are very simple programms

The server ositpcm hangs under Digital Unix 3.2X under the conditions i
described in .11 .The server under Digital Unix 4.0B does not hang .

I also took the server which was generated under Digital Unix 3.2X (linked

 with the libraries from Digital Unix 3.2X) , run it on a Digital Unix
 4.0X , it hangs also .

 I only have success with a server compiled , and linked under Digital Unix
 4.0

 Ahmet