From owner-freebsd-stable@freebsd.org Sun Sep 13 11:52:13 2015 Return-Path: Delivered-To: freebsd-stable@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 A7556A03DA5 for ; Sun, 13 Sep 2015 11:52:13 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8896E124F for ; Sun, 13 Sep 2015 11:52:13 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 87F36A03DA4; Sun, 13 Sep 2015 11:52:13 +0000 (UTC) Delivered-To: stable@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 8785CA03DA3 for ; Sun, 13 Sep 2015 11:52:13 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 114B0124E for ; Sun, 13 Sep 2015 11:52:13 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: by lanb10 with SMTP id b10so71589521lan.3 for ; Sun, 13 Sep 2015 04:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=J22kKbNClEcTtVN7ptIXO2Qf8caGnuw7ZHnK9Tm50mM=; b=DgWtgkKbNlQFkQsrTshNoQSkcOcpUcnOLPR3kqRAUJX/UIsu0c7TZoy8+ifD6FzoSN j+Q5+kgPGRZxcx/dfRFfb2wQVDYzeRtX/F0rU9EheJduYCYVC7qoEVSojZcf4zo7w04b gSwLc6aDZSBG7Q4VlM5tShp7Ae2x5WqOoSJCl39HmIuyVqwjU5zimPGtRrYNoOSuMaGt KrKEzlKEttkKh5mGXBcYQhJWuATN4zapZQsuz0VSo13rhpDlHTpByREP/KFfOo+87P0A 5o/Cts/W6v+wK2ize62HXJaaQ/txgrJeAzC6mZchW1Gx4LKy5s7i2O16JltlQiC7GGxj dXoA== X-Received: by 10.152.2.200 with SMTP id 8mr8199756law.115.1442145131164; Sun, 13 Sep 2015 04:52:11 -0700 (PDT) Received: from [172.20.10.4] ([213.87.146.160]) by smtp.gmail.com with ESMTPSA id r1sm1478136laa.10.2015.09.13.04.52.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 13 Sep 2015 04:52:10 -0700 (PDT) From: Dmitry Sivachenko Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: process scheduling and cpuset Message-Id: <623FA99E-04E7-4D29-953A-61EE7B35CBF6@gmail.com> Date: Sun, 13 Sep 2015 14:52:08 +0300 To: FreeBSD Stable ML Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2015 11:52:13 -0000 Hello, I have 32 processor machine (2x CPU E5-2650) running several CPU-bound = processes (ULE scheduler). 3 processes are 32-threaded, and 8 are single threaded. I bind all 3 32-threaded processes to CPUs 0-24 (cpuset -C -l 0-24 -p = XXX). I expect that the remaining 8 single-threaded processes will (mostly) = run on the remaining 25-31 CPU cores and use (almost) 100% cpu each. But this is not the case (according to top(1)): they spend a lot of = time on 0-24 CPUs and CPU Idle time is about 10%. These are all purely computational programs, in idle system = single-threaded programs steadily consume 100% of a core, and = 32-threaded programs consume all 32 cores and idle time is zero. Is it an ULE scheduler feature or am I doing something wrong? The goal is to give a single-threaded program a chance to run when = somebody started several 32-threaded processes. Thanks!=