dynamic context transitions
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Fri Dec 3 21:12:12 GMT 2004
On Wed, Dec 01, 2004 at 05:12:24PM -0600, Christopher R. Hertel wrote:
> On Sun, Nov 14, 2004 at 09:54:28PM +0000, Luke Kenneth Casson Leighton wrote:
> > On Sun, Nov 14, 2004 at 05:26:55PM +0100, Simo Sorce wrote:
> :
> :
> > > In samba4 we have process, single AND thread model and a operations are
> > > async so this will not be a problem anymore.
> >
> > fantastic
> >
> > > Btw, from tests seem that in threaded model performance suck anyway :)
> >
> > i like that - threads are supposed to be All The Rage.
> >
> > ... what do you think is going wrong?
>
> I've been asking about this in different places. I've heard theories,
> mostly. This is happening in Linux (dunno if it's been tested elsewhere)
> and one theory is that the forked process speeds are good because Linux
> basically does a really good job with those. Meanwhile, thread speed is
> bad because the multiple threads are all within a single process and the
> single process gets only it's own share of processor time.
how about forking on socket connect and then running N threads in each
forked process, where N equals negotiated maxmux?
that'd give the best of both worlds - or is that already being done?
l.
More information about the samba-technical
mailing list