Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Sun, 29 May 2005 16:14:31 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Serious performance problems (new snapshot has some performance  improvement)
Message-ID: <20050529201431.GB28340@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <000b01c563c7$f4456f00$976d65da@DANNY> <4298F195.9090600@familiehaase.de> <20050529000152.GE3094@trixie.casa.cgf.cx> <20050529001846.GG3094@trixie.casa.cgf.cx> <20050529030523.GA10263@trixie.casa.cgf.cx> <20050529171324.GA26603@trixie.casa.cgf.cx> <429A19EC.9080905@familiehaase.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <429A19EC.9080905@familiehaase.de>
User-Agent: Mutt/1.5.8i

On Sun, May 29, 2005 at 09:37:16PM +0200, Gerrit P. Haase wrote:
>Christopher Faylor wrote:
>
>>On Sat, May 28, 2005 at 11:05:23PM -0400, Christopher Faylor wrote:
>>
>>>On Sat, May 28, 2005 at 08:18:46PM -0400, Christopher Faylor wrote:
>>>
>>>>I have an idea about how to work around this problem but I have to think
>>>>about how dangerous it might be.  Basically removing the signal handling
>>>>wrapper around pthread_getspecific and pthread_setspecific.  That may
>>>>work ok but I have to think about worst case scenarios.
>>>
>>>I've semi-convinced myself that pthread_[gs]etspecific do not need signal
>>>protection so I've released a snapshot which turns it off:
>>>
>>>http://cygwin.com/snapshots/
>>>
>>>This version is about 2.7 times faster than cygwin 1.5.17 but it is still
>>>not as fast as mingw.  I don't think we're going to hit mingw performance
>>>since there are still cygwin overhead issues involved.
>>>
>>>AFAIK, this is only going to provide a speedup for this specific case.
>>>I don't think a general cygwin user is going to notice any improvement.
>>
>>Gerrit, if you have a chance could you confirm or deny if this change has
>>any effect for you?
>
>I just changed the DLL, application is not recompiled:
>
>Snapshot DLL:
>
>$ C:\cygwin\bin\time cygspd.exe cygspd.dat
>94.04user 0.61system 1:41.69elapsed 93%CPU
> (0avgtext+0avgdata 10560maxresident)k
>0inputs+0outputs (667major+0minor)pagefaults 0swaps
>
>Release 1.5.17 DLL:
>
>$ C:\cygwin\bin\time cygspd.exe cygspd.dat
>264.50user 0.75system 4:48.08elapsed 92%CPU
> (0avgtext+0avgdata 10560maxresident)k
>0inputs+0outputs (667major+0minor)pagefaults 0swaps
>
>It is about 2,8514851485148514851485148514851 times faster at my
>workstation.

Cool.  Thanks for checking this.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

