Does the Linux filesystem cache files efficiently?

前端 未结 5 2029
悲&欢浪女
悲&欢浪女 2020-12-25 13:08

I\'m creating a web application running on a Linux server. The application is constantly accessing a 250K file - it loads it in memory, reads it and sends back some info to

5条回答
  •  囚心锁ツ
    2020-12-25 13:20

    The file should be cached, but make sure the noatime option is set on the mount, otherwise the access time will attempt to be saved to the file, invalidating the cache.

提交回复
热议问题