From owner-freebsd-questions@FreeBSD.ORG Fri Dec 28 15:50:49 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EFEE16A46C for ; Fri, 28 Dec 2007 15:50:49 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57015.mail.re3.yahoo.com (web57015.mail.re3.yahoo.com [66.196.97.119]) by mx1.freebsd.org (Postfix) with SMTP id 2B46C13C500 for ; Fri, 28 Dec 2007 15:50:49 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 13504 invoked by uid 60001); 28 Dec 2007 15:50:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=rHOgCFdqa16Jv6Qjj+4eYTEtOoH4JFI+jyOiGpW/X+dki9cazyA6RQI0Hk2Caxxh3M50/bDYCPZs2RBF4msZNGIl3larjqhEwE6oYGoC1kyIuofQHnEaZp9uMOSrBERmbt8B4C+8Z7c7bkxaCcouwJX4R7AX5S0/u4xkEFddk8M=; X-YMail-OSG: 7yuRRKcVM1m6I0iNgNcIAzh5Byc_IsPJTOtMF_ro_34pXFsI_xHja42jQQsf6X__Xz7_r48qIVbAzC_o9dMPZQgw5iXUB8BiPldE5h_43TiK5ij9wd8S33GyCSuU53Ki3QZpCFBHXjg5nQ-- Received: from [165.21.155.89] by web57015.mail.re3.yahoo.com via HTTP; Fri, 28 Dec 2007 07:50:48 PST Date: Fri, 28 Dec 2007 07:50:48 -0800 (PST) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <425294.13225.qm@web57015.mail.re3.yahoo.com> Subject: Process priority questions 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, 28 Dec 2007 15:50:49 -0000 Hi all I'm sorry to trouble you guys with this issue again. As per /usr/include/sys/priority.h: /* * Priorities range from 0 to 255, but differences of less then 4 (RQ_PPQ) * are insignificant. Ranges are as follows: * * Interrupt threads: 0 - 63 * Top half kernel threads: 64 - 127 * Realtime user threads: 128 - 159 * Time sharing user threads: 160 - 223 * Idle user threads: 224 - 255 * */ ps aux -o pri,ni,rtprio,command shows following: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND PRI NI RTPRIO COMMAND root 12 91.0 0.0 0 8 ?? RL 9:50AM 830:41.81 [idle: cpu0] 171 0 idle:25 [idle: cpu0] root 13 0.0 0.0 0 8 ?? WL 9:50AM 3:28.96 [swi4: clock sio -32 0 intr:52 [swi4: clock sio root 696 0.0 0.1 3240 764 ?? Is 9:51AM 0:00.06 /usr/sbin/moused 96 0 normal /usr/sbin/moused 1. I want understand how to interpret above numbers related to process priorities? 1a) 171 0 idle:25 What is 171? Does it mean it has upgraded to “Time sharing user threads” range to be executed? What is idle:25? Is it its default priority 224+25=249? 1b) -32 0 intr:52 What is -32? What is 52? Is it its default priority 52 in the “Interrupt threads” range? 1c) 96 0 normal The “normal” is what? Is it priority 160 or 223? 2. What is the value range can be specified for process priority in /etc/login.conf? 3. What is the name of the program which process or validate priority values specified in /etc/login.conf? Regards Unga ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs