X-Spam-Check-By: sourceware.org From: "Gary R. Van Sickle" To: Subject: RE: cygwin copy problems usb 2.0 Date: Thu, 27 Jul 2006 10:53:41 -0500 Message-ID: <000901c6b194$d56881f0$020aa8c0@DFW5RB41> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <5519828.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 > From: aldana > Sent: Thursday, July 27, 2006 7:15 AM > Subject: cygwin copy problems usb 2.0 > > > hi, > > i've got usb 2.0, when i copy through TotalCommander the copy > speed is quite high. I have no idea what a TotalCommander is, but from the context here I assume it's a native Windows app that has copying abilities which are highly optimized for speed. > when i copy through cygwin shell it > seems that it is transmitting data only with usb 1.x speed. > very spooky, because i thought that cygwin is calling windows > drivers/api so it should be indirectly supporting usb2.0 ? > I can assure you with 99.44% confidence that Cygwin is not somehow downgrading your USB connections from 2.0 to 1.x. Such decisions get made at a much much lower level than user-mode apps operate at. In fact, I doubt it's even possible for this to happen in kernel-mode code - I think this all happens at the hub/device hardware/SIE level. Cygwin's cp is slower than a native copy, from anywhere to anywhere else, for a number of reasons. The main one, last I looked (admittedly years ago), was a fallout of portability. Cp opens file and copies them an (f)read/(f)write buffer at a time, while your Windows native program almost certainly simply calls CopyFile() (a Win32 API), bypassing a ton of library code. -- Gary R. Van Sickle -- 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/