From owner-freebsd-stable@FreeBSD.ORG Mon Sep 6 19:05:59 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 3E82F10656E4; Mon, 6 Sep 2010 19:05:59 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id A80548FC19; Mon, 6 Sep 2010 19:05:58 +0000 (UTC) Received: by qwg5 with SMTP id 5so4422351qwg.13 for ; Mon, 06 Sep 2010 12:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=OyHC+PWwdPWKvh6WeKGlZZ5K+NQB7loAE+StokO9iEc=; b=A2hh97mpvm+MBJo1F6DaxZNIoyd7rmH7k805YZxY8nBxz7hZWye6aVQRMa3Sy8DoTI ET6YkALy6Y4u42H/ovoPJ8F8XQQZcnn81QHP7tnaGyQb83nOgo9Rd8sAYpQApx8ax4kr JVsZ3Nfwm06i4WWqpbVHPVgguGBAWvktzxoLE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=Fg7SNIg2UvEZkVYQrXDkj7IWPbMTh5GsTmtwwftWQ/oL6whnJi6KIWXm9pOigTJra2 pV47Q/zhuPQRSFxKoBbO2LLRJQrO+DKiUtAnUuAHZGG1HF3aam1fTABQ7jX2ZMFfERPz P8bSoiQl8cM1sRjpfmbJwcCyMgjJvJdhiwYI8= Received: by 10.224.119.20 with SMTP id x20mr65532qaq.249.1283799957745; Mon, 06 Sep 2010 12:05:57 -0700 (PDT) Received: from centel.dataix.local (adsl-99-181-137-20.dsl.klmzmi.sbcglobal.net [99.181.137.20]) by mx.google.com with ESMTPS id t24sm5939891qcs.47.2010.09.06.12.05.54 (version=SSLv3 cipher=RC4-MD5); Mon, 06 Sep 2010 12:05:55 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4C853B91.4090601@DataIX.net> Date: Mon, 06 Sep 2010 15:05:53 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100806 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: David Xu References: <4C7F7C0F.8080004@icyb.net.ua> <4C818F65.3000603@freebsd.org> In-Reply-To: <4C818F65.3000603@freebsd.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: jan.grant@bristol.ac.uk, freebsd-stable@freebsd.org, Andriy Gapon , Ivan Voras 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: Mon, 06 Sep 2010 19:05:59 -0000 On 09/03/2010 20:14, David Xu wrote: > 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. >> >> >> >> > I think sysctl kern.sched.preempt_thresh is too low, default is only > 64. I always tune it up to 200 on my desktop machine which is > running gnome and other GUI applications, for a heavy GUI deskkop, I > would tune it up to 224 to get better result. > For reference how did you arrive at 224 for a result ? -- jhell,v