From owner-freebsd-current@FreeBSD.ORG Tue Sep 18 06:44:59 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C95016A41B for ; Tue, 18 Sep 2007 06:44:59 +0000 (UTC) (envelope-from marcus@blazingdot.com) Received: from marklar.blazingdot.com (marklar.blazingdot.com [207.154.84.83]) by mx1.freebsd.org (Postfix) with SMTP id 2FCFE13C45B for ; Tue, 18 Sep 2007 06:44:59 +0000 (UTC) (envelope-from marcus@blazingdot.com) Received: (qmail 87852 invoked by uid 503); 18 Sep 2007 06:18:06 -0000 Date: Mon, 17 Sep 2007 23:18:06 -0700 From: Marcus Reid To: Roman Bogorodskiy Message-ID: <20070918061806.GA85425@blazingdot.com> References: <20070916061932.GA93480@underworld.novel.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070916061932.GA93480@underworld.novel.ru> X-Coffee-Level: nearly-fatal User-Agent: Mutt/1.5.6i Cc: freebsd-current@freebsd.org Subject: Re: SCHED_ULE on desktop system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 18 Sep 2007 06:44:59 -0000 On Sun, Sep 16, 2007 at 10:19:32AM +0400, Roman Bogorodskiy wrote: > Hello, > > I'm curious if SCHED_ULE is designed to be used on a desktop system. I'm > running -CURRENT at home and tried to use SCHED_ULE for some time. It > works alright while the load is not very high. But once I start > compiling something (running 'make buildworld' or 'portupgrade -a' for > example), the machine comes almost unusable - X11's windows takes a lot > of time to redraw, changing virtual desktop in window manager may take > a several seconds. And it's nearly impossible to watch some movie with > mplayer. I find SCHED_ULE to provide much better interactivity than SCHED_BSD on my desktop. Normally, I can have a couple of compiles and a bunch of other stuff going on in the background and I can't even feel it, and I'm on a UP p4. I can, however, reproduce what you're talking about. It's always something graphically intensive that gets it going, and it only happens when there's a couple of compiles running in the background. I tried to trigger it for hours doing a ton of stuff non-graphical, including running a couple of jobs that made it go a gig into swap. It handled everything nicely. However, every time I do something like start an opengl app and drag it around or start xlock, with compiles in the background, things get very stuttery. After closing the offending app, it continues to be like that for a while, and eventually corrects itself and goes back to normal. I suspected xorg was maybe blocking on some writes to something but looking at the kdump of xorg didn't reveal anything to me. > However, when I switch to SCHED_4BSD, system's reaction time gets lower > and I even can watch a movie with mplayer when compiling something. I haven't tried SCHED_4BSD yet. I'll have more time tomorrow. Marcus