Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move_pages12: compacting memory before each test loop
These simple steps are added to prepare the system's memory state for the test, aiming to increase the test's reliability and consistency by starting from a clean and defragmented memory state. To reduce accidental failures on small (1.5G) RAM system: 7 tst_test.c:1558: TINFO: Timeout per run is 0h 21m 00s 8 move_pages12.c:273: TINFO: Free RAM 1542656 kB 9 move_pages12.c:289: TINFO: Increasing 16384kB hugepages pool on node 0 to 4 10 move_pages12.c:299: TINFO: Increasing 16384kB hugepages pool on node 1 to 4 11 move_pages12.c:216: TINFO: Allocating and freeing 4 hugepages on node 0 12 move_pages12.c:216: TINFO: Allocating and freeing 4 hugepages on node 1 13 move_pages12.c:207: TPASS: Bug not reproduced 14 move_pages12.c:106: TFAIL: madvise failed: ENOMEM (12) ...<repeats 741 times>... 756 move_pages12.c:207: TPASS: Bug not reproduced Note: This is a single hugetlb test without invoking the hugetlb-lib of LTP, so we add the compacting memory/cache steps additionally. Signed-off-by: Li Wang <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
- Loading branch information