aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHui Zhu <teawater@antfin.com>2021-04-14 10:44:36 +0800
committerWu Fengguang <wfg@mail.ustc.edu.cn>2021-04-16 16:46:18 +0800
commitbd40585ad77dc6ccc422485d87dca51aa3031829 (patch)
tree6d78fd79eeab48014c5a27255c10f3b84e018a3a
parent3f9c6c227120db43873d1af20cea3f374eb99592 (diff)
downloadvm-scalability-bd40585ad77dc6ccc422485d87dca51aa3031829.tar.gz
usemem: Output a message after punch holes done
When I use punch holes to setup a test page fragmentation environment, I didn't know when the punch holes done. I can only get this information through top or something else. This commit add code to output a message after punch holes done to handle this issue. Signed-off-by: Hui Zhu <teawater@antfin.com> Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn>
-rw-r--r--usemem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usemem.c b/usemem.c
index 5b90aae..0c76d17 100644
--- a/usemem.c
+++ b/usemem.c
@@ -791,6 +791,8 @@ long do_units(void)
for (i = 0; i < nptr; i++)
do_punch_holes(ptrs[i], lens[i]);
}
+ printf("punch holes done\n");
+ fflush(stdout);
}
while (sleep_secs)