delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/03/14:37:49

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: "'Vladimir Dergachev'" <vdergachev AT rcgardis DOT com>
Cc: <cygwin AT cygwin DOT com>
Subject: RE: NTFS fragmentation
Date: Thu, 3 Aug 2006 19:37:30 +0100
Message-ID: <065901c6b72b$e07aaa90$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <200608031349.41547.vdergachev@rcgardis.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 03 August 2006 18:50, Vladimir Dergachev wrote:

> On Thursday 03 August 2006 5:18 am, Dave Korn wrote:
>> On 03 August 2006 00:46, Vladimir Dergachev wrote:
>> 
>> 
>>     Hi Vladimir,
>> 
>>>>> Please CC me - I am not on the list.
>> 
>>   Done :)
>> 
> 
>>   Actually, maybe the most informative thing would be to look at the device
>> IO controls sent by both testcases, using filemon or similar.
> 
> Thank you for the suggestion !
> 
> I used filemon and discovered that all three programs (ntfs_test.tcl,
> Firefox and IE) use sequential access, but IE writes the file first to
> Temporary Internet Files folder and then copies it.
> 
> If one runs analyze from defragmenter while IE is still downloading the file
> the file in the Temporary Internet Files folder is just as fragmented as
> other files.
> 
> I guess this means that sequential writes are officially broken on NTFS.
> 
> Anyone has any idea for a workaround ? It would be nice if a simple
> tar zcvf a.tgz * does not result in a completely fragmented file.


  I can only think of one thing worth trying off the top of my head: what
happens if you open a file (in non-sparse mode) and immediately seek to the
file size, then seek back to the start and actually write the contents?  Or
perhaps after seeking to the end you'd need to write (at least) a single byte,
then seek back to the beginning?



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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