Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Alpha UNIX Shared Memory - Need Ideas
@ 1996-04-20  4:00 Richard A. Surwilo
  1996-04-23  4:00 ` Dirk Grunwald
  1996-04-23  4:00 ` Peter Mayne
  0 siblings, 2 replies; 7+ messages in thread
From: Richard A. Surwilo @ 1996-04-20  4:00 UTC (permalink / 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 
 
 
 




^ permalink raw reply	[flat|nested] 7+ messages in thread
* Alpha UNIX Shared Memory - Need Ideas
@ 1996-04-21  4:00 Richard A. Surwilo
  1996-04-23  4:00 ` David Mosberger-Tang
  1996-04-24  4:00 ` Eric Werme
  0 siblings, 2 replies; 7+ messages in thread
From: Richard A. Surwilo @ 1996-04-21  4:00 UTC (permalink / 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 
 
 
 




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1996-04-24  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-20  4:00 Alpha UNIX Shared Memory - Need Ideas Richard A. Surwilo
1996-04-23  4:00 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox