HighDots.NET Computer Hardware Forums  

Disk optimization for multithreaded app.

Storage systems Storage system issues, both hardware and software (comp.arch.storage)


Discuss Disk optimization for multithreaded app. in the Storage systems forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old   
Bill Todd
 
Posts: n/a

Default Re: Disk optimization for multithreaded app. - 02-12-2010 , 02:05 PM






On 2/11/2010 11:30 PM, robertwessel2 (AT) yahoo (DOT) com wrote:
Quote:
On Feb 11, 5:34 pm, Bill Todd<billt... (AT) metrocast (DOT) net> wrote:
Thanks - what you describe above I once knew as the supported way to
accomplish preallocation (which I don't think originally existed in NT)
but had forgotten (at least in any detail - that's why I alluded to it
only vaguely above). Now I feel lazy for not having taken the time to
rediscover it.


Well SetEndOfFile dates back to NT3.1, and the documentation (I
actually have a copy of the Win32 API hardcopy doc from that era) is
similar to the current versions. SetFileValidData is definitely newer
than that, though.

Interestingly, both the old and new versions describe the data in the
extended area as being undefined.
My distinct impression is that the ability to preallocate (using
documented functions) *without* zeroing out the preallocated area
appeared at some point during the past decade - but I obviously could be
mistaken about that. It might have been related to the appearance of
high-water marking if that wasn't present in the earliest versions
(though something similar existed in VMS back in the '80s, so the
technology was hardly new).

- bill

Reply With Quote
  #12  
Old   
Maxim S. Shatskih
 
Posts: n/a

Default Re: Disk optimization for multithreaded app. - 02-12-2010 , 03:38 PM






Quote:
mistaken about that. It might have been related to the appearance of
high-water marking if that wasn't present in the earliest versions
NTFS was always supporting ValidDataLength _on disk_.

All Windows's FSDs support this _in memory (as an FCB field)_, but on-disk support is NTFS-only.

Sorry to forget this seek+SetEndOfFile sequence. I was only thinking about ZwCreateFile with AllocationSize.

--
Maxim S. Shatskih
Windows DDK MVP
maxim (AT) storagecraft (DOT) com
http://www.storagecraft.com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.