From owner-freebsd-stable@FreeBSD.ORG Wed May 28 04:32:58 2008 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3CD8106564A for ; Wed, 28 May 2008 04:32:58 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id A19998FC0A for ; Wed, 28 May 2008 04:32:58 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id B42F15D1C; Wed, 28 May 2008 00:32:57 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ccVqs434Ook; Wed, 28 May 2008 00:32:55 -0400 (EDT) Received: from [10.152.145.158] (72-165-115-225.dia.static.qwest.net [72.165.115.225]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTPSA id C5BF95D17; Wed, 28 May 2008 00:32:53 -0400 (EDT) Message-Id: <85506AE6-A37B-4644-B854-89397FFD6E19@mac.com> From: Chuck Swiger To: Unga In-Reply-To: <501295.26204.qm@web57008.mail.re3.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Tue, 27 May 2008 21:32:50 -0700 References: <501295.26204.qm@web57008.mail.re3.yahoo.com> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-stable@FreeBSD.ORG Subject: Re: sched_ule performance on single CPU X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2008 04:32:58 -0000 On May 27, 2008, at 7:51 PM, Unga wrote: > Appreciate if Chuck Swiger could enlighten us again on > what priority X run on Mac OSX? realtime or normal? The X11 server seems to run with mildly elevated priority (46, where realtime is > 60 or so); something like an xterm runs with normal/ default priority of 31: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME PRI COMMAND root 69 0.0 0.2 79700 3904 ?? Ss 16May08 0:02.74 63 /usr/sbin/coreaudiod cswiger 89 0.0 0.1 350800 2308 ?? S 16May08 0:00.70 63 /usr/sbin/UserEventAgent -l Aqua root 37 0.0 0.0 599664 704 ?? Ss 16May08 0:00.01 63 /sbin/dynamic_pager -F /private/var/vm/swapfile windowserver57 0.4 3.2 477116 66272 ?? Ss 16May08 51:38.50 63 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ CoreGraphics.framework/Resources/WindowServer -daemon cswiger 31 0.0 1.0 454876 19936 ?? Ss 16May08 2:41.97 63 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/ loginwindow console cswiger 2142 0.0 3.5 530720 73700 ?? S Fri07PM 75:16.23 62 /Applications/iTunes.app/Contents/MacOS/iTunes -psn_0_884952 [ ... ] cswiger 6449 0.0 0.4 437152 8456 s02 S+ 9:16PM 0:06.87 46 /usr/X11/bin/X/Applications/Utilities/X11.app/Contents/MacOS/X11 - auth /Users/cswiger/.Xauthority -launchd :1 cswiger 6461 0.0 0.3 83768 6060 s03 S 9:17PM 0:00.10 31 xterm cswiger 6467 0.0 0.1 356520 2512 ?? S 9:17PM 0:00.05 31 quartz-wm [ ...the above may wrap poorly, curse you format=flowed MIME type... ] Note that realtime tasks like iTunes uses up a lot of CPU time compared with normal processes; it's even using more CPU time than the WindowServer has. (This is from a MBP with a 2.33 GHz Core2Duo, running 10.5.2...) -- -Chuck