From owner-freebsd-questions Wed Dec 29 10: 0:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 8CAD415059 for ; Wed, 29 Dec 1999 10:00:30 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id LAA13197; Wed, 29 Dec 1999 11:59:57 -0600 (CST) (envelope-from dan) Date: Wed, 29 Dec 1999 11:59:57 -0600 From: Dan Nelson To: Evren Yurtesen Cc: questions@FreeBSD.ORG Subject: Re: what is the difference between priority and nice levels Message-ID: <19991229115957.A13118@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from "Evren Yurtesen" on Wed Dec 29 19:53:10 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Dec 29), Evren Yurtesen said: > What is the difference between priority and nice levels? Even in the > manual of renice command it says that; > > > Renice alters the scheduling priority of one or more running > > processes. > > It also says that priority is between -20 to 20 > > But when I set the priority to 30 in login.conf the top program gives > this kind of output > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 12012 yurtesen 18 30 1424K 1112K pause 0:00 0.00% 0.00% tcsh > 15130 root 28 30 1620K 868K RUN 0:01 0.00% 0.00% top "scheduling priority" == "nice level" == the NICE column in top. The PRI column in top is a kernel internal priority that goes from -10 to 127 (I think), and changes as the process runs depending on what it's doing. You can usually ignore the PRI column completely. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message