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: References: Date: Wed, 5 May 2010 07:18:46 -0400 Message-ID: Subject: Re: cpu usage capped? From: mike marchywka To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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