Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

constant similar "VM_RESERVED" and nopage method in 3.9.6

Cannot find VM_RESERVED constant and nopage method(in vm_operations_struct) in 3.9.6. What is their replacement in 3.9.6 ?

like image 943
EnterKEY Avatar asked Jun 26 '13 04:06

EnterKEY


1 Answers

In the patch removing VM_RESERVED, the author had this advice:

A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA, currently it lost original meaning but still has some effects:

 | effect                 | alternative flags
-+------------------------+---------------------------------------------
1| account as reserved_vm | VM_IO
2| skip in core dump      | VM_IO, VM_DONTDUMP
3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
4| do not mlock           | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP

Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.

vm_ops->nopage was replaced with vm_ops->fault in this patch.

like image 171
caf Avatar answered Sep 28 '22 16:09

caf