From owner-freebsd-questions@FreeBSD.ORG Mon Jul 8 11:43:44 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9DFB2BAC for ; Mon, 8 Jul 2013 11:43:44 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from eu1sys200aog120.obsmtp.com (eu1sys200aog120.obsmtp.com [207.126.144.149]) by mx1.freebsd.org (Postfix) with ESMTP id 02DAD16D5 for ; Mon, 8 Jul 2013 11:43:43 +0000 (UTC) Received: from mail-ee0-f47.google.com ([74.125.83.47]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKUdql6dpE7ud6+tbyYMPpznxzAw5ywy+R@postini.com; Mon, 08 Jul 2013 11:43:44 UTC Received: by mail-ee0-f47.google.com with SMTP id e49so2756346eek.34 for ; Mon, 08 Jul 2013 04:43:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:message-id:to:subject:reply-to:x-gm-message-state; bh=zZP/3gYVnHi8xntx2NLOITNmQhaeaKYLMyxv9xhEY+k=; b=jX6q8ad7gaL1x/kEujIAswKIloyufJUlgWKsy7yZ8JDm1cHA08XaDz7dnlsdlInbaO Z8SbNft3WxQinIAUMscQWgNY9nWcs9zFLu/oaKNNRlmYn3w4fn67+oNMkv7BbXHFX//B 6vLRipk65BX1jNQxQ/bfXA/3x538YalDhpw2ki6cFU6bCsRJcfDRhkOuNKpTTodJlQ6P yx9DjZtowSkyulGkAG5clDN1Pt0MWnbTqSydI2ohgxxbIdCaH/pl0gbIeIyjZqoBE1Gp 2ORY8l8OCi/1pVdY7mO31Lw1jnjixOJ9UNpB2UN8vcws45nDHcEziqToZDEHZjDk6TGf 87Fw== X-Received: by 10.15.64.202 with SMTP id o50mr24517975eex.44.1373280508673; Mon, 08 Jul 2013 03:48:28 -0700 (PDT) X-Received: by 10.15.64.202 with SMTP id o50mr24517970eex.44.1373280508592; Mon, 08 Jul 2013 03:48:28 -0700 (PDT) Received: from mech-cluster241.men.bris.ac.uk (mech-cluster241.men.bris.ac.uk. [137.222.187.241]) by mx.google.com with ESMTPSA id b3sm41140204eev.10.2013.07.08.03.48.26 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Jul 2013 03:48:27 -0700 (PDT) Sender: Anton Shterenlikht Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6) with ESMTP id r68AmPOk015324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 8 Jul 2013 11:48:25 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6/Submit) id r68AmOAl015323 for freebsd-questions@freebsd.org; Mon, 8 Jul 2013 11:48:24 +0100 (BST) (envelope-from mexas) Date: Mon, 8 Jul 2013 11:48:24 +0100 (BST) From: Anton Shterenlikht Message-Id: <201307081048.r68AmOAl015323@mech-cluster241.men.bris.ac.uk> To: freebsd-questions@freebsd.org Subject: highest nice(1) -n increment value? X-Gm-Message-State: ALoCoQlchRsnrA3NB2jUbb95PvU+MqX4et4iX3SYbaR3Li8/b0YEJuKwgphCBvwp9/x6yrt46nIm00eDXWrLecIlqYbKc1ghx3ruCBiEIlYuxCpDISZKud7Bv3XSCyYGOYdI8LmpPqxgHgLoJosuMiwtOk7gLRjSaoLO8JiYeFAJyEV0Xb35uQKDsq/bVH0rIqS5XFg+esvR X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jul 2013 11:43:44 -0000 It is not clear from the nice(1) man page, i.e. for /usr/bin/nice, not a shell built-in nice, what is the highest increment value nice will accept. It seems it is limited to 20. I tried $ /usr/bin/nice -n 100 portmaster -a But all processes spawned by the portmaster have the nice value of only 20, as in: PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 57586 root 1 52 20 13976K 4720K wait 0:00 0.39% sh 52729 root 1 40 20 13976K 4960K wait 0:02 0.00% sh 58239 root 1 92 20 35632K 8584K RUN 0:00 0.00% pkg 58237 root 1 52 20 9216K 1616K ppwait 0:00 0.00% make The root shell priority was 0. So is 20 the upper increment limit? Thanks Anton