delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 5 Nov 2007 12:22:53 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: High CPU usage on posix_fallocate call - CVS version |
Message-ID: | <20071105112253.GK31224@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <002601c81daa$157a1fb0$406e5f10$@com> |
MIME-Version: | 1.0 |
In-Reply-To: | <002601c81daa$157a1fb0$406e5f10$@com> |
User-Agent: | Mutt/1.5.16 (2007-06-09) |
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 |
On Nov 2 17:42, Rob Bosch wrote: > I found on MSDN that Windows has the capfilealloc function in all Windows OS > versions. This function was designed to create a preallocated capture file > of a specified size. It seems like this would accomplish what cygwin needs > with the posix_fallocate function? Not at all. Did you *read* what this method is about? > -----Original Message----- > From: Rob Bosch [mailto:XXXXXXXX AT XXX DOT XXX] Even though this is your own mail address, please: http://cygwin.com/acronyms/#PCYMTNQREAIYR http://cygwin.com/acronyms/#TOFU > When my compiled version of rsync is using the posix_fallocate function I’m > getting significant CPU usage. [...] > getting 20%-25% CPU utilization during the posix_fallocate call. [...] > It also takes 20 minutes for the file to be created using this call. I can't reproduce this behaviour. I created a 40 Gigs file (haven't 77 Gigs left) on my XP box using the posix_fallocate function (which, btw., is basically just a single native NT call under the hood) and it takes roughly a few milliseconds. Did you look for http://cygwin.com/acronyms/#BLODA ? http://cygwin.com/ml/cygwin-talk/2007-q4/msg00026.html Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |