From: davidm@cs.arizona.edu (David Mosberger-Tang)
Subject: Re: Alpha UNIX Shared Memory - Need Ideas
Date: 1996/04/23 [thread overview]
Message-ID: <ugbukisgzx.fsf@piston.cs.arizona.edu> (raw)
In-Reply-To: 4ledut$nql@news1.h1.usa.pipeline.com
In article <4ledut$nql@news1.h1.usa.pipeline.com> rsurwilo@usa.pipeline.com(Richard A. Surwilo) writes:
Richard> Our application is a very high volume message switching
Richard> system and each process currently utilizes thousands of
Richard> locks. UNIX semaphores would appear to be too
Richard> inefficient. Using UNIX file/record locking has been
Richard> suggested but I think it too would exact too much of a
Richard> performance penalty.
Richard> Is there a library of low-level, granular, atomic locking
Richard> routines available on an Alpha running UNIX? SVR4
Richard> compliance is immaterial. It just needs to be fast.
Wouldn't msem_init()/msem_lock()/msem_unlock() together with a shared
memory segment do what you want? I haven't looked at exactly how
they're implemented, but msem_lock() does call a library internal
function called _msem_tas() which uses the load linked/store
conditional instructions of the Alpha to do an atomic test-and-set.
Of course, if you don't mind Alpha assembly, you could just use loaded
linked/store conditional directly.
--david
--
David Mosberger-Tang; Dept. of CS; The University of Arizona; Tucson, AZ 85721
davidm@cs.arizona.edu http://www.AZStarNet.com/~davidm
next prev parent reply other threads:[~1996-04-23 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-21 4:00 Alpha UNIX Shared Memory - Need Ideas Richard A. Surwilo
1996-04-23 4:00 ` David Mosberger-Tang [this message]
1996-04-24 4:00 ` Eric Werme
-- strict thread matches above, loose matches on Subject: below --
1996-04-20 4:00 Richard A. Surwilo
1996-04-23 4:00 ` Peter Mayne
1996-04-24 4:00 ` Curt Smith
1996-04-23 4:00 ` Dirk Grunwald
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