From owner-freebsd-hackers@freebsd.org Tue Dec 26 12:41:31 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C71F9E8B9D4; Tue, 26 Dec 2017 12:41:31 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 59DA073D17; Tue, 26 Dec 2017 12:41:30 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id vBQCfMYO060437 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Dec 2017 13:41:22 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: avg@FreeBSD.org Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id vBQCfI47018041; Tue, 26 Dec 2017 19:41:18 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: idprio(1) broken To: Andriy Gapon , FreeBSD Stable References: <5A421212.4040703@grosbein.net> <5A4213DC.20508@grosbein.net> <92a254fb-8066-4930-e4ad-f4fedb0e84d0@FreeBSD.org> Cc: FreeBSD Hackers From: Eugene Grosbein Message-ID: <5A42436E.9060502@grosbein.net> Date: Tue, 26 Dec 2017 19:41:18 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <92a254fb-8066-4930-e4ad-f4fedb0e84d0@FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, T_DATE_IN_FUTURE_Q_PLUS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 0.0 T_DATE_IN_FUTURE_Q_PLUS Date: is over 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Spam-Level: ** X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2017 12:41:31 -0000 On 26.12.2017 18:37, Andriy Gapon wrote: >>> Is idprio(1) broken in stable/11? >>> >>> As root, start one bzip2 instance with idprio and one additional bzip2 intance per CPU core: >>> >>> # idprio 5 bzip2 -9 /dev/null & >>> # n=$(sysctl -n kern.smp.cpus) >>> # i=1; while [ $i -le $n ]; do bzip2 -9 /dev/null & i=$(($i+1)); done >>> # top >>> >>> For dual core system, I see that idprio'd bzip2 takes all cycles of first core >>> and two "normal" bzip2's share cycles of second core each taking ~50% of CPU time. >>> >>> It is expected that idprio'd bzip2 get no CPU time at all and each of "normal" bzip2's >>> get ~100% of single CPU core for such setup. >> >> This works as expected for stable/10. > > Seems to work as expected on head as well. I have a report that head r323607 has the problem and head r326729 has not. I can't check it myself as I have do not run head yet.