diff options
author | John Hubbard <[email protected]> | 2020-10-13 16:57:04 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-10-13 18:38:34 -0700 |
commit | 1100262037be8008cc85240389fbe5eac4df034d (patch) | |
tree | 02931b054859673f933fb7b98db8b71d3b9bd98e /include/linux/uts.h | |
parent | 74c9da4e1dc0ecf70e7fa78568821e3ed8f77938 (diff) |
selftests/vm: 8x compaction_test speedup
This patch reduces the running time for compaction_test from about 27 sec,
to 3.3 sec, which is about an 8x speedup.
These numbers are for an Intel x86_64 system with 32 GB of DRAM.
The compaction_test.c program was spending most of its time doing mmap(),
1 MB at a time, on about 25 GB of memory.
Instead, do the mmaps 100 MB at a time. (Going past 100 MB doesn't make
things go much faster, because other parts of the program are using the
remaining time.)
Signed-off-by: John Hubbard <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Acked-by: Sri Jayaramappa <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Mel Gorman <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/uts.h')
0 files changed, 0 insertions, 0 deletions