tech-kern archive

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

Re: select/poll optimization



On Fri, Mar 21, 2008 at 03:53:28PM +0000, Andrew Doran wrote:
> On Fri, Mar 21, 2008 at 07:56:53PM +0900, YAMAMOTO Takashi wrote:
> 
> > > On Thu, Feb 28, 2008 at 03:00:44PM +0000, Mindaugas Rasiukevicius wrote:
> > > 
> > > > As discussed with Andrew, here is the per-thread approach with the 
> > > > array of
> > > > descriptors to store state:
> > 
> > is there any benchmark result to compare these approaches?
> 
> Updated percpu/combined patches:
> 
>       http://www.netbsd.org/~ad/percpu-select.diff
>       http://www.netbsd.org/~ad/combined-select.diff
> 
> Results from an 8-core box. The perthread patch crashed because the 'selfd'
> handling is incorrect (fixed in the combined patch). Note that the combined
> patch still also has bugs.
> 
> percpu:         744993 / 60 = 12416.550000
> HEAD:           502141 / 60 = 8369.016667
> combined:       224090 / 60 = 3734.833333

Note, these are from running src/regress/sys/kern/select.

Andrew


Home | Main Index | Thread Index | Old Index