aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorBaolin Wang <[email protected]>2022-08-17 16:14:08 +0800
committerAndrew Morton <[email protected]>2022-09-26 19:46:07 -0700
commit7047b5a40bce74883a10549bd609643b8bc4a3fb (patch)
treeafaa61add7d0c9d531420713a97ae8b5ce2b5a35 /tools/perf/scripts/python/net_dropmonitor.py
parent077309bc1eb8f41dd414902634c212606008bd54 (diff)
mm: migrate: do not retry 10 times for the subpages of fail-to-migrate THP
If THP is failed to migrate due to -ENOSYS or -ENOMEM case, the THP will be split, and the subpages of fail-to-migrate THP will be tried to migrate again, so we should not account the retry counter in the second loop, since we already accounted 'nr_thp_failed' in the first loop. Moreover we also do not need retry 10 times for -EAGAIN case for the subpages of fail-to-migrate THP in the second loop, since we already regarded the THP as migration failure, and save some migration time (for the worst case, will try 512 * 10 times) according to previous discussion [1]. [1] https://lore.kernel.org/linux-mm/[email protected]/ Link: https://lkml.kernel.org/r/[email protected] Tested-by: "Huang, Ying" <[email protected]> Signed-off-by: Baolin Wang <[email protected]> Signed-off-by: "Huang, Ying" <[email protected]> Cc: Oscar Salvador <[email protected]> Cc: Zi Yan <[email protected]> Cc: Yang Shi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions