[WRTjs][VD] Add 'noatime' option for mount to improve performance 38/323238/2
authorliwei90727 <wei90727.li@samsung.com>
Thu, 24 Apr 2025 10:07:31 +0000 (18:07 +0800)
committerwei li <wei90727.li@samsung.com>
Fri, 25 Apr 2025 11:46:21 +0000 (11:46 +0000)
In Linux systems, noatime is a mount option that is used to reduce
the update of access time when mounting a file system. This means
that the file system does not record the last access time (atime)
of the file. This is particularly useful for improving performance
and reducing disk write operations, especially in read-only file
systems or environments with high performance requirements.

So it can improve performance

Change-Id: Ib209668da22986a511c6e5f68eb5e61a5bc6bfec
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
wrt/src/browser/tv/mounter.cc

index cd61935cf949e72280d2fe2863714aa452049b0e..ee9b5ee0829336e7efbc4b127b877398cfeddc64 100644 (file)
@@ -152,7 +152,7 @@ bool PrivilegedService::Mount(const std::string& tmg_path,
   LOG(INFO) << "tmg file path: [" << tmg_path << "], mount path: ["
             << mount_path << "]";
   const auto mount_command =
-      "-o loop,nosuid,nodev,noexec " + tmg_path + " " + mount_path;
+      "-o loop,nosuid,nodev,noexec,noatime " + tmg_path + " " + mount_path;
 
   auto result = 0;
   auto retValue =