Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Nov 2015 15:51:45 -0600
From:      Dustin Wenz <dustinwenz@ebureau.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: Question about "pcpu" rctl
Message-ID:  <C5E8B5AF-9623-4A41-907C-6121E4642440@ebureau.com>
In-Reply-To: <91178832-EBB8-498C-9651-E29C2844D4C5@ebureau.com>
References:  <91178832-EBB8-498C-9651-E29C2844D4C5@ebureau.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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:
 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189870

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

> 
> Anyone can advise me please?
> Thanks!
>     From: John Dison via freebsd-stable <freebsd-stable at freebsd.org>
> To: "stable at freebsd.org" <stable at freebsd.org> 
> Sent: Tuesday, September 15, 2015 1:00 PM
> Subject: Question about "pcpu" rctl
> 
> 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?
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C5E8B5AF-9623-4A41-907C-6121E4642440>