From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 08:39:13 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8F565EB9; Mon, 7 Jul 2014 08:39:13 +0000 (UTC) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 311242AA2; Mon, 7 Jul 2014 08:39:12 +0000 (UTC) Received: from mh0.gentlemail.de (mh0.gentlemail.de [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id s678d8HF028835; Mon, 7 Jul 2014 10:39:08 +0200 (CEST) (envelope-from h.schmalzbauer@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 231953D6A; Mon, 7 Jul 2014 10:39:08 +0200 (CEST) Message-ID: <53BA5CA6.1000100@omnilan.de> Date: Mon, 07 Jul 2014 10:39:02 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: John Baldwin Subject: Re: unexpected idprio 31 behavior on 9.2-BETA2 and 9.2-RC1 References: <1375737316.96778.10.camel@firkin.mischler.com> <5203A90D.6020008@vangyzen.net> <5203AE08.30504@vangyzen.net> <201309040958.48377.jhb@freebsd.org> In-Reply-To: <201309040958.48377.jhb@freebsd.org> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6778C81824F694A803DA13BC" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Mon, 07 Jul 2014 10:39:09 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) Cc: J David , freebsd-stable@freebsd.org, Eric van Gyzen , avg@freebsd.org, dave@mischler.com X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2014 08:39:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6778C81824F694A803DA13BC Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Bez=FCglich John Baldwin's Nachricht vom 04.09.2013 15:58 (localtime): > On Thursday, August 08, 2013 10:41:12 am Eric van Gyzen wrote: >> On 08/08/2013 09:19, Eric van Gyzen wrote: >>> On 08/06/2013 14:23, J David wrote: >>>> On Tue, Aug 6, 2013 at 1:59 PM, Eric van Gyzen w= rote: >>>>>> on an otherwise idle amd64 system with 4 CPUs. The first command = in=20 > the >>>>>> build.log file: >>>>>> >>>>>> rm -rf /usr/obj/home/freebsd/tmp >>>>>> >>>>>> took over three minutes. It should have taken about three /second= s/. >>>>>> >>>>>> "uptime" reported a load average of around 1.00. >>>>>> "top" showed no threads (user or kernel) using CPU. >>>>>> "iostat" showed an average of less than 20 tps on ada0. >>>>>> "rm" was usually in the RUN state. >>>> We are looking at something similar. Would you be able to try to >>>> reproduce it using a kernel with: >>>> >>>> nooptions SCHED_ULE >>>> options SCHED_4BSD >>>> >>>> to see if it makes a difference? It seems to, but the problem is >>>> inconsistent enough that I can't be sure. >>> The 4BSD scheduler does //not// exhibit this problem. I tested with = the >>> latest releng/9.2 (r254054) and an otherwise GENERIC config. >> >> To be thorough, I built a GENERIC kernel at the same rev, and it still= >> exhibits the problem. >=20 > Please try this change: >=20 > Index: sched_ule.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sched_ule.c (revision 255020) > +++ sched_ule.c (working copy) > @@ -243,7 +243,7 @@ struct tdq { > int tdq_transferable; /* Transferable thread count. */ > short tdq_switchcnt; /* Switches this tick. */ > short tdq_oldswitchcnt; /* Switches last tick. */ > - u_char tdq_lowpri; /* Lowest priority thread. */ > + u_short tdq_lowpri; /* Lowest priority thread. */ > u_char tdq_ipipending; /* IPI pending. */ > u_char tdq_idx; /* Current insert index. */ > u_char tdq_ridx; /* Current removal index. */ > @@ -2323,7 +2323,7 @@ sched_choose(void) > tdq->tdq_lowpri =3D td->td_priority; > return (td); > } > - tdq->tdq_lowpri =3D PRI_MAX_IDLE; > + tdq->tdq_lowpri =3D PRI_MAX_IDLE + 1; > return (PCPU_GET(idlethread)); > } Hello, the fix above still applies cleanly to 9.3-RC3. Was ist solved differently? Or just slipped through? Thanks, -Harry --------------enig6778C81824F694A803DA13BC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAlO6XKsACgkQLDqVQ9VXb8ivlQCgzQ/Z/jlhW8w6rQJhAGteVP++ TNUAn0IYFuXcbAGxxk9j64usRBYfcFcb =WUeF -----END PGP SIGNATURE----- --------------enig6778C81824F694A803DA13BC--