+173
−0
+29
−0
+173
−0
Loading
euleros inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I96X3J?from=project-issue CVE: NA ------------------------------------------------- etmem, the memory vertical expansion technology, In the current etmem process, memory folio swapping is implemented by invoking shrink_folio_list. When this interface is invoked for the first time, folios are added to the swap cache and written to disks.The swap cache folio is reclaimed only when this interface is invoked for the second time and no process accesses the folio.However, in the etmem process, the user mode scans folios that have been accessed, and the migration is not delivered to folios that are not accessed by processes. Therefore, the swap cache may always be occupied. To solve the preceding problem, add the logic for actively reclaiming the swap cache.When the swap cache occupies a large amount of memory, the system proactively scans the LRU linked list and reclaims the swap cache to save memory within the specified range. Reference:https://gitee.com/openeuler/kernel/commit/44983705e56ab22fda801d66e2a6bd0d1be7ca0b Signed-off-by:liubo <liubo254@huawei.com> Signed-off-by:
Yuchen Tang <tangyuchen5@huawei.com> Signed-off-by:
tangyuchen <tangyuchen5@huawei.com>