Disable access time
Most current operating systems use file systems with advanced functions:
rights management, logging ...
Among other things, NTFS (Windows) and ext3 (Linux) are capable of recording the date of last access to a file.
If it's very useful to control when a file is accessed, it means that for every reading file there a. .. writing disk!
Unless you absolutely need this functionality (secure servers,...), you can disable it.
Some experts believe that Linux kernel can earn up to 10% in disk performance.
1.For Windows 2000/XP/2003/Vista (NTFS only)
Command line
Go to Start> All Programs> Accessories
Right-click the Command Prompt> Run as administrator
Type the following command
fsutil behavior set disablelastaccess 1
and press the ENTER key
If no error message appears, then the command has been executed.
By the registry
Save the base register if necessary
Open the Registry Editor
Go to: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ FileSystem
Create the variable (right-click, New, DWORD value):
NtfsDisableLastAccessUpdate with value 1
The change should take effect immediately.
2.Linux
Type
$ sudo gedit /etc/fstab
and add the options relatime nodiratime to the partition in question.
Example:
# / Etc / fstab: static file system information.
#
#
proc / proc proc defaults 0 0
/ dev/sda1 / ext3 defaults, errors = remount-ro, relatime, nodiratime 0 1
/ dev/sda2 none swap sw 0 0
Then restart for the root.
Note 1: relatime does not disable the script when file access some software need to know the date of last access. There is the noatime option, which disables all the records in the file access. nodiratime disables scripts when accessing files. Watch the mount manual for more information.
Note 2: All the Linux kernel does not have the option relatime.
In this case, use noatime.
Libellés :
Tips
0 commentaires
Post a Comment
If you enjoyed this post, please consider leaving a comment or
Subscribe to ChamsBlog via RSS
Subscribe to chamsblog by Email