public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Followup on eliminating symlink ReadFile calls -- it's not necessary
@ 2001-02-15  7:02 Robert Melchers
  0 siblings, 0 replies; 19+ messages in thread
From: Robert Melchers @ 2001-02-15  7:02 UTC (permalink / raw)
  To: cygwin

Robert Melchers wrote:
>
> This may or may not be relevant, We have recently upgraded our Virus
scanner to McAfee Virus Scan 4.5 from 4.x. our build of > 200 files has now
slowed by
> a factor of 5-10x. The only answer is to exit the scanner, The effect can
be seen using Task Manager, with the scanner active Make (and its sub
processes)
> get about 40% of the processor, and the Idle process the rest, exit this
scanner and Make get 100%. The source directory and Tools directories are
both
> excluded from the scanner.
> This is a known FAQed issue. Earnie.

I knew about the FAQ but I never noticed the slow down until the latest
scanner was installed. My guess is that their old problem is back again.

Robert.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <md5:6ACE45F554B052AAC9BD9700033B10F9>]
* Re: Followup on eliminating symlink ReadFile calls -- it's not necessary
@ 2001-02-15  1:28 Robert Melchers
  0 siblings, 0 replies; 19+ messages in thread
From: Robert Melchers @ 2001-02-15  1:28 UTC (permalink / raw)
  To: cygwin

This may or may not be relevant, We have recently upgraded our Virus scanner to McAfee Virus Scan 4.5 from 4.x. our build of > 200 files has now slowed by 
a factor of 5-10x. The only answer is to exit the scanner, The effect can be seen using Task Manager, with the scanner active Make (and its sub processes) 
get about 40% of the processor, and the Idle process the rest, exit this scanner and Make get 100%. The source directory and Tools directories are both 
excluded from the scanner.

Robert.



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Followup on eliminating symlink ReadFile calls -- it's not  necessary
@ 2001-02-14  9:46 Jonathan Kamens
  2001-02-14 13:12 ` Christopher Faylor
  0 siblings, 1 reply; 19+ messages in thread
From: Jonathan Kamens @ 2001-02-14  9:46 UTC (permalink / raw)
  To: cygwin

I asserted yesterday that Cygwin Make was being slowed down by the
ReadFile calls necessary to determine if a file should be considered
executable and whether or not it's a symbolic link.  I was only half
right.

DJ Delorie suggested using "mount -x" to eliminate the ReadFile for
determining whether a file is executable, and adding a new mount
option to indicate that there are no symbolic links under a particular
mountpoint, to eliminate the other ReadFile.

I implemented his suggestion, adding a "-l" flag and a corresponding
MOUNT_NO_SYMLINKS flag, and did some performance testing on the
result.  I was surprise to discover that mounting with this option
didn't provide any additional performance improvement over "-x".

This inspired me to do a more careful reading of the code, at which
point I noticed what I should have noticed before -- the ReadFile to
check for a symbolic link doesn't happen unless the system attribute
is set on a file.  In other words, the performance hit we were seeing
in Make was due entirely to the ReadFile checking for executability,
NOT to the ReadFile checking for symbolic links.

Therefore, the current Cygwin already has the ability to eliminate
this performance hit -- you just need to mount filesystems with "-x",
and no additional changes to Cygwin are necessary.

Thanks to everyone who responded to my messages yesterday offering
suggestions that helped me track this down.

Given the magnitude of the performance improvement when "-x" is used,
I wonder if its use should be recommended in the documentation, or
perhaps it should even be the default behavior.

  jik

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2001-02-16  8:59 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-15  7:02 Followup on eliminating symlink ReadFile calls -- it's not necessary Robert Melchers
     [not found] <md5:6ACE45F554B052AAC9BD9700033B10F9>
2001-02-15  5:48 ` Earnie Boyd
  -- strict thread matches above, loose matches on Subject: below --
2001-02-15  1:28 Robert Melchers
2001-02-14  9:46 Jonathan Kamens
2001-02-14 13:12 ` Christopher Faylor
2001-02-14 16:06   ` Jonathan Kamens
2001-02-14 17:48     ` Charles S. Wilson
2001-02-15  5:57       ` Jonathan Kamens
2001-02-15  9:49         ` Christopher Faylor
2001-02-15 11:49         ` Warren Young
2001-02-15 14:27           ` Christopher Faylor
2001-02-15 15:17             ` David Starks-Browning
2001-02-15 16:37               ` Christopher Faylor
2001-02-16  0:46                 ` Corinna Vinschen
2001-02-16  1:39             ` Warren Young
2001-02-16  8:59               ` Christopher Faylor
2001-02-14 19:16     ` Christopher Faylor
2001-02-15  6:07       ` Jonathan Kamens
2001-02-15 11:56         ` Warren Young

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