delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/29/12:38:18

X-Spam-Check-By: sourceware.org
Message-ID: <45955290.9090906@byu.net>
Date: Fri, 29 Dec 2006 10:38:24 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cp vs native copy performance; suboptimal st_blksize?
References: <Pine DOT CYG DOT 4 DOT 58 DOT 0612281439570 DOT 2412 AT PC1163-8460-XP DOT flightsafety DOT com>
In-Reply-To: <Pine.CYG.4.58.0612281439570.2412@PC1163-8460-XP.flightsafety.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Brian Ford on 12/28/2006 2:15 PM:
>
> Current cp gets its initial buffer size from the st_blksize field
> returned by fstat, which is currently set to 1k.  I have found several
> references on the web that state 64k is the "native" I/O size for the
> disk cache manager.  This might also fix the infamous USB transfer
> rate issue as discussed here:
>
> http://www.cygwin.com/ml/cygwin/2006-08/msg00090.html
>
> Should we change st_blksize to 64k for performance reasons?
> The benefit is non-trivial, IMHO.

There is also the question of whether using posix_fallocate and
posix_fadvise will help matters; it is something I've been meaning to get
to, but as it currently depends on 1.7.x snapshots, it hasn't been my
highest priority.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFlVKP84KuGfSFAYARArQDAKCjUYJOkLnQNZlG9JkoYwoAPtE6UQCZAUBo
wOkuVDdl3ufT/DgjfKGtmio=
=iYGO
-----END PGP SIGNATURE-----

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