Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Oct 2004 16:21:30 -0400
From:      Stephan Uphoff <ups@tree.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: scheduler (sched_4bsd) questions
Message-ID:  <1097353290.70165.1589.camel@palm.tree.com>
In-Reply-To: <4162E8B1.90803@elischer.org>
References:  <1095468747.31297.241.camel@palm.tree.com> <1096496057.3733.2163.camel@palm.tree.com> <1096603981.21577.195.camel@palm.tree.com> <200410041131.35387.jhb@FreeBSD.org> <1096911278.44307.17.camel@palm.tree.com> <41619D29.1000704@elischer.org><4161A7BD.3040706@elischer.org> <4162E8B1.90803@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2004-10-05 at 14:32, Julian Elischer wrote:
> -- snip --
> there are two things to notice..
> firstly the "corrected slot count (2->1)" messge is still there. (grumble).
> 
> this is hapenning when a threade dprocess moves back to be ing an 
> unthreaded preocess.
> for some reason, the number of openning s is not being set back to 1 but 
> rather to 2.
> I believe it is because while in thhe threaded mode it is already too 
> high by some amount
> (sometimes equivalent to NTHREAD) but I can not see why.
> Hopefully it is not a fatal problem (as it would be if it were too LOW, 
> but I hope to figure it
> out soon (maybe another one for Stephan :-)
> -- snip --

There is an extra SLOT_RELEASE - sched_rem already released the slot.

RCS file: /cvsroot/src/sys/kern/kern_switch.c,v
retrieving revision 1.97
diff -u -r1.97 kern_switch.c
--- kern_switch.c       5 Oct 2004 22:03:10 -0000       1.97
+++ kern_switch.c       9 Oct 2004 20:18:53 -0000
@@ -372,7 +372,6 @@
                sched_rem(tda);
                tda = kg->kg_last_assigned =
                    TAILQ_PREV(tda, threadqueue, td_runq);
-               SLOT_RELEASE(kg);
        }
 
        /*






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1097353290.70165.1589.camel>