This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin is SLOW.


Modern cygwins seem to be very slow. "Modern" meaning built within the last
6 months or so, and "slow" means that many basic file operations, such as
"chmod", seem to be >10x slower (measured, not exaggerating) than previous
cygwins. This is creating a pretty tight situation at our company as we're
having to rewrite scripts, etc, to work around this. The sample test script
below should demonstrate the problem. With "old" cygwins I got nearly 1000
chmod's second on my workstation. With "new" cygwins I get under a dozen.
The comparison was done on the same machine, same filesystem (NTFS) with
otherwise identical conditions.

Have others been running into this? We're seeing this on all the machines at
our company, so I'm pretty convinced it's not just a localized wierdness or
misconfiguration. We'd love to be using Cygwin, but we may have to bail if
we can't get it to run acceptably fast.

-david


=====================================


chmod ( 000, "test.file" ) || die "chmod test.file: $!";
-w "test.file" || die "cannot change test.file's permissions" $!";
$t = time;
while( $t == time ) {}
$t = time;
$secs = 5;
$stop = $t + $secs;
while( time < $stop ) {
  system( "chmod 777 test.file" ) == 0 or die "blah, $!";
  $n++;
}
print $n / $secs, " chmods per sec\n";
-w "test.file" || die "test.file is not writeable: $!";


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]