[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-plusplus] Something else to think about...





On Sat, 30 May 1998, Michael Anderson wrote:

> Bret wrote:
> > >Wby not go with the idea of a single thread doing
> > >everything ... and watch performance skyrocket.
> 
> Dean wrote:
> > On linux, the performance improves, but doesn't
> > skyrocket.  I'm talking maybe a 10% improvement
> > in crude benchmarks.
> 
> You are probably using LinuxThreads. The start-to-end
> thread model will gain most from kernel-level thread
> packages, where each change of thread is a kernel
> context switch. The performance improvement is likely
> to be much less for fibers and hybrid thread packages.

No I'm using NSPR Threads.  They are user-level. 

Even the pthreads (i.e. LinuxThreads) port I did earlier on showed the
same numbers. 

Linux is just damn fast at context-switching... thread or process it
doesn't matter.  So eliminating context-switching doesn't save you a lot. 
It saves you TLB invalidation, and that's mostly it.

Dean