Re: Fix loadavg(3)

2016-11-14 Thread Theo de Raadt
> > Date: Mon, 14 Nov 2016 13:11:58 +0100 > > From: Martin Pieuchot > > > > On 12/11/16(Sat) 15:52, patrick keshishian wrote: > > > Ahh... seems the culprit is softclock_thread added 2016/09/22 > > > (kern/kern_timeout.c mpi@). > > > > I'd suggest we simply skip kernel thread

Re: Fix loadavg(3)

2016-11-14 Thread Mark Kettenis
> Date: Mon, 14 Nov 2016 13:11:58 +0100 > From: Martin Pieuchot > > On 12/11/16(Sat) 15:52, patrick keshishian wrote: > > Ahh... seems the culprit is softclock_thread added 2016/09/22 > > (kern/kern_timeout.c mpi@). > > I'd suggest we simply skip kernel thread when calculating

Fix loadavg(3)

2016-11-14 Thread Martin Pieuchot
On 12/11/16(Sat) 15:52, patrick keshishian wrote: > Ahh... seems the culprit is softclock_thread added 2016/09/22 > (kern/kern_timeout.c mpi@). I'd suggest we simply skip kernel thread when calculating the load. Since we're slowly moving code executed in software interrupt context to kernel