Unverified Commit 2a888818 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!637 Introduce new memory policy for OLK-5.10

Merge Pull Request from: @ma-wupeng 
 
Introduce new syscall set_mempolicy_home_node and mempolicy
MPOL_PREFERRED_MANY.

This patch series introduces the concept of the MPOL_PREFERRED_MANY mempolicy.
This mempolicy mode can be used with either the set_mempolicy(2) or mbind(2)
interfaces. Like the MPOL_PREFERRED interface, it allows an application to set a
preference for nodes which will fulfil memory allocation requests. Unlike the
MPOL_PREFERRED mode, it takes a set of nodes. Like the MPOL_BIND interface, it
works over a set of nodes. Unlike MPOL_BIND, it will not cause a SIGSEGV or
invoke the OOM killer if those preferred nodes are not available.

mm: add new syscall set_mempolicy_home_node 
 
Link:https://gitee.com/openeuler/kernel/pulls/637

 

Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 1a32e08f 160c26bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment