diff options
| author | Andrea Arcangeli <[email protected]> | 2011-01-13 15:46:45 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-01-13 17:32:41 -0800 |
| commit | e7a00c45f29c0155007aa150bf231a70fa470365 (patch) | |
| tree | 3225a79905dede614ed44e98776cdc6285bbd28a /tools/perf/scripts/python/syscall-counts.py | |
| parent | 4e6af67e970a2ac287739a4c526c857b5bda27ec (diff) | |
thp: add pmd_huge_pte to mm_struct
This increase the size of the mm struct a bit but it is needed to
preallocate one pte for each hugepage so that split_huge_page will not
require a fail path. Guarantee of success is a fundamental property of
split_huge_page to avoid decrasing swapping reliability and to avoid
adding -ENOMEM fail paths that would otherwise force the hugepage-unaware
VM code to learn rolling back in the middle of its pte mangling operations
(if something we need it to learn handling pmd_trans_huge natively rather
being capable of rollback). When split_huge_page runs a pte is needed to
succeed the split, to map the newly splitted regular pages with a regular
pte. This way all existing VM code remains backwards compatible by just
adding a split_huge_page* one liner. The memory waste of those
preallocated ptes is negligible and so it is worth it.
Signed-off-by: Andrea Arcangeli <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions