Here is how I manage cpu usage for shell users on one of my FreeBSD
Which is in /etc/login.conf
What you need to do, is make a class inside login.conf and put in there,
the values you want.
Remember to do the following if you change your /etc/login.conf file:
On Wed, 22 Nov 2000, Alfred Perlstein in the last wild and more than...:
>* Richard B. Mahoney <firstname.lastname@example.org> [001122 17:48] wrote:
>> Dear Readers,
>> I know its possible to restrict user disk storage quotas under FreeBSD
>> but what about a user's CPU usage? I've searched for info on this and
>> have come up empty handed. The reason I ask is as follows.
>Well you can limit RAM usage via the login.conf(5) limiting facility.
>That ought to keep the programs from getting out of control and
>swamping the box.
>> The other day Emacs kept climbing in this way and exceeded the
>> available swap space. The system promptly stepped in and killed it by
>> itself! I was in many ways delighted. Under any other system and a
>> reboot would have been needed.
>Maybe we ought to switch the policy of out of memory so that the
>kernel will seek and destroy all emacs processes... :)
>-Alfred Perlstein - [email@example.comfirstname.lastname@example.org]
>"I have the heart of a child; I keep it in a jar on my desk."
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message