httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@raleigh.ibm.com>
Subject Re: Accept mutex in hybrid server.
Date Fri, 19 Feb 1999 20:13:48 GMT

Thanks for the tip.  I'll look into implementing this this weekend.  I
have the multiple accept mutex's working right now, and I am about to
commit, but hopefully this idea will improve our performance.

Thanks,

Ryan


On Fri, 19 Feb 1999, Valentin Bazavan wrote:

> On Feb 18,  3:30pm, Ryan Bloom wrote:
> > Subject: Accept mutex in hybrid server.
>  .
> >
> > The way around this, is to use an array of mutex's, one per socket.  The
> > problem comes up again with FDLOCKing and FCNTLing serialization.  Both of
> > these use one file, which is configurable, for their accept mutex.  One
> > file won't do in our scheme for the reasons mentioned above.
> 
> fcntl allows you to lock byte ranges in a file (even a 0-length file). Thus,
> you can have your array of mutexes by locking one byte in the lock file for
> each socket. As a matter of fact, this approach should be taken also with the
> current fcntl based serialization. It would be more efficient, because there
> would be no need to open and close the lock file every time.
> 
> Valentin Bazavan
> 
> > Ryan
> >
> > _______________________________________________________________________
> > Ryan Bloom		rbb@raleigh.ibm.com
> > 4205 S Miami Blvd
> > RTP, NC 27709		It's a beautiful sight to see good dancers
> > 			doing simple steps.  It's a painful sight to
> > 			see beginners doing complicated patterns.
> >
> >
> >-- End of excerpt from Ryan Bloom
> 
> 
> 

_______________________________________________________________________
Ryan Bloom		rbb@raleigh.ibm.com
4205 S Miami Blvd	
RTP, NC 27709		It's a beautiful sight to see good dancers 
			doing simple steps.  It's a painful sight to
			see beginners doing complicated patterns.	


Mime
View raw message