forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kswapd: no need reclaim cma pages triggered by unmovable allocation
For purpose of better migration cma pages are allocated after failure movalbe allocations and are used normally for file pages or anonymous pages. In reclaim path many cma pages if configurated are reclaimed from lru lists in kswapd mainly or direct reclaim triggered by unmovable or reclaimable allocations. But these reclaimed cma pages can not be used by original unmovable or reclaimable allocations. So the reclaim are unnecessary. So the unmovable or reclaimable allocations should not trigger reclaiming cma pages. The patch adds third factor of migratetype which is just like factors of zone index or order kswapd need consider. The modification follows codes of zone index consideration. And it is straightforward that skips reclaiming cma pages in reclaim procedure which is triggered only by unmovable or reclaimable allocations. This optimization can avoid ~3% unnecessary isolations from cma (cma isolated / total isolated) with configuration of total 100Mb cma pages. Signed-off-by: zhou xianrong <xianrong.zhou@transsion.com> Signed-off-by: feng ruxian <ruxian.feng@transsion.com>
- Loading branch information
1 parent
8bcfdd7
commit f40216b
Showing
4 changed files
with
73 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters