From owner-freebsd-stable@FreeBSD.ORG Thu Jan 16 07:20:35 2014 Return-Path: Delivered-To: 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 5E34D83D; Thu, 16 Jan 2014 07:20:35 +0000 (UTC) Received: from forward4h.mail.yandex.net (forward4h.mail.yandex.net [IPv6:2a02:6b8:0:f05::4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0D49215D3; Thu, 16 Jan 2014 07:20:35 +0000 (UTC) Received: from web8h.yandex.ru (web8h.yandex.ru [84.201.186.37]) by forward4h.mail.yandex.net (Yandex) with ESMTP id 1498D1B2259E; Thu, 16 Jan 2014 11:20:24 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web8h.yandex.ru (Yandex) with ESMTP id 652A21B207E6; Thu, 16 Jan 2014 11:20:24 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1389856824; bh=fMf49vSxF886zJHE7rNyhjGhgcz0sE2iYGKyZEGqYfo=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=C8QXjsJxCQ2f0/m4vdhFEYa3/oCpHRM4rtMH87gSM2hXWeleMue/ROGXO/KJW7f+m zd3EHV1+QjhP+RPUp2kEksfYlqVCVvrbslVkCXqYNZia6Y/rR97MVglzCxJa1SIQwo Ctb+snWOygMaFvLgAu6KIWM+XoAXTr+Qb7bF7dmI= Received: from mail.rztdon.ru (mail.rztdon.ru [194.84.139.226]) by web8h.yandex.ru with HTTP; Thu, 16 Jan 2014 11:20:23 +0400 From: Alexander To: "freebsd-ports@freebsd.org" In-Reply-To: <113571389724340@web5g.yandex.ru> References: <399751389704518@web9j.yandex.ru> <52D541E7.3040305@gmail.com> <5101389708996@web13m.yandex.ru> <52D55B24.8080102@freebsd.org> <113571389724340@web5g.yandex.ru> Subject: Re: SCHED_ULE bug (was Re: cpuminer mines only on one core regardless of "--threads" option) MIME-Version: 1.0 Message-Id: <37721389856823@web8h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 16 Jan 2014 11:20:23 +0400 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r Cc: "stable@freebsd.org" 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: Thu, 16 Jan 2014 07:20:35 -0000 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) > I'll try switching to SCHED_4BSD tomorrow š(thanks Andrey Chernov) > I sad wrong. 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.