public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Curiosity about file access performance
@ 2021-10-29  9:35 Eliot Moss
  2021-10-29 10:14 ` Takashi Yano
  2021-10-29 10:44 ` Adam Dinwoodie
  0 siblings, 2 replies; 7+ messages in thread
From: Eliot Moss @ 2021-10-29  9:35 UTC (permalink / raw)
  To: cygwin

Dear Cygwiners -

I think a lot of us know that fork() under Cygwin is slower than on Linux and
have some grasp of why.  But I have noticed that file access is rather lower
under Cygwin as well.  My "poster child" for this is running latex.  I am
working on writing a book, which includes a huge number of LaTeX style files
and such.  Under WSL1 (which has the same fork cost issues as Cygwin for
similar reasons), reading the style files goes by in little more than the
blink of an eye (about 1 sec), while on Cygwin it takes a little over 17 seconds.

The time to process the body of the book is 23 seconds under WSL1 and 35 under
Cygwin.  So the total times are 53 seconds under Cygwin and 24 under WSL1.  I
believe the LaTeX installations are the same versions, and I get the same
outputs.  Both LaTeX's are 64 bit programs.  There is not much forking here
(at least I don't believe there is, but maybe there is under the cover for
doing things with pdf figures or something), but a fair amount of file I/O.

For many / most things, the Cygwin overhead is tolerable; for running this
book, since I will be doing it over and over, it was worth investing in
getting everything set up on WSL1.

But it got me wondering as to why?

Best wishes - Eliot

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

end of thread, other threads:[~2021-10-29 18:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29  9:35 Curiosity about file access performance Eliot Moss
2021-10-29 10:14 ` Takashi Yano
2021-10-29 10:23   ` Eliot Moss
2021-10-29 10:47     ` Noel Grandin
2021-10-29 18:33     ` bzs
2021-10-29 10:44 ` Adam Dinwoodie
2021-10-29 10:58   ` Eliot Moss

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