the forums at degreez.net

It is currently Fri Apr 19, 2024 1:48 am

All times are UTC - 7 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
PostPosted: Mon Apr 19, 2004 7:35 pm 
I was just wondering how the different disk allocation types (normal, pre-allocate, background, sparse) do.

I understand that 'normal' mode allocates diskspace as the data arrives.

'Pre-allocate' mode allocates diskspace for the whole download at the start.

'Background' does the same thing as 'pre-allocate', except that it allocates the diskspace slowly depending on the allocation rate throughout the download. It reduces disk thrashing.

I don't know anything about 'sparse' mode. I'm completely lost as in to what it does. Could somebody explain how it works?

The other thing is, I assume that 'normal' mode causes more disk defragmentation than 'pre-allocate', or 'background'?

Thanks in advance


Top
  
 
 Post subject:
PostPosted: Mon Apr 19, 2004 9:19 pm 
Offline

Joined: Sun Mar 07, 2004 10:05 am
Posts: 1212
"Sparse" is for use on some filesystems, notably many that work under Unix, which can create a "virtual" file filled with zeros until those parts of the file are written into. This has the advantage of not needing disk space until it's actually required and not needing to move data as space is allocated. It has the disadvantage of creating extreme fragmentation in the files. This method does not work under Windows 2K/XP even though NTFS supports sparse allocation because it isn't supported by default and I have no way of turning it on.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 01, 2004 10:43 am 
I see, so better not use sparse file allocation mode right? got it thx ;)


Top
  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 6:47 am 
Offline

Joined: Mon Jun 07, 2004 11:55 am
Posts: 29
TheSHAD0W wrote:
"Sparse" is for use on some filesystems, notably many that work under Unix, which can create a "virtual" file filled with zeros until those parts of the file are written into. This has the advantage of not needing disk space until it's actually required and not needing to move data as space is allocated. It has the disadvantage of creating extreme fragmentation in the files. This method does not work under Windows 2K/XP even though NTFS supports sparse allocation because it isn't supported by default and I have no way of turning it on.


What do you mean by doesn't work on 2k/XP? I had Azureus a while back, and some version of it use Sparse. It worked fine. But it don't like it because of, as Shad0w said, the very high fragmentation rate.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 12:32 pm 
Offline

Joined: Sun Mar 07, 2004 10:05 am
Posts: 1212
They're based on Java, not Python, and they may have access to more Windows services than I do. Or they may just be labeling it "sparse" and leaving it at that. My client works under "sparse" mode with Windows, though it's not really sparse it can cause some problems with high CPU/disk access when the client is shut down or when transfer rates are high early in the torrent.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 27, 2004 5:53 pm 
You can set a file sparse under NTFS with the command line:
Code:
fsutil sparse setflag filename


Another command might work well for file allocation:
Code:
fsutil file createnew filename sizeinbytes


I was able to create a 170mb file instantly with this command. Using my defragger to check, this file was in 2 fragments, same as the file manually allocated and zeroed out by BitTornado.

Hopefully these can be used to improve BitTornado on Windows :D


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group