Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dyuan@win20.rch.mci.com (David Yuan)
Subject: Speed comparison of Posix named and SysV semaphore operations
Date: 1996/04/15	[thread overview]
Message-ID: <4ktur4$r5f@news.internetmci.com> (raw)

hi,

I am using an Alphaserver 2100 4/275 which has 1 gb memory,
1 21064 CPU. OS is Digital UNIX v3.2c.  I found that P1003.1b
named semaphore operations (sem_create, sem_wait, sem_post) are 
faster than System V implementation (semget,semop). The following
is the result of pure semaphore acquire and release operations 
(at test time, the system load is very low, actually, only myself 
was using the machine):

iterations   Posix      Sys V
1000000      3.544193   18.788549  # normal process
1000000      3.867264   18.703296  # change priority to max priority

Is the result comparable? If I change the priority of the process
to top priority and reschedule it. the performance of the test 
is even slower (surprise). 

Is ther anybody out there who did such test or have any opinion?

thanks,

David
-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              David Yuan
                    MCI Telecommunications Corporation
 901 International Pkwy.        ||      Office Number: 214 498 1129



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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-15  4:00 David Yuan [this message]
1996-04-22  4:00 ` Speed comparison of Posix named and SysV semaphore operations Curt Smith
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