Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21171905ybl; Sun, 5 Jan 2020 22:22:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwfZV9HR/JrKc4YZ6qTBH87Se3xyb2qVDqc7hU1jtjcHk+eE2S6V834iwfNwCSJJBF6V4zl X-Received: by 2002:a05:6830:1d4c:: with SMTP id p12mr117453732oth.198.1578291737393; Sun, 05 Jan 2020 22:22:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578291737; cv=none; d=google.com; s=arc-20160816; b=pDvw/rMJsm/5QJUoJPjE6YVeeoupMWBizuhjz3q33GRUHSUe/GXH2TxnPSxaXbjpw8 6a/pEprGQUD/4SrTrfONo6QT/R7wYAfIuJvjnQoNXukTEMrm/cIFXR7n1ShTwsHJLcqP Rr+y4BHadN8HASuJSuUAKZUMi1YB9RwFSmthKdf+fAbNMAPTIUr+RtuUco5+jvq0WTGE DMUlaKaHrs9ev0yUIO0W43V57v1udgKPxkFHkCRCM5vF/dQqfg47IhoGzEk0nTFDlvKc 1m57d+pPLzNEItohbkkAi77mXnsxwUJK0hNa0wpUvvYaT4kJv4A0WE949dUke3+5y/ne Q04Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uwZ2SiPflAo2gMhAO1B+oTaVC9KrM+PVnRjYk/ratMc=; b=dmgT/vGl94rTqPiHcrVF1c/PE0jvrcqBRcOtxGZ/+ANUh/ij0MnH3b2gPlKVPk2bsm lsHWvXNRdjnJ+CbrYDzftBlzWydAXQMZSwCUH6kEzrB1Msaol1Urjb8elWbJRlrQSkiu JELDHnESIciAErfalAYp+25pCV8Z9ftitbxtfiN7yYgs7Aqtjk5lZgjZFQOvqx5Jc9Lm JcBwmipzzapOrONps0KZF3v06cr5xzZavjw0HFRd/g9nAR2DHA/bbdPEY7VMoLYhxkgF 3VXl1YTglj/ZelMwOGQGoEFOpfhxqzETIAVw4bFIQhl1oXij/BDwTJ8Lw4rL24A688xE FJzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KuCFY6D6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si30241957oti.303.2020.01.05.22.22.05; Sun, 05 Jan 2020 22:22:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KuCFY6D6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726964AbgAFGVY (ORCPT + 99 others); Mon, 6 Jan 2020 01:21:24 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:34371 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbgAFGVY (ORCPT ); Mon, 6 Jan 2020 01:21:24 -0500 Received: by mail-ot1-f67.google.com with SMTP id a15so70264532otf.1; Sun, 05 Jan 2020 22:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uwZ2SiPflAo2gMhAO1B+oTaVC9KrM+PVnRjYk/ratMc=; b=KuCFY6D6VJ9hn4OiaxJtMwWEQG8NmA3MxjnNQOZSc5mR7A88m+caskdq7A/waITkGQ MnElD30Zann/cg+8HjO1QoHyN8so6ptaAT4JfOJTb3K/vMokV4Q+jHRJUA2Qhv/7kwMN FfJYiURQuGfoYLO+5yUoFi3UjJhAVW2Gikk7BtJsoMgZ+3MqAyIG9dMcu5QMIKsqg1kl ukRgts8sLgL3CkRnMYG2ijI8k+U328q0UxMy+Sko9DC3SSUN2JA6a5OpFZMUOAcXJpD8 ZbxzkZ6r3rauCCgMgfQGtsdoJADm7lB6kG/HQt3ZGEPcztnBluuxw4t/CX+Cm8RtDFsI 3zQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uwZ2SiPflAo2gMhAO1B+oTaVC9KrM+PVnRjYk/ratMc=; b=EjW6c9aLJsmwDhOrH4xYykR5mLFkHczc8wz4HX35OU4bB89kDpiX0vCdqAkM5D7yaP 9RA2t+cyYuxIPBp3xOXabjIOR+fsd9NW8Q+B9d5/CBmJR+Mk7E3HX8zJOiNyE4e7oKZP LMFM+KIFeilhSwFuONFdlx5RjBeC4aACiAI1IMq6Ypf6unwa0yuU5CV68GZLJlLTfKHG lml/NvnuQr/qKqqoFc398IMxCaPaabqfhhGpW11fpfeDhoCYJs6HNOxfq/NYi1WXLRIT C68fxjyHORFGpwURfT7ItimSeDlhRtEGVL4IbcSn/XMZqTq0TrVkvLi9U3cMX1ogAW3i v7Pw== X-Gm-Message-State: APjAAAXTPI8mULf7sFS4UlN3YnvjakL6hHV2aX1VgvaDeqERPOpryKSM pKGJscx54NcU3EzcdGZUA1GhYkcdtrY3tZLk2HA= X-Received: by 2002:a05:6830:120b:: with SMTP id r11mr13747016otp.254.1578291683382; Sun, 05 Jan 2020 22:21:23 -0800 (PST) MIME-Version: 1.0 References: <1561682593-12071-1-git-send-email-wanpengli@tencent.com> <20190628011012.GA19488@lerouge> In-Reply-To: From: Wanpeng Li Date: Mon, 6 Jan 2020 14:21:13 +0800 Message-ID: Subject: Re: [PATCH v2] sched/nohz: Optimize get_nohz_timer_target() To: Thomas Gleixner Cc: LKML , Ingo Molnar , Peter Zijlstra , Ingo Molnar , kvm , Frederic Weisbecker Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Wed, 23 Oct 2019 at 16:29, Thomas Gleixner wrote: > > On Wed, 23 Oct 2019, Wanpeng Li wrote: > > I didn't see your refactor to get_nohz_timer_target() which you > > mentioned in IRC after four months, I can observe cyclictest drop from > > 4~5us to 8us in kvm guest(we offload the lapic timer emulation to > > housekeeping cpu to avoid timer fire external interrupt on the pCPU > > which vCPU resident incur a vCPU vmexit) w/o this patch in the case of > > there is no busy housekeeping cpu. The score can be recovered after I > > give stress to create a busy housekeeping cpu. > > > > Could you consider applying this patch for temporary since I'm not > > sure when the refactor can be ready. > > Yeah. It's delayed (again).... Will pick that up. I didn't find WIP tag for this work after ~half year since v4 was posted https://lkml.org/lkml/2019/6/28/231 Could you apply this patch for temporary because the completion time of refactor is not deterministic. Wanpeng