Re: yield in long kernel loops

2010-10-14 Thread Ted Unangst
On Thu, Oct 14, 2010 at 11:29 AM, Mike Belopuhov wrote: > On Thu, Oct 14, 2010 at 2:08 AM, Ted Unangst wrote: >> So it's not a good idea to perform long lasting operations in the kernel. >> The scheduler doesn't deal well with it and nobody else gets to run. >> >> One of those long loops is loadi

Re: yield in long kernel loops

2010-10-14 Thread Theo de Raadt
> On Thu, Oct 14, 2010 at 2:08 AM, Ted Unangst wrote: > > So it's not a good idea to perform long lasting operations in the kernel. > > The scheduler doesn't deal well with it and nobody else gets to run. > > > > One of those long loops is loading a large table into pf. If you're > > lucky, you'l

Re: yield in long kernel loops

2010-10-14 Thread Mike Belopuhov
On Thu, Oct 14, 2010 at 2:08 AM, Ted Unangst wrote: > So it's not a good idea to perform long lasting operations in the kernel. > The scheduler doesn't deal well with it and nobody else gets to run. > > One of those long loops is loading a large table into pf. If you're > lucky, you'll run out of

Re: yield in long kernel loops

2010-10-14 Thread Thordur Bjornsson
On Wed, Oct 13, 2010 at 08:08:34PM -0400, Ted Unangst wrote: > So it's not a good idea to perform long lasting operations in the kernel. > The scheduler doesn't deal well with it and nobody else gets to run. > > One of those long loops is loading a large table into pf. If you're > lucky, you'l

yield in long kernel loops

2010-10-13 Thread Ted Unangst
So it's not a good idea to perform long lasting operations in the kernel. The scheduler doesn't deal well with it and nobody else gets to run. One of those long loops is loading a large table into pf. If you're lucky, you'll run out of memory and pool will finally sleep. I stuck a couple yiel