From nobody@FreeBSD.org  Wed Jun  1 10:26:32 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 301C316A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Jun 2005 10:26:32 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C1F7D43D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Jun 2005 10:26:31 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j51AQVeM016998
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 1 Jun 2005 10:26:31 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j51AQVXM016997;
	Wed, 1 Jun 2005 10:26:31 GMT
	(envelope-from nobody)
Message-Id: <200506011026.j51AQVXM016997@www.freebsd.org>
Date: Wed, 1 Jun 2005 10:26:31 GMT
From: trasz <trasz@buziaczek.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: realtime processes are not marked with '<' in ps(1) output.
X-Send-Pr-Version: www-2.3

>Number:         81757
>Category:       bin
>Synopsis:       realtime processes are not marked with '<' in ps(1) output.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gad
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 01 10:30:02 GMT 2005
>Closed-Date:    
>Last-Modified:  Thu Jun  2 02:40:02 GMT 2005
>Originator:     trasz
>Release:        5.4
>Organization:
>Environment:
FreeBSD traszkan.ds7 5.4-RELEASE FreeBSD 5.4-RELEASE #2: Wed May 11 19:24:26 CEST 2005     trasz@traszkan.ds7:/usr/obj/usr/src/sys/TRASHCAN  i386

>Description:
      manual page for ps(1) reads '<       The process has raised CPU scheduling priority.'.  however, if a process has a realtime priority, it's not marked with '<' in STAT column.

>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gad 
Responsible-Changed-By: rwatson 
Responsible-Changed-When: Wed Jun 1 13:08:54 GMT 2005 
Responsible-Changed-Why:  
Assign to gad, who has strong interests in this area. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=81757 

From: Bruce Evans <bde@zeta.org.au>
To: trasz <trasz@buziaczek.pl>
Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: bin/81757: realtime processes are not marked with '<' in ps(1)
 output.
Date: Thu, 2 Jun 2005 12:36:40 +1000 (EST)

 On Wed, 1 Jun 2005, trasz wrote:
 
 >> Description:
 >      manual page for ps(1) reads '<       The process has raised CPU scheduling priority.'.  however, if a process has a realtime priority, it's not marked with '<' in STAT column.
 
 '<' currently only applies to niced processes.  I think there should
 be different indicators for realtime and idle priority and other
 scheduling classes.
 
 In top(1), scheduling classes are supposed to be encoded as fake
 nice values and a single indicator almost works since the indicator is
 numeric so it can indicate the scheduling class; however, the encoding
 is limited and broken; a non-numeric indicator of the class combined
 with a shorter numeric indicator of the the priority within the class
 might be better.
 
 Bruce
>Unformatted:
