Function report |
Source Code:mm\util.c |
Create Date:2022-07-28 14:22:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Committed memory limit enforced when OVERCOMMIT_NEVER policy is used
Proto:unsigned long vm_commit_limit(void)
Type:unsigned long
Parameter:Nothing
751 | If sysctl_overcommit_kbytes Then allowed = sysctl_overcommit_kbytes >> PAGE_SHIFT determines the page size - 10 |
753 | Else allowed = (totalram_pages() - hugetlb_total_pages()) * sysctl_overcommit_ratio / 100 |
756 | allowed += total_swap_pages |
758 | Return allowed |
Name | Describe |
---|---|
__vm_enough_memory | Check that a process has enough memory to allocate a new virtual* mapping. 0 means there is enough memory for the allocation to* succeed and -ENOMEM implies there is not.* We currently support three overcommit policies, which are set via the* vm |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |