Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3417087ybl; Sun, 12 Jan 2020 17:33:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzC5HbGmGkzDGGZS9Zs7jEM4nZBBbVLkvE1XGmw99ceC7gaSRi3veMvr/fzeeipp1VnMPGz X-Received: by 2002:a05:6808:ab1:: with SMTP id r17mr10426230oij.141.1578879201187; Sun, 12 Jan 2020 17:33:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578879201; cv=none; d=google.com; s=arc-20160816; b=X8p/JIXWCD5GIMUKzaioulYoGP2QNO08ODdY2KZU/iPRic1AeJUycSIaOeez4SBVUv gANRqX0chzehpMT/2gbrZPvxjvLRM4/jVYsc9ixRJ7WSyjRHM9v3ACBpomcGAOXp50Us aLdvfKSBAP2PWUi3S3fjzf/xx/cPr/HDBxt94NduhsxO/RO1fUfaLdlh+V0aD2MsaI2C MFEuIEIUy3xYFGfAfEqO9X/ro6/zFqyKqXA599AndbijIuss7yfQFN6gOlPycPvFiJh0 wnf+M2w9bCfxqDhr/x0l72D9BGoGafrsenCKNTsN8hnB2wY+UQYXBn17OrDnDXucZEiU 7/3Q== 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=MMBytJUvPgAu+zMfgqDgk/AfX9Yfe5/T6E8UlbQLhRg=; b=fFXaLv1aZC4oFKt1BsvJANprV2qZBXrVW/+CYSP+De/bZylCEqQwroaxudpg6+vMsC gWn34w/vDnmTqDlrlIDBrlLNT6VcNBjVcSxbQHuVS/HfhxqsczV+MqfNrEr+8ICrM8cH T/OK8F/rInoBe8DAsnFi4vpxC0vHZ89+9Lb9IiQB7kvu/WgqBwa7nY2nAW4c824eIJqg /LrEltNaarsLRztkfquAVR06mJ795k3IXO96OYmA4amvTnrlno8xd47c4nLBVVNsOSPZ UOdWNW5WpjYMGwKplWs/CbihKF+TYKKiLlBAHQY9e5j8AmzTtc7k+C4IKL5KcBdNKl4D IhOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bavqG7Bb; 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 z4si4751182oix.48.2020.01.12.17.33.08; Sun, 12 Jan 2020 17:33:21 -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=bavqG7Bb; 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 S1732676AbgAMBcS (ORCPT + 99 others); Sun, 12 Jan 2020 20:32:18 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43839 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727222AbgAMBcS (ORCPT ); Sun, 12 Jan 2020 20:32:18 -0500 Received: by mail-oi1-f195.google.com with SMTP id p125so6821638oif.10; Sun, 12 Jan 2020 17:32:18 -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=MMBytJUvPgAu+zMfgqDgk/AfX9Yfe5/T6E8UlbQLhRg=; b=bavqG7BbIXENsNo9UOozQb1Br1Q21nNEU7hk7Iyb1e5fPuCq659TKTxQcBnyLyK8iN VnFlSKggY1A4gcBuyqEQf1AsRpw9Z6DefQnra9k9TSquQQLmdnFuz3SYnA5sqq7kiJC9 rIfAZQXUmG3LNRog65z5m1zZyAjNyuD3ccecWyRVh7XWsCyeU0S0gH6c5CFkrn3citxc VjfBCYx2f1Bb9sSqaUQwSnmCEg+9dhle+WZAiHosYYH/E7g7wvT8BvwDURbEAEcusB4u E/SXBAGwI+00vIHETPisSrbgOqpxvmIUiUo2pL1R4A8lykgG64v0wXEPiR0yCdrBQTmZ JXnQ== 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=MMBytJUvPgAu+zMfgqDgk/AfX9Yfe5/T6E8UlbQLhRg=; b=T3vYBf4dqyhd7l8zEfKqY9RFEYjuWfQFSDKu3XjqPSQBDa5bg6c8Ziq/+WFqEdgZLg bmlYJeS90Vc/kPFFCQeGRhfxU705NuOg0H/6jWjzPxLNeiLl7Kjif3T2mOZcdvLlm+pi kLttqLQ6u2TLzApuHKydJJEdkUWXg9BrJe7qp8ocjGXRX930dTfqdHe2fVbOfwyo2oQg rA2N7JCYv8SrQR7sWVGQZ/8hx9WeNfbJVLR4CE2UvqmG0PQ4BiOHLXZiaw6FXHjpjeoW pUSJqXuJBIQq9Ik/l2h9U2qj45fSrCNegyHCGL6/eKZdRsgMt4cRUFg5SLwGOEaD20R+ z2Xg== X-Gm-Message-State: APjAAAW2KmImYKQFI7Pn/y5WjZvD6gUUKMKVA49hfWirt50q32iaJSYd X/cp+F+NOn/iLNCpEgMf//JKvsuxS9Bd7hqCI6k= X-Received: by 2002:aca:8d5:: with SMTP id 204mr10286701oii.141.1578879137785; Sun, 12 Jan 2020 17:32:17 -0800 (PST) MIME-Version: 1.0 References: <87a76v8knv.fsf@nanos.tec.linutronix.de> In-Reply-To: <87a76v8knv.fsf@nanos.tec.linutronix.de> From: Wanpeng Li Date: Mon, 13 Jan 2020 09:32:06 +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 On Fri, 10 Jan 2020 at 22:12, Thomas Gleixner wrote: > > Wanpeng, > > Wanpeng Li writes: > > > 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. > > Could you please repost it? Just repost, thanks Thomas. Wanpeng