Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp789795pxp; Fri, 11 Mar 2022 15:11:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWnJEpS8zAuSN6BgaZzwhgrHYRhLJuiRbLTB4rRwLBD2kEQ7owM9hbvRvqthSvVFA/ZNIe X-Received: by 2002:a63:8948:0:b0:37f:f087:9cac with SMTP id v69-20020a638948000000b0037ff0879cacmr10378995pgd.120.1647040287797; Fri, 11 Mar 2022 15:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647040287; cv=none; d=google.com; s=arc-20160816; b=zeSeSzTZmmboKbDR+0pD3sA37h/iIVjn08/C5rXos9C2go7x9nkoi6eg0Ko6UzvX0K vu5vzpUigKG7iYoZiYLcYFpIi5+5tFlc+y0+7TZVd1JAlhnggiFtScTi92avSZnmIfEK 8HF8zB2BAmUCbbF9QQ40JipxXFqJpjV4afFUuV/CPgjFUGz+iNhTOnC818oM2V2JrsBu p4UHnueBAQmH9ZICocKb/pbTr+L3bo3Krgw5azSejzo68NYvWk2lW66jUErlb2du092C dZKU/AGPQxb6449hF//npkjigs7iYObMM3BTW1sThBXBionc3gn3yBZt+bfNOrcQTh4t t0Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bcEebaUL39OgBCQ1yEdv6Pu33/nVpkRgxFeI5vk+Fpg=; b=SXmQN7FX8Ig6QiFM16+ta5lVEIMWBPh8NrINtnGbGSgjIQmuU/LKdWZoxT/ztniz88 YF5TVRIBXZugvRB4Id5UrByCVngTjFf1iK6Zv1oLRMsuUESUMymJRDsiBBVnCdFxRt+r tLk1uOR8Ng37DTSB6w+IxJG6CLhCeR9CVC3PuUze3dvncUdXqp5TXmNLf7t8uf+fpE9p +j67quMs8vyehBc0Z8TuFa3K2KJchLjwArwYvGlEsnmiWf6x65Jd+iO1iRGoFP8PP7RN Rz7LDzl439TEyji0wGcZf9MinW2X8aUwzc3cgwgFA2E1fJZzNRoEEUInkfJlyv38/8GX /MbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="eWt/zXKR"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u4-20020a63d344000000b00380788fcb1bsi9328714pgi.699.2022.03.11.15.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:11:27 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="eWt/zXKR"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A324A2A60F8; Fri, 11 Mar 2022 14:09:39 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244251AbiCJRIO (ORCPT + 99 others); Thu, 10 Mar 2022 12:08:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231151AbiCJRIN (ORCPT ); Thu, 10 Mar 2022 12:08:13 -0500 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E660154704 for ; Thu, 10 Mar 2022 09:07:12 -0800 (PST) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-2dbfe58670cso65581657b3.3 for ; Thu, 10 Mar 2022 09:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bcEebaUL39OgBCQ1yEdv6Pu33/nVpkRgxFeI5vk+Fpg=; b=eWt/zXKRQRlURrm8veq/SlkRyHnxWxhEMwojwMMXNpt0ZnvEHxjwNMkAMB1nQMzKqP arn6y3hmVsw3jYWKG6D1uLMM/5RbIRIZwLLj3NXJYYlKSjuZfyg6tql7xwPhk9W7aGSx vFatBMU+/kskQoVUJZxyc4a3VFVm9pU6FnFKIQW6FGbJzIsqV4C+Lz6hxpSlZk9RZSpO u2qTxgtvhBIQB0Qblm737dAueZJNV1uYSfVKbokxSayTMfHin4DZC5UU/Xfg8kHECI5J qFyHk8/rp9gJrUKE/ONDDY6RebKsWEge1IFIL2F/8X5aJB32k4qZxQATIL5RnZR2IuFv /HeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bcEebaUL39OgBCQ1yEdv6Pu33/nVpkRgxFeI5vk+Fpg=; b=jTIlk0mLx/za1TzbotEz+ptvZquXSI+w2xBDGLY185PtKZiJHZhqZSuD1qfLfaleKj YLHMC2k5FX3KdtPpss52MCSrnIO6WsxHhOeLrFVLRLze907vlktvaHASk9Egu0hjfPDo tbvNCzHng9PvYz+CgLkUufJIRusBtFfPBtHVjxRD7g1Rwd2zyrXQa+7BUybkV0O1wKyu NM6AekF4ZotmGMo2fVQJZjyC9AijfiYVZNDsElmELbWOUdPjBXQ1SapNSNvDr+DvPX6T JWRefIHEnwLn9enNQ2nLaNok+CwhIhzmOxTGq9JHi2Aym1YnfDuivkMddMTG1/Z59Whr yBiA== X-Gm-Message-State: AOAM532Ihq4rBCruS2eXKS2k86JsvjYUnFbJrplnN5pJzRpkP6eG6N2R 6I1FLQ8ItJFmTAMWd04Yu/LIsJbANbo4pMqDONeaiQ== X-Received: by 2002:a81:5389:0:b0:2db:6d7a:93ca with SMTP id h131-20020a815389000000b002db6d7a93camr4932967ywb.11.1646932031522; Thu, 10 Mar 2022 09:07:11 -0800 (PST) MIME-Version: 1.0 References: <20220310164532.1821490-1-bgardon@google.com> <20220310164532.1821490-8-bgardon@google.com> In-Reply-To: From: Ben Gardon Date: Thu, 10 Mar 2022 11:07:00 -0600 Message-ID: Subject: Re: [PATCH 07/13] selftests: KVM: Add NX huge pages test To: David Dunn Cc: LKML , kvm , Paolo Bonzini , Peter Xu , Sean Christopherson , David Matlack , Jim Mattson , Jing Zhang , Junaid Shahid Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 10, 2022 at 10:59 AM David Dunn wrote: > > Ben, > > Thanks for adding this test. Nit below. > > Reviewed-by: David Dunn > > On Thu, Mar 10, 2022 at 8:46 AM Ben Gardon wrote: >> >> >> + /* Give recovery thread time to run */ >> + sleep(3); >> > Is there any way to make this sleep be based on constants which control t= he recovery thread? Looking at the parameters below, this seems excessive.= The recovery period is 2ms with a 1/1=3D100% recovery ratio. So this is = padded out 1000x. Maybe it doesn't matter because normally this test runs = in parallel with other tests, but it does seem like a pretty large hardcode= d sleep. Woops, I meant to make the recovery period 2 seconds, which would also be preposterously large. We absolutely can and should tighten that up. 100ms recovery period and 150ms sleep would probably work perfectly. I'll make that change if/when I send out a v2. > > Dave