From owner-freebsd-stable@freebsd.org Sat Nov 14 11:35:10 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 1D29CA2E2BF for ; Sat, 14 Nov 2015 11:35:10 +0000 (UTC) (envelope-from etnapierala@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 EEB0418D2 for ; Sat, 14 Nov 2015 11:35:09 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id EADD3A2E2BE; Sat, 14 Nov 2015 11:35:09 +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 EA757A2E2BD for ; Sat, 14 Nov 2015 11:35:09 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 81B5318D1 for ; Sat, 14 Nov 2015 11:35:09 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by wmww144 with SMTP id w144so62346356wmw.0 for ; Sat, 14 Nov 2015 03:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=gvIH5r24iHsKXpBUJDniaVIrJcrTTDSdqMCEg3OIA30=; b=w+q3jINx7dCGL4HZ77OJwI1YY4WAAtuNz71OqlaVXCgABxlwGoMBGGM/qlnw8gPUPy 7vEYtUhMVypoJvZ03Y5bKpijI31+Fqk6/UKYa5/pBcERSngdg1Sc47NCj0cpDp01BNq7 VCzxaghgCtNy6Q+Mk29ssJZIpBYMKCiAk3Tvp7KFK7RbYcAVrb2I9w4RF9VYfKsK2qEb DPJB4+CNubyBLYx3t1X0lNXn8rdFYh5ymMvim8Hw2fciDoWBcAzaCtGWO6qOS/QdCEGR m2xjNKlnevdAf2OJBQMH3gY/iHKpxFUz3bZt/DbsoQp/YIG3KU5kHzkNVjTOWTZg72ji hZzw== X-Received: by 10.194.6.226 with SMTP id e2mr7803001wja.109.1447500907053; Sat, 14 Nov 2015 03:35:07 -0800 (PST) Received: from brick.home (aegy157.neoplus.adsl.tpnet.pl. [79.186.180.157]) by smtp.gmail.com with ESMTPSA id t126sm8465131wmd.18.2015.11.14.03.35.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Nov 2015 03:35:05 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Sat, 14 Nov 2015 12:35:03 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: John Dison Cc: "stable@freebsd.org" Subject: Re: Question about "pcpu" rctl Message-ID: <20151114113503.GB5430@brick.home> Mail-Followup-To: John Dison , "stable@freebsd.org" References: <1728106606.57088.1442311200399.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1728106606.57088.1442311200399.JavaMail.yahoo@mail.yahoo.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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: Sat, 14 Nov 2015 11:35:10 -0000 On 0915T1000, John Dison via freebsd-stable wrote: > Hello and have a nice day! > > I try to limit cpu usage for multi-threaded process on a multi-core machine. > I use the following command: > # rctl -a user:myusernm:pcpu:deny=200/user > And I expect (please correct me if I am wrong) that all processes running with uid=myusernm will consume 200% of CPU in total. > But after that I see that multi-threaded process continues to consume all available cores on my machine. > rctl command reports:# rctluser:myusernm:pcpu:deny=200 > What am I doing wrong? It's a bug; it should already be fixed in 11-CURRENT. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189870 for details. It should get merged into 10-STABLE in a few days.