From owner-freebsd-current@FreeBSD.ORG Wed Jun 18 01:22:18 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67D0D37B401 for ; Wed, 18 Jun 2003 01:22:18 -0700 (PDT) Received: from lakemtao06.cox.net (lakemtao06.cox.net [68.1.17.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9435843F75 for ; Wed, 18 Jun 2003 01:22:17 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from sysinfo.mezzweb.com ([68.103.32.11]) by lakemtao06.cox.net ESMTP <20030618082217.GZBV23505.lakemtao06.cox.net@sysinfo.mezzweb.com>; Wed, 18 Jun 2003 04:22:17 -0400 To: Jeff Roberson , current@freebsd.org References: <20030617024059.Y36168-100000@mail.chesapeake.net> Message-ID: Content-Type: text/plain; charset=utf-8; format=flowed From: Jeremy Messenger MIME-Version: 1.0 Date: Wed, 18 Jun 2003 03:07:36 -0500 In-Reply-To: <20030617024059.Y36168-100000@mail.chesapeake.net> User-Agent: Opera7.11/Linux M2 build 406 Subject: Re: cvs commit: src/sys/kern sched_ule.c (fwd) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 08:22:18 -0000 On Tue, 17 Jun 2003 02:45:18 -0400 (EDT), Jeff Roberson wrote: > My last few commits, including this one, went a long way towards > improving > ULE's interactive responsiveness under heavy load. I was just able to do > a make -j32 of my kernel while browsing the web with mozilla and > commiting > this change. Mozilla, my shell, cvs, etc. were all as responsive as they > are on an unloaded system. Don't you think, the mplayer, xine and sound stuff might be better apps to test? Like, play the video and sound to see if they won't skip the frames or lag behind. Cheers, Mezz > This is on a 2ghz laptop so your mileage may not be exactly the same. > This is a significant improvement over the old state of things. If the > interactive perf was chasing you away before, ULE should be much better > now. > > Cheers, > Jeff > > > ---------- Forwarded message ---------- > Date: Mon, 16 Jun 2003 23:39:51 -0700 (PDT) > From: Jeff Roberson > To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org > Subject: cvs commit: src/sys/kern sched_ule.c > > jeff 2003/06/16 23:39:51 PDT > > FreeBSD src repository > > Modified files: > sys/kern sched_ule.c > Log: > - Add a new function "sched_interact_update()" that scales back the sleep > and run time. > - Scale the sleep and run time back via sched_interact_update() in more > places. This is to keep the statistic more accurate. > - Charge a parent one tick for forking a child. > - Add only the run time and not the sleep time to the parents kg when a > thread exits. This allows us to give a penalty for having an expensive > thread exit but does not give a bonus for having an interactive thread > exit. > - Change the SLP_RUN_THROTTLE to limit us to 4/5th and not 1/2. > - Change the SLP_RUN_MAX to two seconds. This keeps bursty interactive > applications like mozilla and openoffice in the interactive range even > through expensive tasks. > - Recalculate the slice after every sleep. This ensures that once a task > has been marked interactive it only has a slice of 1 at the risk of > giving tasks that sleep for a very brief period a longer time slice. > > Revision Changes Path > 1.42 +20 -23 src/sys/kern/sched_ule.c -- bsdforums.org 's moderator, mezz.