From owner-freebsd-x11@FreeBSD.ORG Tue Apr 15 03:10:10 2008 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0578F106566C for ; Tue, 15 Apr 2008 03:10:10 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from smtp.vangyzen.net (static-74-41-215-198.dr01.brvl.mn.frontiernet.net [74.41.215.198]) by mx1.freebsd.org (Postfix) with ESMTP id CAC7E8FC0A for ; Tue, 15 Apr 2008 03:10:09 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from eddie.vangyzen.net (eddie.vangyzen.net [10.1.1.2]) by smtp.vangyzen.net (Postfix) with ESMTP id 4DBE42285D for ; Mon, 14 Apr 2008 21:50:20 -0500 (CDT) Message-ID: <480417EC.5090301@vangyzen.net> Date: Mon, 14 Apr 2008 21:50:20 -0500 From: Eric van Gyzen User-Agent: Thunderbird 2.0.0.9 (X11/20071208) MIME-Version: 1.0 To: freebsd-x11@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Xorg 7 uses much more CPU than Xorg 6 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2008 03:10:10 -0000 Immediately after upgrading from Xorg 6 to 7, I noticed that whenever an xterm is "busy" (e.g. compiling something), the entire desktop is sluggish. I've noticed this on at least three machines with vastly differing hardware. To quantify my experience, I created to slices on one i386 machine and installed two systems: FreeBSD 6.2 with X.org 6.9 FreeBSD 6.3 with X.org 7.3 I created the initial xorg.conf file with "X -configure" and made trivial modifications for my mouse and monitor. Running only twm and some xterms, I compiled the 6.2-RELEASE world on each system and recorded the CPU time used by the Xorg server: Xorg 6 7.23 seconds Xorg 7 17.77 seconds I also ran "yes" with an 80-character argument and ran top to watch CPU usage. After top reached a steady state, I recorded the following: ==== Xorg 6 ==== CPU states: 67.3% user, 0.0% nice, 32.7% system, 0.0% interrupt, 0.0% idle PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 709 root 1 120 0 5240K 4200K RUN 1:08 61.24% xterm 702 root 1 107 0 54636K 10176K select 0:47 30.77% Xorg 729 root 1 6 0 1260K 616K ttywri 0:04 3.28% yes ==== Xorg 7 ==== CPU states: 25.9% user, 0.0% nice, 74.1% system, 0.0% interrupt, 0.0% idle PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 768 root 1 122 0 58408K 13188K RUN 1:13 71.44% Xorg 777 root 1 106 0 5344K 4284K RUN 0:25 24.77% xterm 793 root 1 6 0 1268K 604K ttywri 0:02 0.79% yes ================ Does anyone have any ideas why this is happening? I'll gladly supply my configurations, but they are all remarkably generic. Thanks, Eric