From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7b17c7e8b77cdcfe X-Google-Attributes: gidfee84,public From: Peter Mayne Subject: Re: Alpha UNIX Shared Memory - Need Ideas Date: 1996/04/23 Message-ID: <317C6BFC.38CB@cao.mts.dec.com>#1/1 X-Deja-AN: 150933368 references: <4lbbq3$8ft@news1.h1.usa.pipeline.com> content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation (Australia) mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.01I (WinNT; I) Richard A. Surwilo wrote: > 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. >From the TruCluster Software for Digital UNIX SPD: { Distributed Lock Manager The Distributed Lock Manager (DLM) synchronizes access to the resources that are shared among cooperating processes throughout the cluster. DLM provides a software library that applications use to implement a resource sharing policy. DLM provides services to notify a process owning a resource that it is blocking another process requesting the resource. An application can also use DLM routines to coordinate the application's activities efficiently with the state of the cluster. } I imagine that the DLM wouldn't be terribly slow, plus you get the other advantages of a cluster (memory channel, distributed raw disk, etc). See http://www.unix.digital.com/trucluster.html for more. If you want something more basic, the ARM contains examples of how to use Load Locked/Store Conditional (LDx_L/STx_C) instructions and the Memory Barrier (MB) instruction to create your own locking mechanisms. -- PJDM Digital Equipment Corporation (Australia), Canberra, ACT -------------------------------------------------------------------------------- These are my opinions, and have nothing to do with Digital. I design Internet Service Providers. It's a job.