Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3415966pxb; Wed, 14 Apr 2021 05:13:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWAAmNC/w8XwSNoqfjMQcDcvXqG6LVC6BJUPi4tEMCUXzxAcZvO1toUEJtqeEFFUxhFjLq X-Received: by 2002:a17:906:524f:: with SMTP id y15mr36817120ejm.65.1618402403170; Wed, 14 Apr 2021 05:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618402403; cv=none; d=google.com; s=arc-20160816; b=pAexM77p2is8DVZLBcPaEYJhwj4XhPoWg/02uZkSU4Fh90y8PfIhIyPi1fIv2kkK2V fH1jQLqG/KWlQdIEROjG0p6mxqLn5AYZOqWaBs7A+Zq0TLzIyDhGshK0gfpxA/G/evkl uvQw5rf4HDwee1N2PXneES7nMoTLUPM2ycxsV1SqfVi2+PPzNsmVFx5i/rpO/qJjFmvR QByPiy72aPoYT52MkEHOLbeGYXYSrHyZabs4AWk3vwhG05U5yM18pWZztkx0haPEhSVF kFMV6yHN92gkzMwQZI8/16VHLLqVAHOVN45EFDdszWe1yTSol7ByixBrHud/aaegBvKk vZiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=HI1/TY1eqDhtrMFtrhsr+FqDNeT2OFMlasMQtgqLOvA=; b=U5brkmYWycU4seH5fJbu+MQNulSSyp3no6PTpE2y0NufCOIxT10QhgkVKW31JA4cBp cnH/FvUu+a2RQJ9P+r+hXWom3hgLYZ7h2FPUBEYpCGccuy9Vqde8rxNNaDv6RlUNbnnn mVy+0EwifltKWx1by6hIl/jo4JF9e+J1/bxcprz67EDn/BnIXw1IpWvMgPS56CPbE8Pu l76cSPHNpb78pY6c80N6t1/gP6V1/o7JlAPXVJzMM+DUTbmeT/unror4SNqSCoV4x7R5 y1SxBn6ZvQZGQbiAgGXEV4EwzaR6iXfO2jkF0zF7AVe83Y63a+S1cVktbAmWNPFEdhyK c/Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si4199902ejt.379.2021.04.14.05.12.59; Wed, 14 Apr 2021 05:13:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232115AbhDNCpG (ORCPT + 99 others); Tue, 13 Apr 2021 22:45:06 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:34427 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbhDNCpG (ORCPT ); Tue, 13 Apr 2021 22:45:06 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=teawaterz@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0UVVg1xZ_1618368278; Received: from localhost(mailfrom:teawaterz@linux.alibaba.com fp:SMTPD_---0UVVg1xZ_1618368278) by smtp.aliyun-inc.com(127.0.0.1); Wed, 14 Apr 2021 10:44:44 +0800 From: Hui Zhu To: wufengguang@huawei.com, linux-kernel@vger.kernel.org Cc: Hui Zhu Subject: [PATCH for vm-scalability] usemem: Output a message after punch holes done Date: Wed, 14 Apr 2021 10:44:36 +0800 Message-Id: <20210414024436.30128-1-teawater@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hui Zhu 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 --- 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