开机去掉atime参数
来源:互联网 发布:jsp调用js函数吗 编辑:程序博客网 时间:2024/05/07 23:59
Linux has a special mount option for file systems callednoatime that can be added to each line that addresses one file system in the/etc/fstab file. If a file system has been mounted with this option, reading accesses to the file system will no longer result in an update to the atime information associated with the file like we have explained above. The importance of the noatime setting is that it eliminates the need by the system to make writes to the file system for files which are simply being read. Since writes can be somewhat expensive, this can result in measurable performance gains. Note that the write time information to a file will continue to be updated anytime the file is written to.
Linux对于文件系统有一个特殊的挂载选项noatime,可以添加到一个文件系统的/etc/fstab文件中的每一行中。如果文件系统已经有了这个选项,阅读的文件系统的访问将不再更新文件的atime相关信息。使用noatime设置的重要性是它消除了简单地被读出的文件的atime的更新。因为系统运行的时候要访问大量文件,如果能减少一些动作(如减少时间戳的记录次数等)将会显著提高磁盘 IO 的效率、提升文件系统的性能。
# vim /etc/fstab
UUID=b9991053-7d51-4f84-8760-b570fd499517 / ext4 defaults,noatime 1 1
保存即可,下次开机启动时就不会再启用atime了
atime Do not use noatime feature, then the inode access time is controlled by kernel defaults.
See also the description for strictatime and reatime mount options.
noatime
Do not update inode access times on this filesystem (e.g, for faster access on the news
spool to speed up news servers).
注:RHEL6版本默认已经不再启用atime了
- 开机去掉atime参数
- Linux时间参数atime、ctime、mtime
- linux文件时间参数atime,ctime,mtime
- 去掉Ubuntu开机声音
- linux 命令下 find 参数 -atime 和 -ctime区别
- Linux文件的三个时间参数atime,mtime,ctime;
- Linux下的三个时间参数:atime 、mtime和ctime
- matlab 去掉参数空白
- 如何去掉、修改品牌机的开机画面
- 怎么去掉开机时请点击用户名
- 如何添加/去掉开机的启动项
- 去掉开机时用户登录界面
- 开机 自动登录 去掉 CTRL+ALT+DEL
- android5.1去掉开机锁屏
- 开机按F1怎么解决?怎样去掉开机按F1?
- 初识Linux-Linux下的三个时间参数(atime、mtime、ctime)
- 去掉输入参数的tcping
- 苹果开机启动参数说明
- 12. 加入敌人和战斗:如果使用cocos2d制作基于tiled地图的游戏:第三部分
- java 同步的两种方法
- asp.net 工作流设计
- 我拿流年,乱了浮生:伤感QQ空间日志
- 13. 在cocos2d里面如何拖拽精灵
- 开机去掉atime参数
- JDBC连接MySQL
- Fragments (Android官方文档中文版)
- 嵌入式编程C/C++的指针函数,与函数指针
- 怎样免费下载收费网站的资料
- c语言对数组的操作CRUD
- 14. 如何使用cocos2d来制作一个打地鼠的游戏:第一部分
- 中南大学2012年8月月赛 Problem G: Gifts with different style 线段树
- Dragon Balls(并查集)