Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2319567pxu; Sat, 28 Nov 2020 10:02:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyudoUTm80UNZNtGCY8ECewNaEgElyfqF+2i5OEcBQH4/fR2tOOoKvFq/GOvXddazX3fVBz X-Received: by 2002:a50:ff0c:: with SMTP id a12mr13969714edu.79.1606586532546; Sat, 28 Nov 2020 10:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606586532; cv=none; d=google.com; s=arc-20160816; b=vrE0UsOOqLTqze0VOQVw98aO9rPs9Dz2fXGN6J4XwNS7lKXGk+bvDZzUyzM/w8P5Wa 2KIcScCMd+9Sa9eRDpIbgoGBcyfztGx1Bt/5nrI+X8zyHHQDWgQ1yIwZb4XtCfmGSiPP kwFbWU06W0ONQyeCgddoENbf8EZ6bKfjjotrp1vjGpptp6/esC7Z9S0ecx/rPOolxaIW 0J36sqySUMyHZlgmiMPbpcNKR1mrgL7Ue8ucHgD45SWyAfwc3NOwd1lfGB3N4ucq/sQx +9d8RVjTBsIw+Cpru0uD+skrXNC+Sw6j3UuSr4cqqxahEy2frrHdTSVjbAsHKiA16e5i 0AWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=AII9ky42jdElGfgn9wGajC3OpukqI1dY0i9XJZ36O1A=; b=mNri0BIm4KNQSuMVlZfam2T4mw4uxjQJZikfh2YYn1AklTPtO7ggXLrM85NjuB3UM8 llkkfHVhiV4z+LKP3cgpTlZrBJDL2BSX0OZauIV9xV8Q23ZdkwHZMjktQzd11SXkvRjy 8kw7kzc1UMiFHxSBpq0v3cdqwivbEuqxs21Y5JZ13G2fE+iym/GlRuktH8Lv3oa6zi6y mZwxUJyL2zK1qusaWrdw9Ww9rpcaDZ8Nc0qzxOPzQz835E9knnswrkggy7bjmylJGE2J p7bgctT6N9XRA+yy3+r/2ne9saFzlsgszJggVtAkb1cDR8kP0NmSwUxIv5ety9WcTNCW DthQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt24si3197822edb.7.2020.11.28.10.01.48; Sat, 28 Nov 2020 10:02:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731449AbgK1AeF (ORCPT + 99 others); Fri, 27 Nov 2020 19:34:05 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8190 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731450AbgK1Acd (ORCPT ); Fri, 27 Nov 2020 19:32:33 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CjXVp2N3Dzkfrs; Sat, 28 Nov 2020 08:31:46 +0800 (CST) Received: from [10.174.176.199] (10.174.176.199) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Sat, 28 Nov 2020 08:32:05 +0800 Subject: Re: nohz: Update tick instead of restarting tick in tick_nohz_idle_exit() To: Frederic Weisbecker CC: , , , , Shiyuan Hu , Hewenliang References: <66014fea-7b84-358b-137d-d15190241528@huawei.com> <20201127121542.GA109224@lothringen> From: Yunfeng Ye Message-ID: <6d77dcc0-dea1-7b5e-9451-e4b21d7fb160@huawei.com> Date: Sat, 28 Nov 2020 08:32:05 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20201127121542.GA109224@lothringen> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.199] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/27 20:15, Frederic Weisbecker wrote: > On Mon, Nov 23, 2020 at 09:22:08PM +0800, Yunfeng Ye wrote: >> In realtime scenarios, the "nohz_full" parameter is configured. Tick >> interference is not expected when there is only one realtime thread. >> But when the idle thread is switched to the realtime thread, the tick >> timer is restarted always. >> >> So on the nohz full mode, it is unnecessary to restart the tick timer >> when there is only one realtime thread. Adding can_stop_full_tick() >> before restarting the tick, if it return true, keep tick stopped. >> >> Signed-off-by: Yunfeng Ye > > We can indeed stop the tick and avoid it to be re-armed needlessly at this > point. > > I'm taking your patch, I may just edit it a little and resend it. > Ok, thanks. > Thanks! > . >