On 2015/08/03 21:04, Vladimir Davydov wrote: > Hi, > > Currently, workingset detection logic is not memcg aware - inactive_age > is maintained per zone. As a result, if memory cgroups are used, > refaulted file pages are activated randomly. This patch set makes > inactive_age per lruvec so that workingset detection will work correctly > for memory cgroup reclaim. > > Thanks, > Reading discussion, I feel storing more data is difficult, too. I wonder, rather than collecting more data, rough calculation can help the situation. for example, (refault_disatance calculated in zone) * memcg_reclaim_ratio < memcg's active list If one of per-zone calc or per-memcg calc returns true, refault should be true. memcg_reclaim_ratio is the percentage of scan in a memcg against in a zone. Thanks, -Kame -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>