Microsoft Knowledge Base Email Alertz

KBAlertz.com: If you turn on the NTFS file system compression functionality or if you compress the files that you own on an NTFS volume on which you have turned on the Disk Quotas functionality, the disk quota that you are charged increases. In this s

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 320686 - Last Review: February 28, 2007 - Revision: 3.2

Disk Quota Charges Increase If You Turn On the NTFS Compression Functionality

This article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you.
Visit the Windows Vista Solution Center
This article was previously published under Q320686

SYMPTOMS

If you turn on the NTFS file system compression functionality or if you compress the files that you own on an NTFS volume on which you have turned on the Disk Quotas functionality, the disk quota that you are charged increases. In this situation, you may go over your disk quota limit even if you had plenty of free disk space available before you compressed the files.

CAUSE

The following sizes are associated with a file:
  • Allocated Space: This size is the space that is reserved for a file at an even cluster boundary. NTFS allocates space for a file in increments of clusters based on the cluster size of the volume at the time that it was formatted.
  • File Size: This size is equal to or smaller than the Allocated Space value, and it represents the actual file data "number of bytes" from the beginning of the file to the end of the file.
  • Compressed Allocation: If a file is compressed, it typically consumes less disk space than indicated by the Allocated Space value. The Compressed Allocation value tracks the actual clusters that are in use by the compressed file.
If you right-click a file and click properties, two of the three sizes appear:
  • Size: This value represents the file size and is the actual size of file's data.
  • Size on Disk: This value represents the Allocated Space value. However, if you turn on the compression functionality, this value represents the Compressed Allocation value.
Disk quotas are always calculated by the Allocated Space value of a file because this value is the maximum space that is required if a file is not compressed. NTFS uses compression units to compress files. A compression unit always made up of 16 clusters. If you compress a file that is smaller than 16 clusters or if the file does not fit exactly into a compression unit, NTFS increases the Allocation Space value for a file so that the file fits into the compression units.

For example, if you format the NTFS volume by using 4096 (4-kilobyte [KB]) clusters, if the File Size value for a file that is saved on the volume is 158,208 bytes and the Allocated Space value for this file is 159,744 bytes, this file use 39 clusters. If you compress this file, NTFS must compress it by using 3 16-cluster compression units. To do so, NTFS allocates nine more clusters for a total of 48 clusters. The new Allocated Space value for the file is now 196,608 bytes. However, after you compress the file, the file's Compressed Allocation value is only 110,592 bytes, which is a reduction of 12 clusters worth of actual disk space. You are charged with the larger Allocated Space value (196,608 bytes) in your disk quota. If you compress many files, this additional allocation can add up quickly and cause you to go over your disk quota limit.

NOTE: A single compression unit on an NTFS volume that uses 4-KB clusters is 65,536 bytes (4096 x 16). This value is the minimum Allocated Space value that is charged for a compressed file.

RESOLUTION

To resolve this issue, decompress the files so that the sizes of the file are changed to the file's original smaller Allocated Space value. Because disk quotas always charge you based on the file's Allocated Space value, you cannot stay under your quota limit if you compress a file.

Alternatively, if you want to compress files to save real disk space, increase you disk quota setting to compensate for the extra disk quota that is charged as a result of NTFS compression.

STATUS

This behavior is by design.

MORE INFORMATION

For additional information about disk quotas, click the article number below to view the article in the Microsoft Knowledge Base:
300979  (http://kbalertz.com/Feedback.aspx?kbNumber=300979/EN-US/ ) HOW TO: Manage Disk Capacity and Usage By Using Windows 2000

APPLIES TO
  • Microsoft Windows 2000 Service Pack 1
  • Microsoft Windows 2000 Service Pack 2
  • Microsoft Windows 2000 Advanced Server
Keywords: 
kbenv kbprb KB320686
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please