Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Speed comparison of Posix named and SysV semaphore operations
@ 1996-04-15  4:00 David Yuan
  1996-04-22  4:00 ` Curt Smith
  0 siblings, 1 reply; 2+ messages in thread
From: David Yuan @ 1996-04-15  4:00 UTC (permalink / 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



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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-15  4:00 Speed comparison of Posix named and SysV semaphore operations David Yuan
1996-04-22  4:00 ` Curt Smith

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