Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 11:47:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 223914] [PATCH] Fix bug in which the long term ULE load balancer is executed only once
Message-ID:  <bug-223914-8-7QhBITUWB5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223914-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223914-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223914

--- Comment #3 from Ivan Klymenko <fidaj@ukr.net> ---
Hi.
Maybe, this version use less overhead charges for not SMP and given the
sched_random() function.

--- sched_ule.c.orig    2017-11-29 09:23:11.503091000 +0200
+++ sched_ule.c.my1     2017-12-12 13:40:46.330506000 +0200
@@ -880,11 +880,15 @@
 {
        struct tdq *tdq;

-       if (smp_started =3D=3D 0 || rebalance =3D=3D 0)
+       if (smp_started =3D=3D 0)
                return;

        balance_ticks =3D max(balance_interval / 2, 1) +
            (sched_random() % balance_interval);
+
+       if (rebalance =3D=3D 0)
+               return;
+
        tdq =3D TDQ_SELF();
        TDQ_UNLOCK(tdq);
        sched_balance_group(cpu_top);

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223914-8-7QhBITUWB5>