httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] SysV semaphores
Date Fri, 08 Aug 1997 18:28:18 GMT


On Fri, 8 Aug 1997, Rodent of Unusual Size wrote:

> % time-FCNTL 10 10000
> WTF! shared_counter != num_child * num_iter!
>       35.268477
> % time-FLOCK 10 10000
> WTF! shared_counter != num_child * num_iter!
>        1.325984
> % time-SEM 10 10000
> WTF! shared_counter != num_child * num_iter!
>        7.696639

That is depressing.  That means either my logic is buggy, or OSF/1 is
buggy.  I suspect a bit of both -- I think one of fcntl or flock is
inherited across fork.  But the above looks like all methods are inherited
across fork.  Or yeah it could be a lame mmap implementation, but we use
mmap() on OSF/1, so ... it should work. 

Maybe it wants MAP_ANON, hmm.  I only cloned the non-MAP_ANON portion of
http_main.c ... you could try copying the MAP_ANON portion into
time-sem.c. 

Do you have the time to grub through your man pages and find out if there
are any other OSF/1 locking primitives? 

I'll be in Seattle for 5 days leaving tomorrow... only online
sporadically.

Dean



Mime
View raw message