Repository navigation
Commit 4daae3b
Mel Gorman
mm: mempolicy: Use _PAGE_NUMA to migrate pages
Note: Based on "mm/mpol: Use special PROT_NONE to migrate pages" but
sufficiently different that the signed-off-bys were dropped
Combine our previous _PAGE_NUMA, mpol_misplaced and migrate_misplaced_page()
pieces into an effective migrate on fault scheme.
Note that (on x86) we rely on PROT_NONE pages being !present and avoid
the TLB flush from try_to_unmap(TTU_MIGRATION). This greatly improves the
page-migration performance.
Based-on-work-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mel Gorman <mgorman@suse.de>1 parent 149c33e commit 4daae3b
3 files changed
Lines changed: 60 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
| 203 | + | |
| 204 | + | |
205 | 205 | | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
1019 | 1020 | | |
1020 | 1021 | | |
1021 | 1022 | | |
1022 | | - | |
1023 | | - | |
| 1023 | + | |
| 1024 | + | |
1024 | 1025 | | |
1025 | | - | |
| 1026 | + | |
1026 | 1027 | | |
| 1028 | + | |
1027 | 1029 | | |
1028 | 1030 | | |
1029 | 1031 | | |
1030 | 1032 | | |
1031 | 1033 | | |
1032 | 1034 | | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1033 | 1056 | | |
1034 | 1057 | | |
1035 | 1058 | | |
1036 | 1059 | | |
1037 | 1060 | | |
1038 | 1061 | | |
1039 | 1062 | | |
| 1063 | + | |
| 1064 | + | |
1040 | 1065 | | |
1041 | 1066 | | |
1042 | 1067 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
3451 | 3452 | | |
3452 | 3453 | | |
3453 | 3454 | | |
3454 | | - | |
| 3455 | + | |
3455 | 3456 | | |
| 3457 | + | |
3456 | 3458 | | |
3457 | 3459 | | |
3458 | 3460 | | |
| |||
3465 | 3467 | | |
3466 | 3468 | | |
3467 | 3469 | | |
3468 | | - | |
3469 | | - | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
3470 | 3475 | | |
3471 | 3476 | | |
3472 | 3477 | | |
| |||
3477 | 3482 | | |
3478 | 3483 | | |
3479 | 3484 | | |
3480 | | - | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
3481 | 3488 | | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
3482 | 3504 | | |
3483 | 3505 | | |
3484 | 3506 | | |
| |||
3655 | 3677 | | |
3656 | 3678 | | |
3657 | 3679 | | |
3658 | | - | |
| 3680 | + | |
3659 | 3681 | | |
3660 | 3682 | | |
3661 | 3683 | | |
| |||
0 commit comments