[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected. No action required from the submitter.
The upstream commit SHA1 provided is correct: ab00ddd802f80e31fc9639c652d736fe3913feae
Status in newer kernel trees: 6.14.y | Present (different SHA1: cc09dec6cce3) 6.12.y | Present (different SHA1: 72669f82feb1) 6.6.y | Not found
Note: The patch differs from the upstream commit: --- 1: ab00ddd802f80 ! 1: a22426c38dd6a selftests/mm: compaction_test: support platform with huge mount of memory @@ Metadata ## Commit message ## selftests/mm: compaction_test: support platform with huge mount of memory
+ commit ab00ddd802f80e31fc9639c652d736fe3913feae upstream. + When running mm selftest to verify mm patches, 'compaction_test' case failed on an x86 server with 1TB memory. And the root cause is that it has too much free memory than what the test supports. @@ Commit message Signed-off-by: Feng Tang feng.tang@linux.alibaba.com Acked-by: Dev Jain dev.jain@arm.com Reviewed-by: Baolin Wang baolin.wang@linux.alibaba.com - Tested-by: Baolin Wang baolin.wang@inux.alibaba.com + Tested-by: Baolin Wang baolin.wang@linux.alibaba.com Cc: Shuah Khan shuah@kernel.org Cc: Sri Jayaramappa sjayaram@akamai.com Cc: stable@vger.kernel.org Signed-off-by: Andrew Morton akpm@linux-foundation.org
- ## tools/testing/selftests/mm/compaction_test.c ## -@@ tools/testing/selftests/mm/compaction_test.c: int check_compaction(unsigned long mem_free, unsigned long hugepage_size, + ## tools/testing/selftests/vm/compaction_test.c ## +@@ tools/testing/selftests/vm/compaction_test.c: int check_compaction(unsigned long mem_free, unsigned long hugepage_size) int compaction_index = 0; + char initial_nr_hugepages[20] = {0}; char nr_hugepages[20] = {0}; - char init_nr_hugepages[24] = {0}; + char target_nr_hugepages[24] = {0}; + int slen;
- snprintf(init_nr_hugepages, sizeof(init_nr_hugepages), - "%lu", initial_nr_hugepages); -@@ tools/testing/selftests/mm/compaction_test.c: int check_compaction(unsigned long mem_free, unsigned long hugepage_size, - goto out; - } + /* We want to test with 80% of available memory. Else, OOM killer comes + in to play */ +@@ tools/testing/selftests/vm/compaction_test.c: int check_compaction(unsigned long mem_free, unsigned long hugepage_size) + + lseek(fd, 0, SEEK_SET);
- /* Request a large number of huge pages. The Kernel will allocate - as much as it can */ ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.1.y | Success | Success |