delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/02/20:55:25

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
Date: Sat, 2 Aug 2003 18:02:44 -0700 (PDT)
From: vikramshrowty AT yahoo DOT com
X-X-Sender: vikram AT hidis DOT cjb DOT net
Reply-To: vikramshrowty AT fastmail DOT fm
To: cygwin AT cygwin DOT com
Subject: cygwin performance hit
Message-ID: <Pine.LNX.4.50.0308021748060.14889-100000@hidis.cjb.net>
MIME-Version: 1.0

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?

Thanks,
--Vikram

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