Nonsense load average on kernel without KSE

Julian Elischer julian at elischer.org
Sun Nov 5 09:42:03 UTC 2006


Kip Macy wrote:
> That is a known issue :-(

david xu has said that the following patch fixed it for him.
Index: kern_idle.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_idle.c,v
retrieving revision 1.44
diff -u -r1.44 kern_idle.c
--- kern_idle.c	26 Oct 2006 21:42:19 -0000	1.44
+++ kern_idle.c	2 Nov 2006 11:47:30 -0000
@@ -122,12 +122,7 @@
  #ifdef SMP
  		idle_cpus_mask &= ~mycpu;
  #endif
-#ifdef KSE
  		mi_switch(SW_VOL, NULL);
-#else
-		if ((td = choosethread()) != curthread)
-			mi_switch(SW_VOL, td);
-#endif

> 
> On 11/1/06, LI Xin <delphij at delphij.net> wrote:
>>
>> Hi,
>>
>> Anybody has observed load average of several hundred on -CURRENT without
>> KSE compiled in?
>>
>> Cheers,
>> -- 
>> Xin LI <delphij at delphij.net>    http://www.delphij.net/
>> FreeBSD - The Power to Serve!
>>
>>
>>
>>
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"


More information about the freebsd-current mailing list