lkml.org 
[lkml]   [2021]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH for vm-scalability] usemem: Output a message after punch holes done
Date
From: Hui Zhu <teawater@antfin.com>

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>
---
usemem.c | 2 ++
1 file changed, 2 insertions(+)

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)
--
1.8.3.1
\
 
 \ /
  Last update: 2021-04-14 04:45    [W:0.055 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site