diff options
| author | Yang Yang <[email protected]> | 2022-06-23 02:08:34 +0000 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-07-03 18:08:50 -0700 |
| commit | ade63b419c4e8d27f0642804b6c8c7a76ffc18ac (patch) | |
| tree | eb6d24fdc04c955c626a1b4f6cc0c8cc33390eb7 /include/linux | |
| parent | dc89997264de565999a1cb55db3f295d3a8e457b (diff) | |
mm/page_alloc: make the annotations of available memory more accurate
Not all systems use swap, so estimating available memory would help to
prevent swapping or OOM of system that not use swap.
And we need to reserve some page cache to prevent swapping or thrashing.
If somebody is accessing the pages in pagecache, and if too much would be
freed, most accesses might mean reading data from disk, i.e. thrashing.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yang Yang <[email protected]>
Signed-off-by: CGEL ZTE <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions