delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/03/15:56:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Info: This message was accepted for relay by
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication
X-Trace: UmFuZG9tSVbJ9q3IHTwaaUxfAY3wpDBkjG1ubOOgiHNtc2Ih/czwFaUhSHeMclws
Message-ID: <3F2D67F7.1050503@cygwin.com>
Date: Sun, 03 Aug 2003 15:52:23 -0400
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: vikramshrowty AT fastmail DOT fm
CC: cygwin AT cygwin DOT com
Subject: Re: cygwin performance hit
References: <Pine DOT LNX DOT 4 DOT 50 DOT 0308021748060 DOT 14889-100000 AT hidis DOT cjb DOT net>
In-Reply-To: <Pine.LNX.4.50.0308021748060.14889-100000@hidis.cjb.net>

vikramshrowty AT yahoo DOT com wrote:

> Hi,	
> 	Im seeing a severe perfomance hit from cygwin. Heres the result of
> $time make_depend with a cygwin-compiled makedepend:
> ------------------------------------------------------------------------
> 2.65user 27.90system 9:22.59elapsed 5%CPU (0avgtext+0avgdata 49856maxresident)k
> 0inputs+0outputs (3190major+0minor)pagefaults 0swaps
> ------------------------------------------------------------------------
> and heres the output from a -mno-cygwin compiled makedepend:(the same code)
> ------------------------------------------------------------------------
> 0.09user 0.04system 2:13.47elapsed 0%CPU (0avgtext+0avgdata 43280maxresident)k
> 0inputs+0outputs (2781major+0minor)pagefaults 0swaps
> ------------------------------------------------------------------------
> 
> I ran an strace on the cywinized makdepend and ran a sort -k 1 -r on
> the output.( to sort the functions by the time-delta). There are a lot
> of calls to GetFileAttributes at the top of the sorted output...like this
> 
> ------------------------------------------------------------------------
> 97332 19244539 [main] build_makedepend 331 symlink_info::check:
> GetFileAttributes (\\asic-auth\homes\NT\dev\src\tool\tool-list\sys.h)
> failed
> ------------------------------------------------------------------------
> 
> Thats a network mounted directory so I suppose some slowdown is
> expected but shouldnt the native (-mno-cygwin) version see the same
> slowdown? Is there a reason for cygwin-compiled programs to see a
> larger hit?


Beyond the fact that makedepend calls into system services for Cygwin
go through an emulated API and POSIX path to Win32 path conversion, no.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746


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

- Raw text -


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