linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for vm-scalability] usemem: Output a message after punch holes done
@ 2021-04-14  2:44 Hui Zhu
  2021-04-16  8:47 ` Wu Fengguang
  0 siblings, 1 reply; 2+ messages in thread
From: Hui Zhu @ 2021-04-14  2:44 UTC (permalink / raw)
  To: wufengguang, linux-kernel; +Cc: Hui Zhu

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH for vm-scalability] usemem: Output a message after punch holes done
  2021-04-14  2:44 [PATCH for vm-scalability] usemem: Output a message after punch holes done Hui Zhu
@ 2021-04-16  8:47 ` Wu Fengguang
  0 siblings, 0 replies; 2+ messages in thread
From: Wu Fengguang @ 2021-04-16  8:47 UTC (permalink / raw)
  To: Hui Zhu; +Cc: linux-kernel, Hui Zhu

Applied, thanks!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-17  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14  2:44 [PATCH for vm-scalability] usemem: Output a message after punch holes done Hui Zhu
2021-04-16  8:47 ` Wu Fengguang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).