Optimizing the Win2000 NTFS system

Source: Internet
Author: User
Tags format command line copy file size file system access disk defragmenter
Optimization

When you install Windows 2000, does the user need to make a choice between the FAT32 file system or the NTFS file system? This is actually a very simple question, there is only one reason not to choose the NTFS file system, which is that you also need to use an operating system that cannot read n TFS partitions, such as Win9x, MS-DOS, and so on.

I. NTFS introduction NTFS is the abbreviation for the new technology file system. Microsoft launched the NTFS file system to make up for some deficiencies in the FAT file system, the biggest improvement being fault tolerance and security performance.

Fault tolerant NTFS automatically fixes disk errors without displaying error messages. When Windows 2000 writes a file to an NTFS partition, it retains a copy of the file internally, and then checks to see if the file written to the disk is consistent with the memory. If the two are inconsistent, the Wi ndows the corresponding sector as a bad sector and no longer uses it (cluster remapping), and then writes the file back to disk with a copy of the file that is kept in memory. If an error occurs while reading the file, NTFS returns a read error message and tells the corresponding application data has been lost.

Security NTFS has a number of security performance options that you can use to protect files, directories, and remote methods on your computer. NTFS also supports Encrypting File System (EFS), which prevents unauthorized users from accessing files.

Another benefit of file compression with the NTFS file system is the ability to support file compression, which allows users to choose to compress individual files or entire folders.

The disk quota Disk quota feature allows system administrators to manage the disk space assigned to individual users, who can only access their own files, and the disk quota feature in Windows 2000 is based on users and volumes.

Second, optimize the performance of NTFS users can determine many factors that affect the performance of NTFS volumes, the more important is the type of NTFS volume (SCSI or IDE), speed (disk rpm), volume contains the number of disks, and so on. In addition to the above factors, the following factors can also affect the performance of n TFS volumes:

• The size of the cluster and space allocation units.

• Whether the volume was created directly or converted by a FAT volume.

• Whether the volume uses the NTFS compression feature.

• Fragments and locations in files that are frequently accessed. Examples include the Master file Table (MFT), directories, files that contain data that is frequently used by NTFS, buffered files, and frequently used user files.

The size of the cluster selects the size of the cluster based on the average size and type of files to be stored by the NTFS volume. Ideally, the size of the cluster would be divisible by the size of the file (the nearest value), and the ideal cluster size would minimize I/O time and maximize disk space. It should be noted that any use of clusters larger than 4KB under any circumstances would have the following negative effects:

• The Disk Defragmenter tool cannot defragment this volume

• Unable to use NTFS file compression features

• Wasted disk space increase

There are several ways to determine the average size of a file, one way is from the Start button, select Run, type cmd in the Open box, click OK, and then execute C hkdsk on the command line, using the number of files on the volume to remove the disk space that is already in use. Another approach is to use Performance Monitor. The method is to start-> set the-> Control Panel-> Management Tool-> Performance, and then track the average disk byte/transmission of the Logical disk objects, using this method to get more accurate file sizes and data types stored on the volume.

NTFS-converted volumes that are converted from FAT to NTFS will lose some of the performance benefits of NTFS. The MFT may be fragmented and you cannot set NTFS file access permissions on the root volume.

To check for fragmentation on the MFT, you can start the-> program-> attachment-> System Tools-> disk defragmentation, analyze a drive, and then click "View Report" and scroll to M ft fragments with the mouse.

After converting a FAT volume to NTFS, the cluster size is 512 bytes, increases the likelihood of fragmentation, and takes more time to defragment. For these reasons, it is best to format the hard disk as an n TFS file system when the initial format is made.

NTFS file compression features NTFS compression enables you to compress an entire directory tree on a single file, an entire folder, or an NTFS volume. Using the compression feature will cause the performance of the NTFS volume to drop because each time you access the compressed file, it needs to be decompressed. If you want to copy a compressed file, the process is: decompression, copy, copy of the file to compress, greatly increased the processing time of C PU. It is necessary to note that the NTFS compression feature is more efficient on the Windows 2000 Professional Edition than on the Windows 2000 Server Edition.

You can compress files, folders, and NTFS volumes in the browser window's Properties dialog box.

Defragmentation when fragmentation occurs on a disk, it requires more movement of the head when accessing a file, which has a significant adverse effect on performance. Keeping the fragmentation on the disk at a lower level is the most important factor in improving the performance of n TFS volumes. You can run the defragmentation tool frequently to complete this work.

The Disk Defragmenter tool for Windows 2000 allows you to quickly analyze a volume and ask you for suggestions on whether you want to organize the volume.

Disable non-required NTFS features • Prohibit the creation of short file names. NTFS also supports file names in the 8.3 format in order to maintain compatibility with MS-DOS and Windows 3.x. If you do not want to support these systems, go to the HKEY_LOCAL_MACHINE System CurrentControlSet control filesystem in the registry, Change the value of the NtfsDisable8dot3NameCreation from 0 to 1.

• Prohibit recent access to updates. When switching back and forth between directories, NTFS updates the date/time label of the most recently accessed directory, and it lowers the performance of n TFS volumes on NTFS volumes with a larger capacity. You can disable the Automatic Update feature by changing the Ntfsdisablelastaccessupdate value from 0 to 1 in the HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet control filesystem. If you don't have this entry, add it to the registry.

Reserve the appropriate space for the Master File Table (MFT). The MFT plays an important role in NTFS volumes, has a significant impact on its performance, and frequently accesses M-FT in system space allocation, reading and writing to disk, so the MFT has a critical impact on the performance of NTFS volumes. The developer of the NTFS file system reserves a specific area near the MFT to reduce fragmentation in the MFT, which, by default, accounts for 1 2.5% of the entire volume size, although the area is the least fragmented in the MFT, but it is not always appropriate. To manage the MFT space, you can add a type of Reg_ to the HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet control filesystem DWORD Ntfsmftzonereservation, its default value is 1, its range is 1-4 (1 indicates that the MFT accounts for the entire volume 12.5%,2 2 5%,3 indicates 37.5%,4 50%).

You must change the registry before you create an NTFS volume. Modifications to the registry affect only the NTFS volumes that are subsequently established and have no effect on the existing volumes, which maintain the original MF T setting. Allocating more space for the MFT does not affect the normal storage space, because NTFS uses the MFT zone once the normal file storage space is full, which is sometimes the cause of the MFT zone being more fragmented. So we have to pay attention to the storage space that the user's files have occupied and keep some free space on the volume so that m-ft can have enough space to keep.

With respect to Ntfsmftzonereservation settings, the default 12.5% setting is sufficient for most users. For my use, for example, the MFT has a size of 74,3 31KB, which has about 73,000 files on average with a file size of 111KB. Because the size of the volume is 9GB, the MFT has a reserved space of 1152MB, which is already sufficient.





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.