delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:subject:date:message-id:content-type | |
:content-transfer-encoding:mime-version; q=dns; s=default; b=gEu | |
L4jxs9APJnJUzP1Wvl9rz0rAsyWA7rK0arffPwl5nbqy8EcaCKxU3JJEUTbQ53Bo | |
oXeThvP0pggJWIFahrXiw9SjErXjsVPtoGMm7R9Gfah5zTJ5hKNcjQRJm2s5Apwx | |
X3rfT0zt/H2pa+0hWkm2SRsgjfOaB1V+8CcejF0o= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:subject:date:message-id:content-type | |
:content-transfer-encoding:mime-version; s=default; bh=4PSs4EglZ | |
b7pU6Sfq/A4azpb9Gs=; b=UQn3dDs+8HXw8xFdtjmic5Ecc7mc3MoQBbiOmGRGG | |
cacRyDbPQpoAIdOFR+u99Oh+xFFsDcr3Bo0j2XE5RG09aaK+21ceKwVXuVKhKoTH | |
/hjiuRkltwVwk+mlg51MZwnbjijaDkALaE9vLNOJuBUse7MyYzvE57CERPaSiIs8 | |
DA= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 |
X-SBRS: | None |
From: | Kees Dekker <Kees DOT Dekker AT infor DOT com> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | XWin.exe causes a 25% CPU load on Windows 7 |
Date: | Thu, 16 Mar 2017 15:28:23 +0000 |
Message-ID: | <858F859BB4F2824EBAB5D4ED58214CB7016A45F4C7@NLBAWEXMBX3.infor.com> |
MIME-Version: | 1.0 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id v2H4tCgr030525 |
Hi, I'm running into a strange problem. On my PC (a quad core i5), Xwin.exe takes (in combination with svchost.exe) 25% average CPU load. Stopping xwin.exe, also reduces the load to almost zero (if I'm not doing anything else). The 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 -- -clipboard -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 file (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.exe takes another 8-12%. This CPU consumption is almost all kernel times. Even tracing with either the Windows resource monitor, or sysinternals process 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 and svchost.exe (LocalSystemNetworkRestricted). A check with process explorer learned that almost all load of svchost.exe Is in uxsms.dll!ServiceMain. Xwin.exe's CPU load is in ig75icd64.dll!DrvSetLayerPaletteEntries+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 same applies to xinit. Svchost.exe is often in this trace, querying files and 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 ssh -Y <host> 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/suggestion how to find a root cause? Unfortunately, I don't know when this higher-than-expected CPU load occurred for the first time. The problem became somewhat more urgent as our IT department moved our systems to a newer virus scanner, that also seems to take (much) more resources. The combination of these two makes working with this 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |