delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/09/23:53:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <50248583.30901@tlinx.org>
Date: Thu, 09 Aug 2012 20:52:35 -0700
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: App runs 8x slower on dual core machine (with test case to replicate issue)
References: <CAFY+UmUspDUbo4JaW9NDG1zf1oY2rgS5g3zO7q-qnby3tJqrSg AT mail DOT gmail DOT com> <20120809081720 DOT GQ31757 AT calimero DOT vinschen DOT de> <loom DOT 20120810T052639-721 AT post DOT gmane DOT org>
In-Reply-To: <loom.20120810T052639-721@post.gmane.org>
X-IsSubscribed: yes
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

Zach Saw wrote:
> Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes: 
>> Thanks for the testcase, but... would you mind to change it to take the
>> boost lib out of the picture, by using just plain pthread functions, if
>> possible in plain C?
> 
> Apparently someone else has already encountered similar problems in 
> cygwin perl 
> (http://www.nntp.perl.org/group/perl.perl5.porters/2011/07/msg174491.html)
--------------
--
I can confirm the perl test case:

Using the referenced prog:
on Linux:
cyg-perl-thread-test.pl
This is perl 5, version 14, subversion 2 (v5.14.2) built for 
x86_64-linux-thread-multi
Processing 10 tasks in 1 threads completed in 0.468952secs
Processing 10 tasks in 4 threads completed in 0.156822secs
cat /proc/cpuinfo/Hz|sort |uniq
model name      : Intel(R) Xeon(R) CPU           X5660  @ 2.80GHz
cpu MHz         : 1596.000


On Cygwin:
This is perl 5, version 14, subversion 2 (v5.14.2) built for 
cygwin-thread-multi-64int
Processing 10 tasks in 1 threads completed in 1.060806secs
Processing 10 tasks in 4 threads completed in 9.640635secs
/Users/law> cat /proc/cpuinfo|grep Hz|sort -r |uniq
model name      : Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz
cpu MHz         : 3325

---
Note -- neither of my cpu's have "HT" enabled.. So in both
cases 'threads' must use separate processes...



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