不尊重从钴内存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;