From owner-freebsd-stable@FreeBSD.ORG Sun Apr 20 17:20:23 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 3E2151065671 for ; Sun, 20 Apr 2008 17:20:23 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57006.mail.re3.yahoo.com (web57006.mail.re3.yahoo.com [66.196.97.110]) by mx1.freebsd.org (Postfix) with SMTP id DCA0A8FC18 for ; Sun, 20 Apr 2008 17:20:22 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 59243 invoked by uid 60001); 20 Apr 2008 17:20:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=3MJ3gg79PzFbThIjQ5OqkYWoU5lLd+Oz5JMpdSaHlhrJy/liMTUVKHKy43jTAabEXJSPNejy9HlXppbzSr9WiT3ujObVJGGMWWSeBd9pWunPyQlWfeRgkD99dpNmrfKWa7IB4LFpAS1WyNzqHbPTD/+EqPKQ2JG8sfK14PVDH+M=; X-YMail-OSG: S06uECMVM1mapHyvZh5.inyNqgdIxnWHVV1_cG11u98DqcqRml9QGiLlTJ7Lkc2ieQl8Pfihtd2m.Tx4Xk4nMWgEmJVpmeqOhjNh8gQYltG4IHxdshINDNUH680eHYxgmeWkHOoVAvAzmtd3QjXAy6S_NeW5MaoHOJY- Received: from [165.21.155.11] by web57006.mail.re3.yahoo.com via HTTP; Sun, 20 Apr 2008 10:20:20 PDT Date: Sun, 20 Apr 2008 10:20:20 -0700 (PDT) From: Unga To: Jeremy Chadwick In-Reply-To: <20080419110153.GA85344@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <371011.58765.qm@web57006.mail.re3.yahoo.com> Cc: jeff@freebsd.org, 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: Sun, 20 Apr 2008 17:20:23 -0000 --- Jeremy Chadwick wrote: > There was a commit to the ULE code in RELENG_7 > approximately 6 hours ago > by Jeff, indicating some speed improvements in ULE > when there's heavy > IRQ activity, and adjustments in the timeslicing > code for threads which > don't utilise timesharing: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sched_ule.c > > Can you update your src-all tree to pull this in, > rebuild the kernel, > and tell us if it behaves better for you? > Thanks Jeff for updates and thanks Jeremy for notifying the list. I did following test on the new update of sched_ule.c on RELENG_7. I ran the amarok music player as realtime, and another application named count as a normal process. When the normal process showing the value of i > 20, the amarok crashes as it cannot keep up the required audio supply. That is, normal process starved the realtime process! PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 1100 root 1 118 0 3120K 720K CPU0 0 1:42 100.00% count 963 root 1 46 0 163M 27368K select 0 0:18 5.96% Xorg 1060 test 6 44 0 68380K 51568K ucond 1 0:00 5.47% amarokapp rtprio 963 rtprio: normal priority rtprio 1060 rtprio: realtime priority 0 rtprio 1100 rtprio: normal priority /* Count */ #include main() { double nc; int i; for (i=0; i < 100; i++) { for (nc=0; nc < 2000000000; nc++) ; printf("%d : %.0f\n", i, nc); } } Kind Regards Unga ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ