delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/22/15:40:52

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
From: "Hannu E K Nevalainen" <garbage_collector AT telia DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: cygwin performance
Date: Wed, 22 Oct 2003 21:40:10 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEKEJNDFAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <3F95B7DE.90601@tlinx.org>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

> From: Linda W.
> Sent: Wednesday, October 22, 2003 12:49 AM

> >>Perhaps it is unavoidable, but I see things like find doing 2
> >>'opens' /file when it is searching for files...can't it just do a
> >>'stat' of some nature?  does it need to do an open, let alone 2?

 I believe that the major culprit is looking for executable files. If I have
understood things correctly.

$ mount -h | grep exe
  -x, --executable      treat all files under mount point as executables
  -E, --no-executable   treat all files under mount point as
                        non-executables
  -X, --cygwin-executable   treat all files under mount point as
                            cygwin executables

I've not tried this, but anyway: I wonder what happens if one uses the
sequence;

	umount /blaha
	mount -E / -X  / -x "MS-PATH" /blaha
	find /blaha ...
	umount /blaha
	mount -bs "MS-PATH" /blaha

I'd suspect there could be a "slight" time reduction. Of course this cannot
be done on subdirectories, just mount points.

 OTOH it might enlighten users about the benefit of using the -E/X/x mount
flags. Also; having done "mount -E" could well be considered a security
issue... maybe ;-P

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --
--END OF MESSAGE--


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