Re: Massive performance loss from OS::sleep hack

2007-09-18 Thread Kurt Miller
On Tuesday 18 September 2007 03:17:14 pm Kris Kennaway wrote: > Kurt Miller wrote: > > David Xu confirmed for me that pthread_yield() does give some > > time to lower priority threads on 7.0 using thr. Attached and inline > > are two patches for the 1.5 port that is how I suggest the issue be > > a

Re: Massive performance loss from OS::sleep hack

2007-09-18 Thread Kris Kennaway
Kurt Miller wrote: David Xu confirmed for me that pthread_yield() does give some time to lower priority threads on 7.0 using thr. Attached and inline are two patches for the 1.5 port that is how I suggest the issue be addressed. For 7.0 and up default UseThreadPriorities to true and always use p

Re: Massive performance loss from OS::sleep hack

2007-09-18 Thread Daniel Eischen
On Tue, 18 Sep 2007, Kurt Miller wrote: Daniel Eischen wrote: I would just totally ignore setting thread priorities unless the UseThreadPriority knob is set. The kernel scheduler (for libthr) doesn't seem to care what a thread's priority is anyways unless it is in the real-time class. That wa

Re: Massive performance loss from OS::sleep hack

2007-09-18 Thread Kurt Miller
Daniel Eischen wrote: > On Tue, 18 Sep 2007, Kurt Miller wrote: > >> Hi Daniel, >> >> Daniel Eischen wrote: >>> On Tue, 18 Sep 2007, Kurt Miller wrote: >>> David Xu confirmed for me that pthread_yield() does give some time to lower priority threads on 7.0 using thr. Attached and inline >

Re: Massive performance loss from OS::sleep hack

2007-09-18 Thread Daniel Eischen
On Tue, 18 Sep 2007, Kurt Miller wrote: Hi Daniel, Daniel Eischen wrote: On Tue, 18 Sep 2007, Kurt Miller wrote: David Xu confirmed for me that pthread_yield() does give some time to lower priority threads on 7.0 using thr. Attached and inline are two patches for the 1.5 port that is how I s

Re: Massive performance loss from OS::sleep hack

2007-09-18 Thread Kurt Miller
Hi Daniel, Daniel Eischen wrote: > On Tue, 18 Sep 2007, Kurt Miller wrote: > >> David Xu confirmed for me that pthread_yield() does give some >> time to lower priority threads on 7.0 using thr. Attached and inline >> are two patches for the 1.5 port that is how I suggest the issue be >> addressed

Re: Massive performance loss from OS::sleep hack

2007-09-18 Thread Daniel Eischen
On Tue, 18 Sep 2007, Kurt Miller wrote: David Xu confirmed for me that pthread_yield() does give some time to lower priority threads on 7.0 using thr. Attached and inline are two patches for the 1.5 port that is how I suggest the issue be addressed. I don't think you should rely on pthread_yie

Re: Massive performance loss from OS::sleep hack

2007-09-18 Thread Kurt Miller
David Xu confirmed for me that pthread_yield() does give some time to lower priority threads on 7.0 using thr. Attached and inline are two patches for the 1.5 port that is how I suggest the issue be addressed. For 7.0 and up default UseThreadPriorities to true and always use pthread_yield(). For <