From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45900 invoked by alias); 16 Mar 2017 15:28:28 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 45885 invoked by uid 89); 16 Mar 2017 15:28:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=812, HAccept-Language:nl-NL, clues, virus X-HELO: nlsmtpp2.infor.com Received: from nlsmtpp2.infor.com (HELO nlsmtpp2.infor.com) (194.149.81.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Mar 2017 15:28:25 +0000 X-SBRS: None From: Kees Dekker To: "cygwin@cygwin.com" Subject: XWin.exe causes a 25% CPU load on Windows 7 Date: Thu, 16 Mar 2017 15:28:00 -0000 Message-ID: <858F859BB4F2824EBAB5D4ED58214CB7016A45F4C7@NLBAWEXMBX3.infor.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2017-03/txt/msg00169.txt.bz2 Hi, I'm running into a strange problem. On my PC (a quad core i5), Xwin.exe tak= es (in combination with svchost.exe) 25% average CPU load. Stopping xwin.ex= e, also reduces the load to almost zero (if I'm not doing anything else). T= he load is mainly on 2 CPUs (almost 50% on both) and 10% on the other two. = Almost all the shown CPU load in Windows task manager are kernel times (90%= of the load). The way how I start my (64-bit) X-server is on Windows 7 x64: C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin -- -clip= board -multiwindow -silent-dup-error The .startxwinrc file contains nothing else than sleep 2000000000 Even if I replace the sleep with xterm, or even remove the .startxwinrc fil= e (and fall back to the default, i.e. an additional icon in my system tray)= , it does not make any difference. My system is also equipped with a virus scanner, but even if I (temporarily= ) disable it, it makes no difference. Xwin still takes 12-15% and svchost.e= xe takes another 8-12%. This CPU consumption is almost all kernel times. Even tracing with either the Windows resource monitor, or sysinternals proc= ess explorer does not show (for me) much clues. The resource monitor shows = some disk I/O (< 100Kb), almost no network I/O (<10Kbps) but sill 25+% CPU = usage. The two top processes on the Windows Resource monitor are Xwin.exe a= nd svchost.exe (LocalSystemNetworkRestricted). A check with process explorer learned that almost all load of svchost.exe I= s in uxsms.dll!ServiceMain. Xwin.exe's CPU load is in ig75icd64.dll!DrvSetL= ayerPaletteEntries+0x950. Capturing process traces with process monitor can be done, but Xwin.exe is = just a very few times existent in this trace (that ran for 1 minute). The s= ame applies to xinit. Svchost.exe is often in this trace, querying files an= d registry. But nothing that points to a clue (for me). May be wmiprvse.exe= may also play a role. Notes: 1. All packages are up to date (Cygwin setup did not find any updates). 2. Nothing else is running in the X server. No xterm, no remote connections= , nothing. Only the XWin.exe/X-server has been started. 3. Opening remote connections (to Unix system), in the form exec xterm -e s= sh -Y will not lead to significantly more CPU load. The 25% average = CPU usage is quite consistent (may vary a few percent, but not more). I know, the above information is vague, but do anyone have a suggestion/sug= gestion how to find a root cause? Unfortunately, I don't know when this higher-than-expected CPU load occurre= d for the first time. The problem became somewhat more urgent as our IT dep= artment moved our systems to a newer virus scanner, that also seems to take= (much) more resources. The combination of these two makes working with thi= s PC bad. Regards, Kees -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple