From patchwork Fri Jun 26 20:09:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 191915 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp802348ilg; Fri, 26 Jun 2020 13:10:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRzXiG074oc/ljyDSWL5Z9S9kqtIXZSsAlRnUDqokR3KnHrA0ymMwSZgDLTa/mwUztHdaq X-Received: by 2002:a25:bc47:: with SMTP id d7mr7907021ybk.180.1593202209539; Fri, 26 Jun 2020 13:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593202209; cv=none; d=google.com; s=arc-20160816; b=Kh+aRyEHMYP31MfW7fMdcwQR1sLen+oo+8ZpQLXw81eY2vOr6+S+nzYim6d6DHqCna Sr20C6A4aoQh4O5mgbpa2GWXbs43vuZ0MifbXJjjRuatc/cUM2tIIaQ14l5+HNB7qMTM C0eejZpbvLONFSccSnoTqzn5alJKOS3vFpDMaDzNYApbgF5/154P7cEUHZ2bi8dM4ws9 8Qu7hXjZ3TfgUdWsHPuyC+7AF9jmtquvVL3heqZ6wrIW6VOuCKWar/ofQ5eUBZGQ9Vff 9Ar/+heZqjufabydIxGRCs6SuH4ivWDEXz3SH8lzJj4K6nGpIRchBPAJ/pcZQX0zvnMT Gg3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=lasQjN5LXj5UcP1e4KoJ+A1gauTll/nfuzKb2yFFZeI=; b=ACBZjfX4G0Lh9xdHAtsr+81cF+dTAVYsh3+K50fmI3oNS12/g21hVSzIay0AJYtdSt 2WjUGUMibGf0QupWgXkl0UVOjAAMIGaW66LjnarKMUd3g8rwJWrHtyP0cvmO+7N9v1/q c91q274uTzkk12TTxUyI1Yx6ogHNqSXsVwh16TLNyUZIri3JwpLvzYtbZNCTRu0HrhJn Xbmv6I7y7ZbdKGbPmdyFLoBny6uoD5tgFvbHbVh4AiJTXyTqQ3YylMq7W6fMiCP197cN RxDWuors5MZUaPSeg0hQP7wWjWIsRE5c8WPqBGyo3H1bOWBU71TzWi06UMW8p5Y/EsaT Gq7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=lhgwBHnn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u6si797940ybi.367.2020.06.26.13.10.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jun 2020 13:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=lhgwBHnn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joufp-0004MD-0F for patch@linaro.org; Fri, 26 Jun 2020 16:10:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joufd-0004Lw-W8 for qemu-devel@nongnu.org; Fri, 26 Jun 2020 16:09:58 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:50711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joufb-00041h-Tb for qemu-devel@nongnu.org; Fri, 26 Jun 2020 16:09:57 -0400 Received: by mail-pj1-x102a.google.com with SMTP id k71so1916291pje.0 for ; Fri, 26 Jun 2020 13:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lasQjN5LXj5UcP1e4KoJ+A1gauTll/nfuzKb2yFFZeI=; b=lhgwBHnnHJ3mJ7DE7e3s/Di9Z7Nj9HJ1HXiIlz+24NQQXPnYY/ntyEplO2r0kozAfL 5xkkdQqcihGWiRDxvjBPgtl1d59qpUm4akVLPc9g+2EIy5thl5gc6MAm5HfD9fctnUsG EPwObOfueatGM2WrDe3yKcUF4GgfyTpfb65EczMde2Hx5WIVs/VhV/zx6HbOdo+FMSEl 1yvtS4LnpcXdeZEu+adCj0xp+bGFKeJ3Mq4MtH927JEZ0qC4ofmRohCWvIqVLPCFd0M9 gBB1qU1c9cmg6aFjKTGaJtpR95Lnd9T9yN3PhiGVBE1k7wI4I9SIgqhR20DeKQ7qCSAy aQyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lasQjN5LXj5UcP1e4KoJ+A1gauTll/nfuzKb2yFFZeI=; b=qsNYXw4yLEaLEKxDHREJ3JOKdefcLlbJkq8lxM5HqvtCkTNrsjnlOIGUJdnXPW2pFL C5WnXtdEBJLVCqbgS/DTOpZF2Fdc7f/36zCVRes3Q7AbjLpwW9emKMGrcSiQlvw84+6W yRHBWFGsOV1DBCDCUk4IDzOSXyY3B9S4YDJsZJjtY1RXBdqIdwqEHR1alWDLbDLR3vkw H5nbD0Wo3m6MzwFLG2khEXWRGplWoiKEQohbAknUUCrg0qgVz6vxd5eFCJWIx6+R9bzO ft/OQC1PGCtw6JRMWncyG56u1MeSgtEPgvSeqtYcQ0Bs7P/2W5UqKK+8wFqBCyq0yfB2 Wbsg== X-Gm-Message-State: AOAM533dUlUiRmzNbIWIAJrkoSUGQkEr+2WTjiMJiTpluy6COdFzTCg9 Fo5lQz1HjHvE5Vr97AidaxY5B+7ZQyM= X-Received: by 2002:a17:90a:f309:: with SMTP id ca9mr4880084pjb.113.1593202193858; Fri, 26 Jun 2020 13:09:53 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id n8sm23879405pgi.18.2020.06.26.13.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 13:09:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 0/2] tests/qht-bench: Adjust rate/threshold computation Date: Fri, 26 Jun 2020 13:09:48 -0700 Message-Id: <20200626200950.1015121-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cota@braap.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Supercedes: <20200620214551.447392-1-richard.henderson@linaro.org> Thanks for Emilio's review of v1. I've split "seed" from "rate" as suggested, left the comparisons alone, and expanded the comment in do_threshold. r~ Richard Henderson (2): tests/qht-bench: Adjust testing rate by -1 tests/qht-bench: Adjust threshold computation tests/qht-bench.c | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) -- 2.25.1 Reviewed-by: Emilio G. Cota