Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: rsurwilo@usa.pipeline.com(Richard A. Surwilo)
Subject: Alpha UNIX Shared Memory - Need Ideas
Date: 1996/04/20	[thread overview]
Message-ID: <4lbbq3$8ft@news1.h1.usa.pipeline.com> (raw)

We are contemplating porting an OLTP application that runs on Stratus
hardware under their proprietary VOS operating system to an Alpha running
UNIX. This application was originally designed for a port to UNIX and
VOS-specific code has been kept to an absolute minimum.  
 
However, the application does make heavy use of shared memory with multiple
processes requiring access to shared resources. The biggest potential snag
would seem to be coming up with an efficient method of shared memory
locking under UNIX. Stratus VOS allows processes to connect to shared
memory and designate a mode (read-only, read/write, or read/write
interlock) for this shared memory region. Connecting using read/write
interlock mode configures the memory locations in this region as
hardware-based locks. Processes can interrogate and set these memory
locations using atomic operations to effect mutual exclusion in a very
efficient manner. Obtaining a lock essentially consists of testing a memory
location waiting for a bit to be flipped. In this way developers can work
out very efficient locking schemes. 
 
Our application is a very high volume message switching system and each
process currently utilizes thousands of locks. UNIX semaphores would appear
to be too inefficient. Using UNIX file/record locking has been suggested
but I think it too would exact too much of a performance penalty.  
 
Is there a library of low-level, granular, atomic locking routines
available on an Alpha running UNIX? SVR4 compliance is immaterial. It just
needs to be fast. 
 
TIA 
 
Rick Surwilo 
 
 
 




             reply	other threads:[~1996-04-20  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-20  4:00 Richard A. Surwilo [this message]
1996-04-23  4:00 ` Alpha UNIX Shared Memory - Need Ideas Dirk Grunwald
1996-04-23  4:00 ` Peter Mayne
1996-04-24  4:00   ` Curt Smith
  -- strict thread matches above, loose matches on Subject: below --
1996-04-21  4:00 Richard A. Surwilo
1996-04-23  4:00 ` David Mosberger-Tang
1996-04-24  4:00 ` Eric Werme
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