From owner-freebsd-stable@FreeBSD.ORG Fri Jan 17 11:18:52 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 1EDE8694 for ; Fri, 17 Jan 2014 11:18:52 +0000 (UTC) Received: from smtp-sofia.digsys.bg (smtp-sofia.digsys.bg [193.68.21.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7D8DE1813 for ; Fri, 17 Jan 2014 11:18:51 +0000 (UTC) Received: from dcave.digsys.bg (dcave.digsys.bg [193.68.6.1]) (authenticated bits=0) by smtp-sofia.digsys.bg (8.14.6/8.14.6) with ESMTP id s0HBCVEV049099 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 17 Jan 2014 13:12:31 +0200 (EET) (envelope-from daniel@digsys.bg) Message-ID: <52D9101F.2020403@digsys.bg> Date: Fri, 17 Jan 2014 13:12:31 +0200 From: Daniel Kalchev User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: FreeBSD-STABLE Mailing List Subject: Re: SCHED_ULE bug (was Re: cpuminer mines only on one core regardless of "--threads" option) References: <399751389704518@web9j.yandex.ru> <52D541E7.3040305@gmail.com> <5101389708996@web13m.yandex.ru> <52D55B24.8080102@freebsd.org> <113571389724340@web5g.yandex.ru> <37721389856823@web8h.yandex.ru> <52D8E00A.6060907@freebsd.org> In-Reply-To: <52D8E00A.6060907@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 11:18:52 -0000 On 17.01.14 09:47, Andrey Chernov wrote: > On 16.01.2014 11:20, Alexander wrote: >> >> 14.01.2014, 22:32, "Alexander" : >>> 14.01.2014, 20:14, "Subbsd" : >>> >>>> On Tue, Jan 14, 2014 at 7:43 PM, Andrey Chernov wrote: >>>>> On 14.01.2014 17:01, Alexander wrote: >>>>>> on Freebsd 9.2 x64 on 5 different PCs I installed net-p2p/cpuminer >>>>>> from ports and by "pkg install" - result is the same - minerd mines >>>>>> only on one core regardless of "--threads" option. >>>>> ... >>>>>> # top -P >>>>>> CPU 0: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle >>>>>> CPU 1: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle >>>>>> CPU 2: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle >>>>>> CPU 3: 0.0% user, 100% nice, 0.0% system, 0.0% interrupt, 0.0% idle >>>>> This is SCHED_ULE bug, I see _all_ processes (not minerd only in >>>>> particular) stuck to the last CPU too (top's 'C' column is equal to the >>>>> last CPU and never changes), latest -stable i386. It disappears for me >>>>> switching to SCHED_4BSD. >>>>> >>> reboot didn't help (try on 3 different PCs) >> ... >> minerd was started from cron after reboot immediately and broke SMP, so when I disable minerd from cron and reboot - SMP works fine. >> I think Andrey Chernov said here the reason http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/163585#reply3 >> So this bug is alive - on 9.1 and 9.2 x64 releases. >> I didn't try SCHED_4BSD yet, cause don't wont to use not-generic kernel because of mining only, but for interest I'll try it on one machine on this weekends. > I just try it on latest x64 -current, result is exact the same: the bug > exist with SCHED_ULE and not with SCHED_4BSD. Something is very wrong in > SCHED_ULE+cpuset_setaffinity chain. > This is all very strange. I have net-p2p/cpuminer compiled on/around Dec 6 (on semi-current 9-stable) on several machines, all with SCHED_ULE and it has always attached to every single core available. It also respects --threads and attaches to as many cores as I tell it to. All this on FreeBSD 9-stable x64. Some machines are with 32 cores. Daniel