Received: by 2002:a17:90a:8504:0:0:0:0 with SMTP id l4csp411286pjn; Wed, 23 Oct 2019 01:31:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXaK+O0zQOoyfusSUKXCnXxivxYetMsXWQYJXDKIWmcnGgDsbCAfJIgftKNhn/cSbgW2fg X-Received: by 2002:a17:906:b2c1:: with SMTP id cf1mr3255471ejb.155.1571819510305; Wed, 23 Oct 2019 01:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571819510; cv=none; d=google.com; s=arc-20160816; b=QFz/kyD30nVoLJwevrv+lF9+TqKUPj0UFbKATiUHMevJqVcrcnFjjyKXrQPQN6A9Ub J4ukk6rbmKNP9FL3cLwDqpLZhiy/zqoAsHp664uY0QlOYOUUzOEVx62b8KEK7SO6UHp9 IHBYukZV4huE0Hlp0EmHycE9Me1f9UwWgadpuowAyX1P2Q7Zop6rnbakf1JzXcbm3/oS ecJDVFcPqaecZ/9TSsUttt6mQXE4eZsBSG2obFHZ94NQZJznh2IpDbugMzugC6GAJGef 8wnGCCFAvxj+UcYipeRn96nkdo6pTwjwO+5pNX8RCGmVnVagSn2pDbXlyvZz2SnCEbCy tI+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=V/t9QNuc5PF1GFyMWZDtrP72VGoWmeTdRScG7jgjyV0=; b=jKIjLw3naPCFq4iuKm0ZMJmYA02POWV5kcS0DoXxUjijZbACxyV0BXt0yX3cUuUAMI eRpvQp132VF+BdIEoBYe6kOrATqxAxONwcH2IYrLr0nDUh7dRMEKGpKi4cODvyOI3I68 EDDOL5VsGJYK6z2QTlBtaHhpx6c0caQad++pOmFVkKOg7GFxTUntoo29zUb7wrNeWyIy F2RLokFRyMnyiv+osiGtqfJ2tDbu9QdsCm+GzU5ZnN2n7fknJJ+XXPEQIHOJAUO49q7y anJB60MTrzvGK/f1PKgLZy2rrLFd7bl3oQmptwpdhAW5P++tbryuShJSJW8h2lVkTQ0Y bVjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si6163365eji.341.2019.10.23.01.31.26; Wed, 23 Oct 2019 01:31:50 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390348AbfJWI3X (ORCPT + 99 others); Wed, 23 Oct 2019 04:29:23 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:48116 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390339AbfJWI3W (ORCPT ); Wed, 23 Oct 2019 04:29:22 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iNC17-0005Up-55; Wed, 23 Oct 2019 10:29:17 +0200 Date: Wed, 23 Oct 2019 10:29:12 +0200 (CEST) From: Thomas Gleixner To: Wanpeng Li cc: LKML , Ingo Molnar , Peter Zijlstra , Ingo Molnar , kvm , Frederic Weisbecker Subject: Re: [PATCH v2] sched/nohz: Optimize get_nohz_timer_target() In-Reply-To: Message-ID: References: <1561682593-12071-1-git-send-email-wanpengli@tencent.com> <20190628011012.GA19488@lerouge> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, tglx