delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/05/07:19:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,TW_YW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <loom.20100505T062309-66@post.gmane.org>
References: <p2r988dc97d1005041834hc39fad3au5b65dc5b6a009bbc AT mail DOT gmail DOT com> <loom DOT 20100505T062309-66 AT post DOT gmane DOT org>
Date: Wed, 5 May 2010 07:18:46 -0400
Message-ID: <z2pb0ddfae81005050418h2a341f41hcc92e3110c6cc6e2@mail.gmail.com>
Subject: Re: cpu usage capped?
From: mike marchywka <marchywka AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 5/5/10, Mark Geisert <mark AT maxrnd DOT com> wrote:
>> I have some code that takes advantage of 8 cores on my machine using
>> OpenMP. Under plain ol windows, this code causes all the CPUs to max

on some computers you can get things like virus protection software to
do thta. LOL. My point of course, inline with comments below, is that
CPU usage doesn't equate to getting anything useful done. This could
be time spent doing thread-threed communications, who knows.

>> out at 99%. But when recompiled for cygwin, each core jumps to about
>> 85%. The rest is not being used by other processes. Could someone
>> explain why this is the case?

Usually this is VM or IO or maybe lock starvation. In all seriousness, this
could occur if the compiled code is significantly better
although last time I looked years ago the MS compilers were supposed
to be better, and INTC compiler the best  but it depends on options
etc.  You need to do a wall clock performance test here. Also these
things can be quite sensitive to specific conditions, your mileage
may vary.

>
> Obviously, Cygwin gets the job done with less CPU utilization, handing you
> back
> 15% of your machine.  And you're complaining?
>
> ..mark
>
> P.S. A more helpful response can likely only occur if you spell out more
> specifically which varieties of apples and oranges you're comparing.  For
> starters: "plain ol windows", is that MSVC or MinGW?  Is disk I/O involved?
> What OS and environment (e.g., VM? TS?).  I'm pretty sure I'm only
> scratching
> the surface here.  We don't know what your code does other than use OpenMP.
>
>
> --
> 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
>
>


-- 
marchywka AT gmail DOT com
note new address 2009-12-16:
Mike Marchywka
1975 Village Round
Marietta GA 30064
415-264-8477 (w)<- use this
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
marchywka AT hotmail DOT com
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: hotmail is censoring incoming mail using random criteria beyond
my control and often hangs my browser
but all my subscriptions are here..., try also marchywka AT yahoo DOT com

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019