From owner-freebsd-stable@FreeBSD.ORG Fri Sep 3 19:30:23 2010 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 ABCA710656C3 for ; Fri, 3 Sep 2010 19:30:23 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 506DB8FC19 for ; Fri, 3 Sep 2010 19:30:23 +0000 (UTC) Received: by ywt2 with SMTP id 2so1078422ywt.13 for ; Fri, 03 Sep 2010 12:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xKkiARaGzgLky2u+et4LkzFmZ50BNgR9/8WTnoqdXjY=; b=rn2JK45fsB4C9JcZI/csf69TFnXvwvrUkT5F6DANwUEDc2PCdilZtWPC7gT/u2oq/e pwzpLIvQRWqwVpQBBEc9m0VAW5q+qgLSG1qXqr2cT/BNGr2HNcIgDPhL6VWWFK0ZDHCO NspjjrE17MtvYnSF5PvqWbZNmbMCeOz7fAHTM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=IB7RLCrbfxhvHZmUQuKoojDYX2eRtCbvPMhY51lCiYQgfwZFB7NDfaXXecZGfkj/tO TfCsVI1XnW6lPGuaWW3yugFwBhkoB0riidN+CJKw+GjKi/F5JLhFwHmhyvwvgmuIpmrq b1vfjH5+qWtGwl7LeLB3sF80njDGa16vrqgB8= Received: by 10.101.84.18 with SMTP id m18mr241218anl.60.1283540591097; Fri, 03 Sep 2010 12:03:11 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id d4sm3132214and.19.2010.09.03.12.03.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Sep 2010 12:03:09 -0700 (PDT) Message-ID: <4C814665.3070306@gmail.com> Date: Fri, 03 Sep 2010 14:03:01 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Luca Pizzamiglio References: <4C7F7C0F.8080004@icyb.net.ua> <4C7F9ACE.80705@bally-wulff.de> In-Reply-To: <4C7F9ACE.80705@bally-wulff.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: jan.grant@bristol.ac.uk, freebsd-stable@freebsd.org Subject: Re: Tuning the scheduler? Desktop with a CPU-intensive task becomes rapidly unusable. 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: Fri, 03 Sep 2010 19:30:23 -0000 i just noticed this too... had a build going of qt-creator, and then started a /usr/src make clean, and had to abort the qt-creator build to get the make clean to finish. it was taking forever to even paint the xterm in the make clean window. -stable built as of last week, amd64 kernel, core2 duo e8200, 4G ram (3.9G usable), intel dq45ek motherboard, kde4, compositing turned off. Luca Pizzamiglio wrote: > Hello, > > My machine has a similar behavior. For instance, during intensive > workload (portupgrade), everything is quite not-responsive. > > I made an alias of portupgrade, nice -n 5 portupgrade, that solves the > problem just in that particular case. > > My system is AMD Athlon(tm) 64 Processor 3000+ (1809.28-MHz 686-class > CPU) with openGL effects disabled, KDE as desktop environment. > > There is an interesting mib kern.sched.interact. But I don't know the > meaning of it (my value is 30). > > Cheers, > Luca > > On 09/02/2010 12:46, jan.grant@bristol.ac.uk wrote: >> On Thu, 2 Sep 2010, Andriy Gapon wrote: >> >>> on 02/09/2010 12:08 jan.grant@bristol.ac.uk said the following: >>>> On Wed, 1 Sep 2010, Ivan Voras wrote: >>>> >>>>> On 09/01/10 15:08, jan.grant@bristol.ac.uk wrote: >>>>>> I'm running -STABLE with a kde-derived desktop. This setup (which is >>>>>> pretty standard) is providing abysmal interactive performance on an >>>>>> eight-core machine whenever I try to do anything CPU-intensive >>>>>> (such as >>>>>> building a port). >>>>>> >>>>>> Basically, trying to build anything from ports rapidly renders >>>>>> everything >>>>>> else so "non-interactive" in the eyes of the scheduler that, for >>>>>> instance, >>>>>> switching between virtual desktops (I have six of them in reasonably >>>>>> frequent use) takes about a minute of painful waiting on redraws to >>>>>> complete. >>>>> >>>>> Are you sure this is about the scheduler or maybe bad X11 drivers? >>>> >>>> Not 100%, but mostly convinced; I've just started looking at this. >>>> It's my >>>> first stab at what might be going on. X11 performance is usually >>>> pretty >>>> snappy. There's no paging pressure at all. >>> >>> From my experience: >>> 1. system with Athlon II X2 250 CPU and onboard AMD graphics - no >>> issues with >>> interaction between buildworld and GUI with all KDE4 effects enabled >>> (OpenGL). >>> 2. system with comparable Core2 Duo CPU and onboard Intel graphics >>> (G33) - >>> enabling OpenGL desktop effects in KDE4 leads to the consequences >>> like what you >>> describe. With all GUI bells and whistles disabled the system >>> behaves quite >>> like the AMD system. >> >> All desktop effects are disabled. The graphics are from an nVidia >> GeForce >> 8500 GT (G86) with the X.org driver. (It's not _just_ desktop behaviour >> that's affected, though: the box runs a number of small headless >> [interactive] server processes which also appear to get rapidly >> starved of >> CPU time.) >> >> The behaviour isn't visible with the 4bsd scheduler; "stuff" generally >> remains snappy and responsive. >> >> I'll keep poking around and see if I can get to the bottom of it. >> >> >> >