Re: [perf-discuss] Thread scheduling behavior

2008-03-31 Thread Eric Saxe
Hi Krishna, Krishna Yenduri wrote: > Hi All, > > I have a user level benchmark that does > for (i = 0; i < nthreads; i++) > (void) thr_create(NULL, 0, testaes, (void *)0, > THR_NEW_LWP, &tid); > > I found that running this benchmark with nthreads == ncpus > sc

Re: [perf-discuss] Thread scheduling behavior

2008-03-28 Thread Bart Smaalders
Krishna Yenduri wrote: > Bart Smaalders wrote: >> ... >> Keep in mind the differences between lwps and kernel threads, esp. on >> NUMA (MPO) platforms. Note that lgrp_choose isn't called for kernel >> threads >> > > That explains it then. Thanks. > >> What are you trying to do? >> >

Re: [perf-discuss] Thread scheduling behavior

2008-03-28 Thread Krishna Yenduri
Bart Smaalders wrote: > ... > Keep in mind the differences between lwps and kernel threads, esp. on > NUMA (MPO) platforms. Note that lgrp_choose isn't called for kernel > threads > That explains it then. Thanks. > What are you trying to do? > The kernel test models the behavior of

Re: [perf-discuss] Thread scheduling behavior

2008-03-27 Thread Bart Smaalders
Krishna Yenduri wrote: > Hi All, > > I have a user level benchmark that does > for (i = 0; i < nthreads; i++) > (void) thr_create(NULL, 0, testaes, (void *)0, > THR_NEW_LWP, &tid); > > I found that running this benchmark with nthreads == ncpus > schedules eac