Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 2015 12:35:03 +0100
From:      Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        John Dison <jdison16@yahoo.com>
Cc:        "stable@freebsd.org" <stable@freebsd.org>
Subject:   Re: Question about "pcpu" rctl
Message-ID:  <20151114113503.GB5430@brick.home>
In-Reply-To: <1728106606.57088.1442311200399.JavaMail.yahoo@mail.yahoo.com>
References:  <1728106606.57088.1442311200399.JavaMail.yahoo@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151114113503.GB5430>