X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <27474697.post@talk.nabble.com> Date: Fri, 5 Feb 2010 14:21:59 -0800 (PST) From: Chap Harrison To: cygwin AT cygwin DOT com Subject: Slow manipulation of network-shared files MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com This is wordy but I've tried to make it clear :-) I have a Perl app running in Cygwin 1.7.1, whose job is to monitor the log files being written by a Java program on another Windows Server 2003 box elsewhere on the LAN. (I'm using the CPAN File::Tail module, which provides 'tail -f' functionality, to monitor the log.) The actual I/O is fine. File::Tail responds very quickly to new data being written by the Java program to the log files in the shared folder on the LAN. The Perl app watches for log messages from the Java program that say, in effect, "I just closed file foo.txt". It then moves foo.txt into another directory. However, it is frequently the case that the Perl program cannot move (File::Move) the file - sometimes even after trying 5 times at one-second intervals. My suspicion is that the file is slow to be seen as officially "closed" by all interested parties. And even when the Java program has halted, and has presumably closed all the files it created, but has not yet been "Quit" from the GUI, the Perl program is glacially slow to move the remaining files. What's more, at this point any other bash shells I'm running in Cygwin become almost completely unresponsive, even just moving the cursor. When I quit the Java app from its GUI, everything instantly returns to normal. I'm guessing this has something to do with concurrency control over network-shared resources (the output files Java wrote and I'm trying to move). Just to add another layer of complexity, the Cygwin host OS (WinServer 2003) is running as a virtual machine hosted by a real box running WinServer 2003 and Virtual Server 2005. Any explanations, solutions, or workarounds? Thanks, Chap -- View this message in context: http://old.nabble.com/Slow-manipulation-of-network-shared-files-tp27474697p27474697.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple