不尊重從鈷內存docs,我們設置max_cobalt_cpu_usage
限制250M,max_cobalt_gpu_usage
到150M,並發現鈷實際使用的最大內存約爲370M播放4K時視頻大約12小時,它已經超過了250M了很多,那麼什麼樣的內存(例如malloc/new/mmap等)被計入max_cobalt_cpu_usage
?如何設置max_cobalt_cpu_usage
並將實際內存使用量保持在max_cobalt_cpu_usage
之內?內存限制設置可以由鈷
PS.The memory statistical approach is as follows:
1>Move focus to the cobalt icon, drop the memory cache, record the memory free value(memoryBegin) from /proc/meminfo;
2>Enter cobalt youtube, and keep playing 4K videos for about 12 hours;
3>During playing the videos, record the memory free value(memoryEnd) from /proc/meminfo every 10s(drop the memory cache before record the memory);
4>Find the minimum memoryEnd as memoryEndMin;
5>memoryBegin - memoryEndMin = 370M;