delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/03/02:43:01

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: "David E. Weekly" <david AT there DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Incredibly Slow chmod?
Date: Tue, 2 Jul 2002 23:42:27 -0700
Message-ID: <LHEEIFOFMFKJEJHIKLJCKEOHCDAA.david@there.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Importance: Normal

Cygwinners,

Apologies if this has already been answered, but I was unable to find an
answer to this question in the FAQ or via Google; I'm sorry if I overlooked
an obvious answer.

My problem is this: the "chmod" program is incredibly slow in newer Cygwins.
on the latest install of Cygwin (done completely clean) I get 8 chmod's a
second on a 1.8GHz P4. (If I loop over the chmod() call from Perl directly,
I can get ~5000 a second.)

In version of cygwin that are a chunk older (~1 year?), we can do over 100
chmod's a second. Clearly, something has changed somewhat recently to make
the chmod program considerably less efficient. This may also be affecting
other binaries performing basic filesystems work, such as "rm". I don't
know.

A) Is this a problem with our environment?
B) If not, is this a known bug with a workaround?
C) If not, are there plans to fix this?

I can provide a simple Perl script that just does as many chmods (of a
single file) as it possibly can in a second.

-david


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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