Unverified Commit 4eb5a1ca authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3582 Add support for memory limit

Merge Pull Request from: @ci-robot 
 
PR sync from: Ze Zuo <zuoze1@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/CHIOHEN5YWFQTIHD2XK7QHCBGELXI26P/ 
To implement this feature, a new function called "shrink_memory" has been
added, which can recycle a specific amount of memory. This feature mainly
supports the following two functions:

1) add periodical memory reclaim
2) add pagecache limit

Above functionalities depend on CONFIG_PAGE_CACHE_LIMIT, and the interface
and functionality tests have been successfully completed.

ChangeLog:
- Some minor changes about description and code, no functional changes
- rename page_cache_shrink_memory to shrink_memory
- move the declaration of the 'shrink_memory' function to 'internal.h',
  no functional changes
- add description information for function "shrink_memory"
- update documentation for using feature alerts

Ze Zuo (2):
  mm: support periodical memory reclaim
  mm: support pagecache limit


-- 
2.25.1
 
https://gitee.com/openeuler/kernel/issues/I8NIKC 
 
Link:https://gitee.com/openeuler/kernel/pulls/3582

 

Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents 7e3bcc81 7d1031b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment