Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp379040pxb; Fri, 15 Jan 2021 16:03:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1oev2soD3GYG6sFbfNs+3SloQg+eDKiQ91ywTDyr2aRLOCQJJspaJTt3Xe82mncJVTIH2 X-Received: by 2002:a17:906:a106:: with SMTP id t6mr10831084ejy.63.1610755406279; Fri, 15 Jan 2021 16:03:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610755406; cv=none; d=google.com; s=arc-20160816; b=CZyWR5fZZmvVK2ag4PptGurJBy8ZbP4K2VmOc5L6xPUpcoO1QkyAKcN6V2Olne0N3w bXB0zZxEXZhl57SHR54NnHV44lKz3j5fk+PRZY+dyRslOL9PKzOHhpplk0YvPA8gSkmN rPChDvZoGWcNv2VFD0ySixHXNTC2kiMnAHRaSeKcqYNCQNlfkStOyanl8q3FqxPl/BAq CD+H/vXk1+KcbYdFPEW9qJyNR90IU0Nj3zFnhF3RsRr3Vod9FnKFwS/+x2TTpFieBNiT 40MyUFXM8bOqlS/cswqERnigAYsdQytEBw3dPesDsTCgydyGzdjxkIo/1+/sbQMlMdhH 92MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GbcRTwO4Py9PCASiY1YuohO9XCn71Gsdi46hwQnWEl8=; b=vIICDGZnx5IkdNO7B96ZdNQ/pwlVve/5aeFqeqGWZ/h5Bbo1lnq2LQJlEqH/7OBqVG ceyOXgZR4uPAP5/FuebmHfE0qV/5a31O0EuloxkhDMW2w9tGNm8HI/gw4K4xZV/O1KYl O/AzWoQc/lEYvLJL4ka3z+a60adYNmRqbzmOZfL2Rs5EvdSuIdxsskN1xfAuCpwI8C/K 7L77AlW3XtbH6LNEsXyjLY3ozlqDEqHic8JT31Hn/ZalBSXlIZP6LD5ye60ZMYXkEQSd 3FF8HCTOtm/xtEGwxPCzM9ffvaq+hwMgThnlG+kLiIWRDRKF1ZwjpHe5xltiJbqY3vOE 2ZDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=u6hXBbQK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si3328865edd.134.2021.01.15.16.03.02; Fri, 15 Jan 2021 16:03:26 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=u6hXBbQK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728045AbhAPAB2 (ORCPT + 99 others); Fri, 15 Jan 2021 19:01:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbhAPAB2 (ORCPT ); Fri, 15 Jan 2021 19:01:28 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 869A9C0613D3 for ; Fri, 15 Jan 2021 16:00:33 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id x12so5509182plr.10 for ; Fri, 15 Jan 2021 16:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GbcRTwO4Py9PCASiY1YuohO9XCn71Gsdi46hwQnWEl8=; b=u6hXBbQKO2N4x8nIBPEaVhO/0sCJTrI6FL+Ens0rAcn+RjZcf9pFfg3xgjKMB5F4u3 C18ArZDs1Rircdgu01RJPaV2Mxub8HMgAdJrtCipPzVIvWwTsIfq1idVIGENwwnuU3VA 5OG/JcczDt5zL45Na2Rm9t1Ap5idXZThyG9OCpub4m2iAfXul122zjKDY5cesZWA/jx/ LTS5V9lsHOM2SLckp65DzRan3RpdRbVvHzvBc308gdiHoT7pLF2jZvQBbS9C6C1v8Aen NUhnOLuYEnmntPWE2NZ44W8TXKOfJmt7xKi1zmxEFgI9AIrTUBoHEO2fCdxRrqEuBH8k YNyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GbcRTwO4Py9PCASiY1YuohO9XCn71Gsdi46hwQnWEl8=; b=d1gErklMPee16XjIiWcYxTiy6V0ArYVw1s5Y32GVUEGuBiXvM94q9F5sgqe8yAHjMJ cq70506M3OonqFymPOpKXwkZ2kfzTnZFZ3QnCHqGb+lRp1/rQWd1gbpfXnqAiB4zbhfR JPPTKOtL1lAPO2DZZQ6kLXXtxIHIa3Q8kJBezljIrlzXcVffeR1D0QIWAL7a/SYbhmlu 9GdkVXVv03u75v7tqISiQZw1+yho1QXQETFon/tIXk5fcAcKyaspHkeehYmbzYrFNOdj hB7HxmZz5Ujt1XdvZj+5+VS2COAfqT4MhKt1tbVMicwk7QcRWmhmebWROQPpEg5ek3Pw gdiQ== X-Gm-Message-State: AOAM531E0ogdgQbV1W3xhGfRbXOuSL9ZWL482btv6hyhfOAKEBpxGNnS U7vtKg1kjHaAEIJZv5nm2Dncuw== X-Received: by 2002:a17:90b:204:: with SMTP id fy4mr13136166pjb.57.1610755232980; Fri, 15 Jan 2021 16:00:32 -0800 (PST) Received: from google.com ([2620:15c:f:10:1ea0:b8ff:fe73:50f5]) by smtp.gmail.com with ESMTPSA id a29sm9016193pfr.73.2021.01.15.16.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 16:00:31 -0800 (PST) Date: Fri, 15 Jan 2021 16:00:24 -0800 From: Sean Christopherson To: Ben Gardon Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, Paolo Bonzini , Peter Xu , Andrew Jones , Peter Shier , Sean Christopherson , Thomas Huth , Jacob Xu , Makarand Sonare Subject: Re: [PATCH 2/6] KVM: selftests: Avoid flooding debug log while populating memory Message-ID: References: <20210112214253.463999-1-bgardon@google.com> <20210112214253.463999-3-bgardon@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210112214253.463999-3-bgardon@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021, Ben Gardon wrote: > Peter Xu pointed out that a log message printed while waiting for the > memory population phase of the dirty_log_perf_test will flood the debug > logs as there is no delay after printing the message. Since the message > does not provide much value anyway, remove it. Does it provide value if something goes wrong? E.g. if a vCPU doesn't finish, how would one go about debugging? Would it make sense to make the print ratelimited instead of removing it altogether? > Reviewed-by: Jacob Xu > > Signed-off-by: Ben Gardon > --- > tools/testing/selftests/kvm/dirty_log_perf_test.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/tools/testing/selftests/kvm/dirty_log_perf_test.c b/tools/testing/selftests/kvm/dirty_log_perf_test.c > index 16efe6589b43..15a9c45bdb5f 100644 > --- a/tools/testing/selftests/kvm/dirty_log_perf_test.c > +++ b/tools/testing/selftests/kvm/dirty_log_perf_test.c > @@ -146,8 +146,7 @@ static void run_test(enum vm_guest_mode mode, void *arg) > /* Allow the vCPU to populate memory */ > pr_debug("Starting iteration %lu - Populating\n", iteration); > while (READ_ONCE(vcpu_last_completed_iteration[vcpu_id]) != iteration) > - pr_debug("Waiting for vcpu_last_completed_iteration == %lu\n", > - iteration); > + ; > > ts_diff = timespec_elapsed(start); > pr_info("Populate memory time: %ld.%.9lds\n", > @@ -171,9 +170,9 @@ static void run_test(enum vm_guest_mode mode, void *arg) > > pr_debug("Starting iteration %lu\n", iteration); > for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { > - while (READ_ONCE(vcpu_last_completed_iteration[vcpu_id]) != iteration) > - pr_debug("Waiting for vCPU %d vcpu_last_completed_iteration == %lu\n", > - vcpu_id, iteration); > + while (READ_ONCE(vcpu_last_completed_iteration[vcpu_id]) > + != iteration) I like the original better. Poking out past 80 chars isn't the end of the world. > + ; > } > > ts_diff = timespec_elapsed(start); > -- > 2.30.0.284.gd98b1dd5eaa7-goog >