From owner-freebsd-performance@FreeBSD.ORG Fri Nov 19 14:48:04 2010 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD57C1065674 for ; Fri, 19 Nov 2010 14:48:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 00F4C8FC08 for ; Fri, 19 Nov 2010 14:48:03 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id oAJE8OfC060679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Nov 2010 16:08:24 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id oAJE8O6h032767; Fri, 19 Nov 2010 16:08:24 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id oAJE8Omt032766; Fri, 19 Nov 2010 16:08:24 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 19 Nov 2010 16:08:24 +0200 From: Kostik Belousov To: Andriy Gapon Message-ID: <20101119140824.GO2392@deviant.kiev.zoral.com.ua> References: <4CE50849.106@zedat.fu-berlin.de> <4CE52177.3020306@freebsd.org> <20101118182324.GA36312@freebsd.org> <20101119044129.GA4063@johnny.reilly.home> <20101119094652.00003652@unknown> <4CE64879.2060802@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mcnwp324tjjFs4IZ" Content-Disposition: inline In-Reply-To: <4CE64879.2060802@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-performance@freebsd.org Subject: Re: TTY task group scheduling X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 14:48:04 -0000 --mcnwp324tjjFs4IZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 19, 2010 at 11:50:49AM +0200, Andriy Gapon wrote: > on 19/11/2010 11:46 Bruce Cran said the following: > > [removed current@ and stable@ from the Cc list] > >=20 > > On Fri, 19 Nov 2010 15:41:29 +1100 > > Andrew Reilly wrote: > >=20 > >> On Linux. Have you ever seen those sorts of UI problems on FreeBSD? > >> I don't watch much video on my systems, but I haven't seen that. > >> FreeBSD has always been good at keeping user-interactive processes > >> responsive while compiles or what-not are going on in the background. > >=20 > > I've definitely seen problems when running builds in an xterm. I've > > often resorted to canceling it and running it on a syscons console > > instead to improve performance. > >=20 >=20 > So, what was it a problem with scheduler or with, e.g., "something X" > being too slow rendering glyphs? Who can tell... Probably will pay a lot in negative karma by posting anything in the thread. But I can confirm your words, that tty->xterm->X server chain of output indeed significantly slows down the build processes. I usually never start build in the barebone xterm, always running screen under xterm. make -j 10 on 4 core/HTT cpu slows up to a half, from my unscientific impression, when run in the active screen window. Switching to other window in screen significantly speeds it up (note the prudent omission of any measured numbers). --mcnwp324tjjFs4IZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAkzmhNgACgkQC3+MBN1Mb4j6BwCg4JGYHhi3OwCkYR0ccv5ro5Ki 8dgAoOsRIy9Sj0SZl8QYOVKghzkcpEYn =QAjw -----END PGP SIGNATURE----- --mcnwp324tjjFs4IZ--