[VD] Limit Mojo ring buffer size to decrease OOM rate 64/321164/2
authorwangjing <jing124.wang@samsung.com>
Thu, 28 Nov 2024 08:55:49 +0000 (16:55 +0800)
committerBot Blink <blinkbot@samsung.com>
Fri, 29 Nov 2024 11:14:03 +0000 (11:14 +0000)
Use larger Mojo ring size(2MB) will increase OOM rate
because it will run out of tempfs space quickly.

refer:
https://issuetracker.google.com/issues/256746243

Change-Id: I41542f3102a26c35653cf37e1f558a5ecb8ff03c
Signed-off-by: wangjing <jing124.wang@samsung.com>
services/network/public/cpp/features.cc

index 1ac0a8a63948466437ee12ac3b91f34e6db52820..770e8742b1da1ee3eec06dcbe237150c40772509 100644 (file)
@@ -271,7 +271,7 @@ uint32_t GetDataPipeDefaultAllocationSize(DataPipeAllocationSize option) {
       << "Smallest data pipe size must be at least as large as a "
          "MIME-type sniffing buffer.";
 
-#if BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_TIZEN_TV)
   // TODO(crbug.com/1306998): ChromeOS experiences a much higher OOM crash
   // rate if the larger data pipe size is used.
   return GetDefaultDataPipeAllocationSize();