The present invention optimizes storage of stream file by dynamically
adjusting the size of new extents. In one embodiment, a file system
manager collects usage statistics for a plurality of files in a file
system. The file system manager uses the usage statistics to create
larger extents for frequently used files than for infrequently used
files.