delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <BAY109-DAV11893BB2380E99C76D33D4CF8C0@phx.gbl> |
X-Sender: | robbosch AT msn DOT com |
From: | "Rob Bosch" <robbosch AT msn DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | High CPU usage on posix_fallocate call - CVS version |
Date: | Thu, 1 Nov 2007 17:27:02 -0600 |
Message-ID: | <001101c81cde$b4ff3240$1efd96c0$@com> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 12.0 |
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 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id lA1NRD1B031959 |
When my compiled version of rsync is using the posix_fallocate function I’m getting significant CPU usage. The machine is a dual-core processor and I’m getting 20%-25% CPU utilization during the posix_fallocate call. Machine stats – Windows Server 2003 x64 R2, 4GB RAM (over 2.0GB free), fiber connected SATA RAID. I’m wondering if the CPU spike should be expected? The file size I’m creating is 77GB is size. The call is a simple posix_fallocate(fd, 0, total_size) where the fd is the file pointer and the total_size is the 77GB value from the file being copied. It also takes 20 minutes for the file to be created using this call. When the same file is copied under native Windows I’m not getting the same CPU spike or the length of time to create the file even though Windows is “pre-allocating” the file. I state this not as criticism, just for reference. cygwin version is CVS from roughly 10 days ago. I compiled the cygwin components following the FAQ instructions…no special settings. Rob -- 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 |