如何在Debian linux中禁用访问时间设置
作者:互联网
MongoDB的性能最佳实践意味着:
Most file systems will maintain metadata for the last time a file was
accessed. While this may be useful for some applications, in a
database it means that the file system will issue a write every time
the database accesses a page, which will negatively impact the
performance and throughput of the system.
对于mongoDB安装,我需要在我的Debian上禁用访问时间,该怎么做?
解决方法:
要禁用写入访问时间,您需要使用noatime选项挂载有问题的文件系统.
要使用noatime选项挂载已安装的文件系统,请执行以下操作:
mount /home -o remount,noatime
要使更改成为永久更改,请更新/ etc / fstab并将noatime添加到选项字段.
例如.
之前:
/dev/mapper/sys-home /home xfs nodev,nosuid 0 2
后:
/dev/mapper/sys-home /home xfs nodev,nosuid,noatime 0 2
标签:performance,linux,mount,timestamps 来源: https://codeday.me/bug/20190814/1651820.html