forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit4aab2be
mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged
When memory is hotplug added or removed the min_free_kbytes should berecalculated based on what is expected by khugepaged. Currently afterhotplug, min_free_kbytes will be set to a lower default and higherdefault set when THP enabled is lost.This change restores min_free_kbytes as expected for THP consumers.[vijayb@linux.microsoft.com: v5] Link:https://lkml.kernel.org/r/1601398153-5517-1-git-send-email-vijayb@linux.microsoft.comFixes:f000565 ("thp: set recommended min free kbytes")Signed-off-by: Vijay Balakrishna <vijayb@linux.microsoft.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Reviewed-by: Pavel Tatashin <pasha.tatashin@soleen.com>Acked-by: Michal Hocko <mhocko@suse.com>Cc: Allen Pais <apais@microsoft.com>Cc: Andrea Arcangeli <aarcange@redhat.com>Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>Cc: Oleg Nesterov <oleg@redhat.com>Cc: Song Liu <songliubraving@fb.com>Cc: <stable@vger.kernel.org>Link:https://lkml.kernel.org/r/1600305709-2319-2-git-send-email-vijayb@linux.microsoft.comLink:https://lkml.kernel.org/r/1600204258-13683-1-git-send-email-vijayb@linux.microsoft.comSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent8b7b2eb commit4aab2be
3 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
2304 | 2307 | | |
2305 | 2308 | | |
2306 | 2309 | | |
2307 | | - | |
2308 | | - | |
2309 | 2310 | | |
2310 | 2311 | | |
2311 | 2312 | | |
| |||
2332 | 2333 | | |
2333 | 2334 | | |
2334 | 2335 | | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
7904 | 7905 | | |
7905 | 7906 | | |
7906 | 7907 | | |
| 7908 | + | |
| 7909 | + | |
7907 | 7910 | | |
7908 | 7911 | | |
7909 | 7912 | | |
| |||
0 commit comments
Comments
(0)