Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2007 16:57:26 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        "Don O'Neil" <lists@lizardhill.com>
Cc:        mysql@lists.mysql.com, freebsd-questions@freebsd.org
Subject:   Re: Mysql Hogging all system resources
Message-ID:  <20070413215726.GD11092@dan.emsphone.com>
In-Reply-To: <026f01c77e14$fcf77530$0300020a@mickey>
References:  <001301c77d3f$aa57f050$0300020a@mickey> <1BB47BFC-181B-4CED-B0C0-870D8816A004@mac.com> <025201c77e14$5cd35d30$0300020a@mickey> <026f01c77e14$fcf77530$0300020a@mickey>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 13), Don O'Neil said:
> Nevermind on the "badly formatted number"... I specified the full path
> /usr/bin/nice and it worked ok this time :-)
> 
> However, I still want to know if there is a way to specify a nice
> level for an entire users processes.

If you create a login class in /etc/login.conf and set the priority
capability, then assign a user to that class in /etc/master.passwd (the
class field is the 5th one, it's usually empty), then their priority
(aka niceness) should get set then they log in.  Remember to use the
'vipw' command to edit the passwd file, and to run 'cap_mkdb
/etc/login.conf' to rebuild login.conf.db.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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