From owner-freebsd-questions@FreeBSD.ORG Fri Apr 13 21:46:08 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 756DB16A40A for ; Fri, 13 Apr 2007 21:46:08 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id 5AFB013C465 for ; Fri, 13 Apr 2007 21:46:08 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay6.apple.com (relay6.apple.com [17.128.113.36]) by mail-out4.apple.com (8.13.8/8.13.8) with ESMTP id l3DLk812005177; Fri, 13 Apr 2007 14:46:08 -0700 (PDT) Received: from relay6.apple.com (unknown [127.0.0.1]) by relay6.apple.com (Symantec Mail Security) with ESMTP id 2C4C1100C2; Fri, 13 Apr 2007 14:46:08 -0700 (PDT) X-AuditID: 11807124-9dd77bb0000007e5-88-461ffa203b36 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay6.apple.com (Apple SCV relay) with ESMTP id 1118C10093; Fri, 13 Apr 2007 14:46:08 -0700 (PDT) In-Reply-To: <025201c77e14$5cd35d30$0300020a@mickey> References: <001301c77d3f$aa57f050$0300020a@mickey> <1BB47BFC-181B-4CED-B0C0-870D8816A004@mac.com> <025201c77e14$5cd35d30$0300020a@mickey> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Fri, 13 Apr 2007 14:46:07 -0700 To: "Don O'Neil" X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: mysql@lists.mysql.com, freebsd-questions@freebsd.org Subject: Re: Mysql Hogging all system resources X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2007 21:46:08 -0000 On Apr 13, 2007, at 2:40 PM, Don O'Neil wrote: > Is there a way to set a 'nice' priority for a particular user? Why, yes-- see /etc/login.conf and the priority keyword. Some shells also let you adjust the priority levels for various users. > Also, when I run this: > > nice -n 5 /usr/bin/spamd -d -c -m 5 > > I get: > > nice: Badly formed number. > > I ran a man page on it, and this is the right format, but its not > working. Many shells offer nice as a built-in keyword, with syntax that may vary slightly from what /usr/bin/nice uses. Either try "/usr/bin/ nice -n 5 _command_", or use "nice 5 _command_" under csh/tcsh. sh/ ksh/zsh ought to understand the -n flag and be more similar to the external command under /usr/bin. -- -Chuck