delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/13/09:09:54

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
Subject: Re: Speed of Cygwin's cp vs. Windows Explorer
References: <942b10df0705120623r391f6bdeg7aaf5643901a03b0 AT mail DOT gmail DOT com> <46463434 DOT 2060909 AT byu DOT net>
From: ls-cygwin-2006 AT m-e-leypold DOT de
Date: Sun, 13 May 2007 15:18:08 +0200
In-Reply-To: <46463434.2060909@byu.net> (Eric Blake's message of "Sat, 12 May 2007 15:40:04 -0600")
Message-ID: <731whk3lrj.fsf@hod.lan.m-e-leypold.de>
User-Agent: Some cool user agent (SCUG)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Eric Blake <ebb9 AT xxx DOT xxx> writes:

> According to Bob Heckel on 5/12/2007 7:23 AM:
>> Why would using Cygwin's cp to copy a large file from one Windows XP
>> box to another take 30 minutes but take only 10 minutes if I use drag
>> 'n' drop (via Explorer)?
>
> It has been mentioned in the past, and one of the ideas was adding support
> for posix_fadvise (added in the snapshots, but not in 1.5.x) and making
> coreutils take advantage of it to give Windows better hints about how the
> data being manipulated will be laid out.  I have not yet had time to play
> with this idea further, and the upstream coreutils maintainers are
> reluctant to rely on posix_fadvise just yet (since Linux currently has a
> bug where stating a file is read-once flushes it from the os cache for ALL
> processes, rather than just the process that is only going to read it
> once, which makes the read-once hint rather useless).

I thought that was what software configuration (and autoconf) was for:
-DHAVE_DEFECTIVE_fadvise or something like that should just remove the
support from coreutils like (AFAIR) you can remove use of mmap() too.


>> I'm in a position of defending the use of Cygwin instead of the manual
>> Windows way of doing things by those not familiar with Unix.  Any
>> hints would be appreciated.
>
> At least cygwin cp preserves permissions correctly.  Windows drag-n-drop
> has the annoying tendency of marking everything executable.

:-)

Regards -- Markus


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019