Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
3
-
9223372036854775807
Description
The default osd-ldiskfs.*. readcache_max_filesize parameter is currently "~0ULL" so the OSS will try to cache even very large files that do not fit into the total RAM size. This is inefficient to try and cache these objects.
The default readcache_max_filesize should be tuned at startup to take the actual RAM size into account (e.g. (totalram_pages << PAGE_SHIFT) / 64) so that the OSS RAM can be better utilized to cache objects that actually fit into memory.