Welcome to WinForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Extreme fragmentation when writing large bkf files to comp..

 
   Win 2000/NT/98/ME (Home) -> File System RSS
Next:  Be careful clicking on John Reindeer's Post  
Author Message
Frank B Denman

External


Since: Sep 05, 2004
Posts: 3



(Msg. 1) Posted: Sat Sep 30, 2006 12:34 am
Post subject: Extreme fragmentation when writing large bkf files to compressed drive
Archived from groups: microsoft>public>win2000>file_system (more info?)

Hi Folks,

I'm experimenting with using NTFS compression when backing up across the network
to a USB2.0 drive on a workstation. Backup software is the native ntbackup, the
uncompressed bkf files are around 38GB, the USB drive is 250GB. Ntbackup is
running on a Win2k SP4 server, and the USB drive is on a WinXPP SP2 machine.

Just to verify that compression was working, I copied an existing 16.8GB bkf
file to the empty compressed USB drive, where its size on disk was 14.1GB. Disk
Defragmenter sees the copied bkf file as having 2,587 fragments.

Next, I ran a backup across the network to the same compressed USB drive. The
result is a 37.9GB bkf file whose size on disk is 29.2GB. Disk Defragmenter
sees this file as having 151,238 fragments.

Merely deleting a file like this takes 10-20 minutes of maxed-out cpu.

So I'm wondering whether this is expected behavior with large files and NTFS
compression?

Thanks

Frank
Frank Denman
Denman Systems
news.DeleteThis@denmansystemsx.com
[Please delete the "x" from my email address]

 >> Stay informed about: Extreme fragmentation when writing large bkf files to comp.. 
Back to top
Login to vote
Prashant Nema [MSFT]

External


Since: Oct 24, 2006
Posts: 2



(Msg. 2) Posted: Thu Oct 26, 2006 7:50 pm
Post subject: Re: Extreme fragmentation when writing large bkf files to compressed drive [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> sees this file as having 151,238 fragments.

In the graphical representation does it still show one contiguous block
occupied by the file?

When NTFS compresses a file it divides the uncompressed data into units of
16 clusters. If its able to compress it by more than one cluster it
compresses it, otherwise it is left uncompressed. Due to this method of
division NTFS may record each 16 cluster units as individual "runs"*.
Defrag utilties frequently queries for number of runs in a given file to
determine the number of fragments in the file. In case of normal files if
NTFS finds a contiguous free space big enough for the file it will allocate
it in a single run. With the compressed files, however, even if it finds
contiguous space it will record these chunks as runs. These runs may be
right next to each other but defrag utilties may consider them to be
fragments. In my opinion future versions of defrag utility should consider
not reporting file as fragmented if runs themselves are contiguous.

The delete time you mention below looks extreme to me and I dont have a good
explaination as to why it may take that long. If I come across it I will
let you know.

Also note: Depending upon yor cluster size you may be approaching the
limitation on compressed file size. It is between 30GB to 69 GB.

*run: Extent. Read more on NTFS disk structure.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"



"Frank B Denman" <news.TakeThisOut@denmansystemsx.com> wrote in message
news:a16sh25j8chpu0252h4h41uvfrv878uvru@4ax.com...
> Hi Folks,
>
> I'm experimenting with using NTFS compression when backing up across the
> network
> to a USB2.0 drive on a workstation. Backup software is the native
> ntbackup, the
> uncompressed bkf files are around 38GB, the USB drive is 250GB. Ntbackup
> is
> running on a Win2k SP4 server, and the USB drive is on a WinXPP SP2
> machine.
>
> Just to verify that compression was working, I copied an existing 16.8GB
> bkf
> file to the empty compressed USB drive, where its size on disk was 14.1GB.
> Disk
> Defragmenter sees the copied bkf file as having 2,587 fragments.
>
> Next, I ran a backup across the network to the same compressed USB drive.
> The
> result is a 37.9GB bkf file whose size on disk is 29.2GB. Disk
> Defragmenter
> sees this file as having 151,238 fragments.
>
> Merely deleting a file like this takes 10-20 minutes of maxed-out cpu.
>
> So I'm wondering whether this is expected behavior with large files and
> NTFS
> compression?
>
> Thanks
>
> Frank
> Frank Denman
> Denman Systems
> news.TakeThisOut@denmansystemsx.com
> [Please delete the "x" from my email address]

 >> Stay informed about: Extreme fragmentation when writing large bkf files to comp.. 
Back to top
Login to vote
Display posts from previous:   
   Win 2000/NT/98/ME (Home) -> File System All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows XP
 Windows Vista!
  Win 2000/NT/98/ME


[ Contact us | Terms of Service/Privacy Policy ]