feat: increase memory pool size for media on systems with > 8GiB RAM

(cherry picked from commit 3ba6dae628fef681e41e195315aee54dd5da7b87)
This commit is contained in:
Alex Kontos
2023-08-21 19:59:37 +01:00
parent e595620a1a
commit 45be3e630f

View File

@@ -118,9 +118,10 @@ uint32_t CacheObserver::MemoryCacheCapacity() {
if (x > 0) {
// 0.1 is added here for rounding
capacity = (int32_t)(x * x / 3.0 + x + 2.0 / 3 + 0.1);
if (capacity > 32) {
capacity = 32;
}
// Allow cache to be higher for systems with > 8GiB of RAM
// if (capacity > 32) {
// capacity = 32;
// }
capacity <<= 10;
}
return capacity;