public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Cygwin is SLOW.
@ 2002-07-16  3:48 John Vincent
  0 siblings, 0 replies; 12+ messages in thread
From: John Vincent @ 2002-07-16  3:48 UTC (permalink / raw)
  To: david; +Cc: cygwin

Hi David,

I think the cygwin developers have deliberately made new versions
of cygwin go slow because they're mean :-))

But seriously, I think if you want anyone to look at this, especially
as you seem to have a whole network of installed machines and users
in your company, you could take the time to find out what is taking
the extra time (at the source code level) and propose a solution, or
if you feel competent, supply a patch.

I'm not one of the cygwin developers, but I've been using cygwin, and
taking part in this list, for long enough to know that it basically
all works on good-will. The more good-will you show, and effort to
help you make, the more others will.

I'm sending this email to you with good-will and I hope that's how
you take it. My point is that simply saying "we've got a room full
of cygwin installations in our company and it's not good enough"
is not going to get the response you want.

Best Wishes,
/John Vincent.


>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



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <1026851730.8871.ezmlm@cygwin.com>]
* RE: Cygwin is SLOW
@ 2002-07-16 11:42 BiDuS
  2002-07-16 13:39 ` Bernard A Badger
  0 siblings, 1 reply; 12+ messages in thread
From: BiDuS @ 2002-07-16 11:42 UTC (permalink / raw)
  To: cygwin

I've tried both slow and fast perl scripts on my machine (AMD XP1700, W2K)

If  test.file is on a local directory

$ perl slowchm.pl
113.4 chmods per sec
$ perl fastchm.pl
2923.6 chmods per sec

if test.file is on a mounted directory

$ perl slowchm.pl
51.9 chmods per sec
$ perl fastchm.pl
143 chmods per sec

Could anyone explain the performance ratio for both scripts ???

btw, on a "slow" linux p3-866
test.file being on a remote directory
$ perl slowchm.pl
187.8 chmods per sec
$ perl fastchm.pl
3096.8 chmods per sec

test.file being on a local directory
$ perl slowchm.pl
181.7 chmods per sec
$ perl fastchm.pl
263232.5 chmods per sec   (arf!)

I got a wider gap for small c program opening and closing about 650 files
It takes 0.750 s for local files and about 2 s for distant files
On the linux machine, it's just 0.1 s for distant files...

Is the _open() routine guilty ?
Is it linked to the unix AND dos path compatibility ?
Anyone as a hint to speed this up ?


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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Cygwin is SLOW.
@ 2002-07-16  3:25 David E. Weekly
  2002-07-16  8:20 ` Bernard A Badger
  0 siblings, 1 reply; 12+ messages in thread
From: David E. Weekly @ 2002-07-16  3:25 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-07-17 13:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-16  3:48 Cygwin is SLOW John Vincent
     [not found] <1026851730.8871.ezmlm@cygwin.com>
2002-07-17  3:09 ` BiDuS
2002-07-17  7:18   ` Bernard A Badger
  -- strict thread matches above, loose matches on Subject: below --
2002-07-16 11:42 BiDuS
2002-07-16 13:39 ` Bernard A Badger
2002-07-17  7:01   ` Tony Arnold
2002-07-16  3:25 David E. Weekly
2002-07-16  8:20 ` Bernard A Badger
2002-07-16  8:31   ` Bernard A Badger
2002-07-16  8:38   ` Joe Buehler
2002-07-16  8:44     ` Bernard A Badger
2002-07-16 15:54   ` David E. Weekly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).