[Samba] to pthread or not to pthread

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Apr 7 12:50:22 MDT 2010


On Wed, Apr 07, 2010 at 11:45:14AM -0700, Jeremy Allison wrote:
> On Wed, Apr 07, 2010 at 02:35:18PM -0400, Chris Smith wrote:
> > On Wed, Apr 7, 2010 at 1:55 PM, Jeremy Allison <jra at samba.org> wrote:
> > > The Samba code itself doesn't use pthreads directly, but
> > > many of the subsystems it uses (eg. ldap, aio) do. So
> > > you're almost certainly compiling with pthreads whether
> > > you want to or not :-).
> > 
> > So then:
> > 
> > --with-pthreads
> > --enable-pthreadpool
> > 
> > are recommended configure options?
> 
> Wow, haven't looked at the --enable-pthreadpool
> code in a while :-). Yes, should work (although
> I don't compile with it by default, I don't think
> it has bit-rotted :-).

Well, the pthreadpool thingy not used right now. Feel free
to remove it, it's just a prototype API that wraps blocking
calls into tevent based async calls. The current prototype
implementation uses pthreads, but due to the performance
problems Samba has with the Linux pthreads implementation,
to put this to real use a clone-based implementation will
have to follow as well.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20100407/f792faad/attachment.pgp>


More information about the samba mailing list