Re[2]: Web Server & Documents

Subject: Re[2]: Web Server & Documents
From: "Walker, Arlen P" <Arlen -dot- P -dot- Walker -at- JCI -dot- COM>
Date: Tue, 8 Apr 1997 15:52:26 -0500

Arlen P Walker
04/08/97 03:52 PM




Not to impugn Sue's wonderful explanation, but the techie in me screamed a
minor terminology correction:

When you store a file on a hard disk, the File Allocation Table
or other disk indexing scheme tracks the contents of individual
sectors. Even if store a single byte of information, that byte
will consume an entire hard disk sector. Disk indexing schemes
do not get any more granular than that -- it would take them
too long to retrieve information if they did.

The typical PC hard disk is formatted into sectors of 1K each.
(You can tell because that's the smallest file you'll find.)
You store the help file, it flows into contiguous sectors and
consumes about 32K of disk space. Even if you put it on a network
drive that's been "optimized for large files" -- that is, formatted
with sectors of 2K or even 5K each -- say 5K -- then the help
file takes up 35K of disk space. The difference is insignificant.

But, since *each file* consumes a single sector of the hard disk, no
matter what its size, those 300 individual HTML documents
consume 300K of disk space -- one document in each sector. If
your hard disk is formatted with 5K sectors, all of a sudden
that HTML doc set consumes 1500K disk space -- and it's the
exact same content as the 32K help file.

The dependency isn't "sector size;" the dependency is "minimum allocation
unit." On some systems this is the sector. Those systems allow for variable
sector sizes. Other systems maintain a fixed sector size, but allocate in
"clusters" ("extents" is another term used) consisting of a variable number
of sectors.

In DOS, a typical sector size is 512 bytes, while the cluster (minimum
allocation unit) is 2 sectors. In early days, when DOS was limited to a
32MB disc size, some drive vendors got around this by changing the sector
size.

Other operating systems have kept the same sector size but varied the
number of sectors in an allocation unit. For example, the Macintosh OS has
a constant sector size of 512 bytes, but the allocation block size varies
with the size of disc. The largest I've seen is 53 sectors. Which means a
single-character file, stored on that disc, would use 26.5K all by itself.


Have fun,
Arlen
Chief Managing Director In Charge, Department of Redundancy Department
DNRC 224

Arlen -dot- P -dot- Walker -at- JCI -dot- Com
----------------------------------------------
In God we trust; all others must provide data.
----------------------------------------------
Opinions expressed are mine and mine alone.
If JCI had an opinion on this, they'd hire someone else to deliver it.

TECHWR-L (Technical Communication) List Information: To send a message
to 2500+ readers, e-mail to TECHWR-L -at- LISTSERV -dot- OKSTATE -dot- EDU -dot- Send commands
to LISTSERV -at- LISTSERV -dot- OKSTATE -dot- EDU (e.g. HELP or SIGNOFF TECHWR-L).
Search the archives at http://www.documentation.com/ or search and
browse the archives at http://listserv.okstate.edu/archives/techwr-l.html


Previous by Author: Re[2]: Wasting time??
Next by Author: Re[2]: Web Server & Documents
Previous by Thread: Re: Web Server & Documents
Next by Thread: Re: Web Server & Documents


What this post helpful? Share it with friends and colleagues:


Sponsored Ads