From owner-freebsd-hackers Tue Nov 28 13:18:54 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from link.mirror.org (link.mirror.org [216.38.7.35]) by hub.freebsd.org (Postfix) with ESMTP id A3B8737B400 for ; Tue, 28 Nov 2000 13:18:51 -0800 (PST) Received: from hal (22-d10-1.svg1.netcom.no [212.45.182.215]) by link.mirror.org (8.7.5/8.7.3) with ESMTP id QAA18102; Tue, 28 Nov 2000 16:18:10 -0500 Date: Tue, 28 Nov 2000 22:19:10 +0100 (CET) From: Torbjorn Kristoffersen X-Sender: To: David Kirchner Cc: Subject: Re: 'ps' and 'top' - what do the various negative priorities mean? In-Reply-To: <20001128130904.C30960@parodius.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 28 Nov 2000, David Kirchner wrote: > Hi, > > Is there a man page or some sort of reference to what all of the > priority values mean as reported in 'top' or 'ps -o pri'? I've seen > -6, -18, -22, etc, and am trying to figure out what seeing a lot of > each of them would mean for server performance. > > - dpk > I think this is off-topic.. Anyhow, the priority values for the processes range from PRIO_MIN (-20) to PRIO_MAX (20). Zero is neutral. This is how the scheudling of the processes are arranged. A negative value like -15 means the process will go faster than if the priority value was 15. So if you have a dedicated SETI@Home computer, you could run 'setiathome' with a priority of -18 for example:-) renice(1) nice(1) rtprio(1) get/setpriority(2) ps(1) -- Torbjorn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message