Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id LAA26825; Fri, 8 Aug 1997 11:32:32 -0700 (PDT) Received: from twinlark.arctic.org (twinlark.arctic.org [204.62.130.91]) by hyperreal.org (8.8.5/8.8.5) with SMTP id LAA26802 for ; Fri, 8 Aug 1997 11:32:28 -0700 (PDT) Received: (qmail 28529 invoked by uid 500); 8 Aug 1997 18:28:18 -0000 Date: Fri, 8 Aug 1997 11:28:18 -0700 (PDT) From: Dean Gaudet To: new-httpd@apache.org Subject: Re: [PATCH] SysV semaphores In-Reply-To: <97080810344759@decus.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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