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

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

8706.0. "are simple_lock* routines available to user apps?" by SMURF::BAT (Segui la tua beatitudine) Tue Feb 04 1997 20:48

    
    This is from a field specialist who is bidding DIGITAL UNIX against
    Pyrimid's UNIX:
    
    "I have a big deal 1M, hanging in the balance in Phoenix.  The customer
    in question has and is using simple SpinLocks to control access to
    data. Apparently two years ago, Pyrimid took the assemply language code
    they made customers use to do SpinLocks and made user mode callable
    functions to access them.

    We gave the customer the guide to writing device drivers, advanced
    topics and they came back and said they found an exact match to he
    functions they are now using:

	simple_lock_init(...)
	simple_lock(...)
	simple_unlock(...)

    I need to know if these are usable from a user mode application or if
    there are other API's to access these kernal routines.  The customer is 
    running a hotel/motel reservation system currently on Pyrimid SVR4
    UNIX. Any help would be appreciated."

T.RTitleUserPersonal
Name
DateLines
8706.1Check the SRMWTFN::SCALESDespair is appropriate and inevitable.Tue Feb 04 1997 21:415
I believe that Alpha System Reference Manual explains in detail how to implement
spinlocks on an Alpha.


				Webb
8706.2CSC32::BLAYLOCKIf at first you doubt,doubt again.Wed Feb 05 1997 02:119
The current Digital Technical Journal also has an article on 
SMP and access to databases with an example set of spinlock
routines that we have given to our partners.

Take a look at http://www.digital.com/DTJN05/DTJN05.HTM
and the section on lock optimizations. The DTJ archives also have
an SMP and Digital UNIX issue they may provide other examples.

8706.3Alpha Architecture Handbook? Architecture Reference Manual?BBPBV1::WALLACEjohn wallace @ bbp. +44 860 675093Wed Feb 05 1997 08:1610
    Isn't the SRM a restricted distribution document?
    
    Alternative sources: bookstores: Alpha Architecture Reference Manual,
    by Sites and Witek, published by Butterworth Heinemann, ISBN
    1-55558-145-5 (a.k.a. Digital Press EY-T132E-DP). The relevenat
    spinlock bits also are in the Alpha Architecture Handbook which used to
    be a free giveaway (sorry, don't have one here for part numbers etc).
    
    regards
    john
8706.4WIBBIN::NOYCEPulling weeds, pickin' stonesWed Feb 05 1997 13:134
Alpha Architecture Handbook Version 3: EC-QD2KB-TE

For any of these sources (SRM, ARM, AAH) you want to
look at section 5.5.3 for the spinlock code.
8706.5Go with what you know... :-)WTFN::SCALESDespair is appropriate and inevitable.Thu Feb 06 1997 21:5012
.3> Isn't the SRM a restricted distribution document?

I dunno...but when I looked in the ARM, I couldn't find the code extract on my
first four tries, so I cited a source where I knew it was...  :-}

.4> For any of these sources (SRM, ARM, AAH) you want to
.4> look at section 5.5.3 for the spinlock code.

...and now I know where to find it!  (Thanks, Bill  :-)


				Webb
8706.6thanks for the pointersSWAM1::MARSHALLFri Feb 14 1997 19:4510
    It turns out that the method described in the ALPHA ARCHITECHURE and
    ALPHA REFERENCE MANUAL (and the article in DTJ) are similar to how
    Pyrimid used to do locking before they wrote the user callable function
    to do spinlocks.
    
    We are still in the fray on winning this business, but not because of
    spinlocks at this point.  I'm looking for closure late next week. 
    
    Thanks,
    
8706.7c_asm.h / builtins.hSAPEC3::WALLMEROTHMon Feb 17 1997 06:584
    you may also look into:
      /usr/include/c_asm.h
    and if working with V4.0x:
      /usr/include/machine/builtins.h