From owner-freebsd-stable@freebsd.org Thu Nov 5 22:00:56 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 2472BA26313 for ; Thu, 5 Nov 2015 22:00:56 +0000 (UTC) (envelope-from dustinwenz@ebureau.com) Received: from internet06.ebureau.com (internet06.ebureau.com [65.127.24.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "internet06.ebureau.com", Issuer "internet06.ebureau.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 026C71CDD for ; Thu, 5 Nov 2015 22:00:55 +0000 (UTC) (envelope-from dustinwenz@ebureau.com) Received: from localhost (localhost [127.0.0.1]) by internet06.ebureau.com (Postfix) with ESMTP id BBD954755BF6 for ; Thu, 5 Nov 2015 15:51:46 -0600 (CST) X-Virus-Scanned: amavisd-new at ebureau.com Received: from internet06.ebureau.com ([127.0.0.1]) by localhost (internet06.ebureau.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2_4QZQXDvUKy for ; Thu, 5 Nov 2015 15:51:46 -0600 (CST) Received: from square.office.ebureau.com (unknown [10.10.20.22]) by internet06.ebureau.com (Postfix) with ESMTPSA id 0D1AE4755BEB for ; Thu, 5 Nov 2015 15:51:46 -0600 (CST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Question about "pcpu" rctl From: Dustin Wenz In-Reply-To: <91178832-EBB8-498C-9651-E29C2844D4C5@ebureau.com> Date: Thu, 5 Nov 2015 15:51:45 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <91178832-EBB8-498C-9651-E29C2844D4C5@ebureau.com> To: freebsd-stable@freebsd.org X-Mailer: Apple Mail (2.3096.5) 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: Thu, 05 Nov 2015 22:00:56 -0000 As far as I know, pcpu has never worked for limiting beyond a single = core. I submitted a patch for kern/kern_racct.c that should fix it: =20 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D189870 Please update the bug if it does or doesn't resolve the issue. Maybe = that will prompt a committer to apply it to stable. - .Dustin >=20 > Anyone can advise me please? > Thanks! > From: John Dison via freebsd-stable > To: "stable at freebsd.org" =20 > Sent: Tuesday, September 15, 2015 1:00 PM > Subject: Question about "pcpu" rctl >=20 > Hello and have a nice day! >=20 > 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=3D200/user > And I expect (please correct me if I am wrong) that all processes = running with uid=3Dmyusernm 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=3D200 > What am I doing wrong? >=20